summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichal Bloch <m.bloch@samsung.com>2021-07-27 20:35:42 +0200
committerMichal Bloch <m.bloch@samsung.com>2021-07-28 14:24:55 +0200
commit34eaf7bf8c999c03c294c78c438e0897e7fb2a5c (patch)
treea64b1a8782b3b89bcbc5a4993b2ce7698ebd3a6b
parentd9c22ce107fe5613697cfb8480c14be58added06 (diff)
downloadbuilding-blocks-sandbox/mbloch/rpi4.tar.gz
building-blocks-sandbox/mbloch/rpi4.tar.bz2
building-blocks-sandbox/mbloch/rpi4.zip
Add RPI4 configssandbox/mbloch/rpi4
Change-Id: If5e696a17238b7e6c8092044f5e26af837fd6bb5 Signed-off-by: Michal Bloch <m.bloch@samsung.com>
-rw-r--r--packaging/domain-apis-system.inc6
-rw-r--r--packaging/platform-preset-boards-rpi3-hal-backend.inc3
-rw-r--r--packaging/platform-preset-boards-rpi3.inc2
-rw-r--r--packaging/platform-preset-boards-rpi4-hal-backend.inc173
-rw-r--r--packaging/platform-preset-boards.inc5
5 files changed, 188 insertions, 1 deletions
diff --git a/packaging/domain-apis-system.inc b/packaging/domain-apis-system.inc
index ccb9049..0bdb7b8 100644
--- a/packaging/domain-apis-system.inc
+++ b/packaging/domain-apis-system.inc
@@ -33,6 +33,8 @@ Requires: hal-api-device
Suggests: hal-backend-device-tm1
Suggests: hal-backend-device-tw3
Suggests: hal-backend-device-rpi
+Suggests: hal-backend-device-rpi3
+Suggests: hal-backend-device-rpi4
Suggests: hal-backend-device-artik
Suggests: hal-backend-device-emulator
%description sub2-domain_API-System-Device
@@ -54,6 +56,8 @@ Requires: hal-api-device
Suggests: hal-backend-device-tm1
Suggests: hal-backend-device-tw3
Suggests: hal-backend-device-rpi
+Suggests: hal-backend-device-rpi3
+Suggests: hal-backend-device-rpi4
Suggests: hal-backend-device-artik
Suggests: hal-backend-device-emulator
%description sub2-domain_API-System-Device_Haptic
@@ -77,6 +81,8 @@ Requires: hal-api-device
Suggests: hal-backend-device-tm1
Suggests: hal-backend-device-tw3
Suggests: hal-backend-device-rpi
+Suggests: hal-backend-device-rpi3
+Suggests: hal-backend-device-rpi4
Suggests: hal-backend-device-artik
Suggests: hal-backend-device-emulator
Suggests: svi-data-profile_common
diff --git a/packaging/platform-preset-boards-rpi3-hal-backend.inc b/packaging/platform-preset-boards-rpi3-hal-backend.inc
index 9d60395..6ff450a 100644
--- a/packaging/platform-preset-boards-rpi3-hal-backend.inc
+++ b/packaging/platform-preset-boards-rpi3-hal-backend.inc
@@ -2,7 +2,7 @@
# You need ACK (+1) from the maintainer to be reviewed by building-block maintainers.
################
-### RPI3/4 ###
+### RPI3 (note that RPI4 reuses most of those as well)
################
%package sub1-Preset_boards-RPI3_HAL_Backend
Summary: RPI3 Selection for HAL
@@ -70,6 +70,7 @@ Packages for PASS HAL and Feature for RPI.
%package sub2-Preset_boards-RPI3_HAL_Backend-System_Device
Summary: RPI3_Deviced Plugin for HAL
Requires: hal-backend-device-rpi
+Requires: hal-backend-device-rpi3
%description sub2-Preset_boards-RPI3_HAL_Backend-System_Device
Packages for Deviced HAL and Feature for RPI.
diff --git a/packaging/platform-preset-boards-rpi3.inc b/packaging/platform-preset-boards-rpi3.inc
index 659ee00..a401ae8 100644
--- a/packaging/platform-preset-boards-rpi3.inc
+++ b/packaging/platform-preset-boards-rpi3.inc
@@ -37,6 +37,7 @@ Conflicts: %{name}-sub1-Preset_boards-TM1
Conflicts: %{name}-sub1-Preset_boards-TM2
Conflicts: %{name}-sub1-Preset_boards-ARTIK530
Conflicts: %{name}-sub1-Preset_boards-COMMON
+# FIXME: Conflicts RPI4? there isn't a generic RPI4, just an RPI4 HAL Backend? should this file be copy-pasted for RPI4?
%description sub1-Preset_boards-RPI3
Firstly select HALs and Feature to add to your image.
@@ -102,6 +103,7 @@ Summary: RPI3_Deviced Plugin
Requires: %{name}-sub2-domain_API-System-Device
Requires: deviced-plugin-profile-iot
Requires: hal-backend-device-rpi
+Requires: hal-backend-device-rpi3
%description sub2-Preset_boards-RPI3-System_Device
Packages for Deviced HAL and Feature.
diff --git a/packaging/platform-preset-boards-rpi4-hal-backend.inc b/packaging/platform-preset-boards-rpi4-hal-backend.inc
new file mode 100644
index 0000000..8261df7
--- /dev/null
+++ b/packaging/platform-preset-boards-rpi4-hal-backend.inc
@@ -0,0 +1,173 @@
+# Maintainer: Tizen PM?
+# You need ACK (+1) from the maintainer to be reviewed by building-block maintainers.
+
+################
+### RPI4 (almost wholly overlaps with 3, except SystemDevice for hardware reasons)
+################
+%package sub1-Preset_boards-RPI4_HAL_Backend
+Summary: RPI4 Selection for HAL
+Requires: model-config-generic-hal
+Requires: %{name}-sub2-Preset_boards-RPI3_HAL_Backend-Power
+
+## NOTE: 4 here!
+Requires: %{name}-sub2-Preset_boards-RPI4_HAL_Backend-System_Device
+
+Requires: %{name}-sub2-Preset_boards-RPI3_HAL_Backend-Bluetooth
+Requires: %{name}-sub2-Preset_boards-RPI3_HAL_Backend-Audio
+Requires: %{name}-sub2-Preset_boards-RPI3_HAL_Backend-GPS
+Requires: %{name}-sub2-Preset_boards-RPI3_HAL_Backend-Camera_Common
+Requires: %{name}-sub2-Preset_boards-RPI3_HAL_Backend-Display
+Requires: %{name}-sub2-Preset_boards-RPI3_HAL_Backend-Codec
+Requires: %{name}-sub2-Preset_boards-RPI3_HAL_Backend-FlashManager
+
+%description sub1-Preset_boards-RPI4_HAL_Backend
+Firstly select HAL Backends to add to your image.
+%files sub1-Preset_boards-RPI4_HAL_Backend
+%posttrans sub1-Preset_boards-RPI4_HAL_Backend
+%tizen_hal_feature tizen.org/system/platform.processor BCM2837
+%tizen_hal_feature tizen.org/system/platform.communication_processor none
+%tizen_hal_feature tizen.org/feature/platform.core.cpu.arch armv8
+%tizen_hal_feature tizen.org/feature/platform.core.cpu.arch.armv7 false
+%tizen_hal_feature tizen.org/feature/platform.core.cpu.arch.armv8 true
+%tizen_hal_feature tizen.org/feature/platform.core.cpu.frequency 1200
+%tizen_hal_feature tizen.org/feature/platform.core.fpu.arch vfpv4
+%tizen_hal_feature tizen.org/feature/platform.core.fpu.arch.vfpv3 false
+%tizen_hal_feature tizen.org/feature/platform.core.fpu.arch.vfpv4 true
+%tizen_hal_feature tizen.org/feature/network.wifi true
+%tizen_hal_feature tizen.org/feature/network.ethernet true
+%tizen_hal_feature tizen.org/feature/network.wifi.tdls false
+%tizen_hal_feature tizen.org/feature/network.wifi.softap true
+%tizen_hal_feature tizen.org/feature/network.tethering.wifi true
+%tizen_hal_feature tizen.org/feature/screen.height 720
+%tizen_hal_feature tizen.org/feature/screen.output.hdmi true
+%tizen_hal_feature tizen.org/feature/screen.output.rca false
+%tizen_hal_feature tizen.org/feature/screen.shape.circle false
+%tizen_hal_feature tizen.org/feature/screen.shape.rectangle true
+%tizen_hal_feature tizen.org/feature/screen.size.normal.720.1280 true
+%tizen_hal_feature tizen.org/feature/screen.width 1280
+%tizen_hal_feature tizen.org/feature/sensor.accelerometer false
+%tizen_hal_feature tizen.org/feature/sensor.gravity false
+%tizen_hal_feature tizen.org/feature/sensor.linear_acceleration false
+%tizen_hal_feature tizen.org/feature/sensor.proximity false
+%tizen_hal_feature tizen.org/feature/sensor.temperature false
+%tizen_hal_feature tizen.org/feature/sensor.heart_rate_monitor.batch false
+%tizen_hal_feature tizen.org/feature/sensor.heart_rate_monitor.led_green.batch false
+%tizen_hal_feature tizen.org/feature/storage.external true
+%tizen_hal_feature tizen.org/feature/peripheral_io.gpio true
+%tizen_hal_feature tizen.org/feature/peripheral_io.i2c true
+%tizen_hal_feature tizen.org/feature/peripheral_io.pwm false
+%tizen_hal_feature tizen.org/feature/peripheral_io.spi true
+%tizen_hal_feature tizen.org/feature/peripheral_io.uart true
+%tizen_hal_feature tizen.org/system/model_name rpi3
+
+### RPI3-Power ###
+%package sub2-Preset_boards-RPI3_HAL_Backend-Power
+Summary: RPI3_Power
+Requires: pass-hal-rpi
+
+%description sub2-Preset_boards-RPI3_HAL_Backend-Power
+Packages for PASS HAL and Feature for RPI.
+%files sub2-Preset_boards-RPI3_HAL_Backend-Power
+
+### RPI4-System_Device ###
+%package sub2-Preset_boards-RPI4_HAL_Backend-System_Device
+Summary: RPI4_Deviced Plugin for HAL
+Requires: hal-backend-device-rpi
+Requires: hal-backend-device-rpi4
+
+%description sub2-Preset_boards-RPI3_HAL_Backend-System_Device
+Packages for Deviced HAL and Feature for RPI.
+%files sub2-Preset_boards-RPI3_HAL_Backend-System_Device
+%posttrans sub2-Preset_boards-RPI3_HAL_Backend-System_Device
+%tizen_hal_feature tizen.org/feature/thermistor.ap true
+
+### RPI3-Bluetooth ###
+%package sub2-Preset_boards-RPI3_HAL_Backend-Bluetooth
+Summary: RPI3_Bluetooth for HAL
+Requires: bluetooth-firmware-bcm-rpi3
+
+%description sub2-Preset_boards-RPI3_HAL_Backend-Bluetooth
+Packages of Bluetooth HAL and Feature for RPI3.
+%files sub2-Preset_boards-RPI3_HAL_Backend-Bluetooth
+%posttrans sub2-Preset_boards-RPI3_HAL_Backend-Bluetooth
+%tizen_hal_feature tizen.org/feature/network.bluetooth.le.5_0 false
+
+### RPI3-Audio ###
+%package sub2-Preset_boards-RPI3_HAL_Backend-Audio
+Summary: RPI3_Audio for HAL
+Requires: audio-hal-bcm2837
+Requires: alsa-ucm-data-rpi3
+Requires: media-config-target-rpi3
+
+%description sub2-Preset_boards-RPI3_HAL_Backend-Audio
+Packages of Audio HAL and Feature for RPI3.
+%files sub2-Preset_boards-RPI3_HAL_Backend-Audio
+%posttrans sub2-Preset_boards-RPI3_HAL_Backend-Audio
+%tizen_hal_feature tizen.org/feature/microphone true
+%tizen_hal_feature tizen.org/feature/media.audio_recording true
+
+### RPI3-GPS ###
+%package sub2-Preset_boards-RPI3_HAL_Backend-GPS
+Summary: RPI3_GPS
+Requires: lbs-server-plugin-replay
+
+%description sub2-Preset_boards-RPI3_HAL_Backend-GPS
+Packages of GPS HAL and Feature for RPI3.
+%files sub2-Preset_boards-RPI3_HAL_Backend-GPS
+
+### RPI3-Camera_Common ###
+%package sub2-Preset_boards-RPI3_HAL_Backend-Camera_Common
+Summary: RPI3_Camera(Common) for HAL
+Requires: camera-hal-v4l2
+Requires: media-config-target-rpi3
+
+%description sub2-Preset_boards-RPI3_HAL_Backend-Camera_Common
+Packages of Camera HAL and Feature for RPI3(Common).
+%files sub2-Preset_boards-RPI3_HAL_Backend-Camera_Common
+%posttrans sub2-Preset_boards-RPI3_HAL_Backend-Camera_Common
+%tizen_hal_feature tizen.org/feature/camera true
+%tizen_hal_feature tizen.org/feature/camera.back true
+%tizen_hal_feature tizen.org/feature/camera.back.flash false
+%tizen_hal_feature tizen.org/feature/camera.front false
+%tizen_hal_feature tizen.org/feature/camera.front.flash false
+%tizen_hal_feature tizen.org/feature/media.video_recording true
+
+### RPI3-Display ###
+%package sub2-Preset_boards-RPI3_HAL_Backend-Display
+Summary: RPI3_Display for HAL
+Requires: hal-backend-tbm-vc4
+Requires: hal-backend-tdm-vc4
+
+%description sub2-Preset_boards-RPI3_HAL_Backend-Display
+Packages of Display HAL and Feature for RPI3.
+%files sub2-Preset_boards-RPI3_HAL_Backend-Display
+%posttrans sub2-Preset_boards-RPI3_HAL_Backend-Display
+%tizen_hal_feature tizen.org/feature/graphics.acceleration true
+%tizen_hal_feature tizen.org/feature/multi_point_touch.pinch_zoom true
+%tizen_hal_feature tizen.org/feature/opengles true
+%tizen_hal_feature tizen.org/feature/opengles.version.1_1 true
+%tizen_hal_feature tizen.org/feature/opengles.version.2_0 true
+%tizen_hal_feature tizen.org/feature/opengles.version.3_0 false
+%tizen_hal_feature tizen.org/feature/opengles.version.3_1 false
+%tizen_hal_feature tizen.org/feature/opengles.version.3_2 false
+%tizen_hal_feature tizen.org/feature/vulkan.version.1_0 false
+%tizen_hal_feature tizen.org/feature/screen true
+%tizen_hal_feature tizen.org/feature/opengles.surfaceless_context true
+
+### RPI3-Codec ###
+%package sub2-Preset_boards-RPI3_HAL_Backend-Codec
+Summary: RPI3_Codec for HAL
+Requires: media-config-target-rpi3
+
+%description sub2-Preset_boards-RPI3_HAL_Backend-Codec
+Packages of Codec HAL and Feature for RPI3.
+%files sub2-Preset_boards-RPI3_HAL_Backend-Codec
+
+### RPI3-FlashManager ###
+%package sub2-Preset_boards-RPI3_HAL_Backend-FlashManager
+Summary: RPI3_FlashManager for HAL
+Requires: fm-data-rpi3
+
+%description sub2-Preset_boards-RPI3_HAL_Backend-FlashManager
+Packages of Partition Data of FlashManager for RPI3.
+%files sub2-Preset_boards-RPI3_HAL_Backend-FlashManager
diff --git a/packaging/platform-preset-boards.inc b/packaging/platform-preset-boards.inc
index f884adb..bf36c86 100644
--- a/packaging/platform-preset-boards.inc
+++ b/packaging/platform-preset-boards.inc
@@ -11,8 +11,13 @@ Suggests: %{name}-sub1-Preset_boards-ARTIK530_HAL_Backend
%endif
%ifarch armv7l aarch64
Suggests: %{name}-sub1-Preset_boards-COMMON
+
+# FIXME: the below "plain" RPI3 is also used for RPI4, but not the HAL backend.
+# This is probably a bit confusing but we won't have to copy-paste the plain package.
Suggests: %{name}-sub1-Preset_boards-RPI3
Suggests: %{name}-sub1-Preset_boards-RPI3_HAL_Backend
+Suggests: %{name}-sub1-Preset_boards-RPI4_HAL_Backend
+
%endif
%ifarch aarch64
Suggests: %{name}-sub1-Preset_boards-VIM3_HAL_Backend