[TRE-2878] Support Tizen Generic HAL Image(GHI) 91/271691/1 accepted/tizen/unified/20220302.131923 submit/tizen/20220302.022238
authorJaehoon Chung <jh80.chung@samsung.com>
Thu, 24 Feb 2022 22:39:41 +0000 (07:39 +0900)
committerJaehoon Chung <jh80.chung@samsung.com>
Fri, 25 Feb 2022 00:25:03 +0000 (09:25 +0900)
Support Tizen Generic HAL Image(GHI).
It will be used without any H/W specific dependency.

Change-Id: I4019b2c97e30abbdb7e45f59eab3f6f4715e3f0a
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
common-targets.yaml
common.yaml
ks/tizen-arm64-generic-hal.yaml [new file with mode: 0644]
ks/tizen-armv7l-generic-hal.yaml [new file with mode: 0644]
partitions/common-generic-hal [new file with mode: 0644]
patterns/iot-hal-backend-generic.yaml [new file with mode: 0644]
patterns/iot-hal-base.yaml
scripts/iot-hal-backend.post

index 619bc8ce49eb7a2d643da498c4112b72df753c27..47ce9c8f375fc1a50ee8097e8406b27914b8828f 100644 (file)
@@ -14,6 +14,8 @@ Targets:
             - tizen-headless-armv7l.yaml
             - tizen-headed-aarch64.yaml
             - tizen-headless-aarch64.yaml
+            - tizen-armv7l-generic-hal.yaml
+            - tizen-arm64-generic-hal.yaml
 
     -   Name: emulator
         Images:
index 6670f6bd0c3cdfe324a783146a833d3c3eb33c7e..23446bf8aa6eedf9dcdffe3bf6030e1bb0d4edde 100644 (file)
@@ -169,3 +169,14 @@ Tizen-Headed-Emulator32-wayland:
     Repos: []
     NoChrootScripts:
         - buildname
+
+Generic-HAL:
+    Part: common-generic-hal
+    Desktop: None
+    SaveRepos: False
+    UserGroups: "audio,video"
+    Groups:
+        - IoT Hal Backend GENERIC
+    PostScripts:
+        - iot-hal-backend
+    Repos: []
diff --git a/ks/tizen-arm64-generic-hal.yaml b/ks/tizen-arm64-generic-hal.yaml
new file mode 100644 (file)
index 0000000..2ecc3bb
--- /dev/null
@@ -0,0 +1,14 @@
+Name: tizen-arm64-generic-hal
+Architecture: aarch64
+Schedule: "*"
+Active: True
+Platform: Generic-HAL
+Part: common-generic-hal
+Mic2Options: -A aarch64 -f loop --pack-to=@NAME@.tar.gz
+FileName: tizen-arm64-generic-hal
+Groups:
+- IoT Hal Base
+- IoT Hal Backend GENERIC
+Repos:
+- unified-standard
+- base-standard
diff --git a/ks/tizen-armv7l-generic-hal.yaml b/ks/tizen-armv7l-generic-hal.yaml
new file mode 100644 (file)
index 0000000..8725040
--- /dev/null
@@ -0,0 +1,14 @@
+Name: tizen-armv7l-generic-hal
+Architecture: armv7l
+Schedule: "*"
+Active: True
+Platform: Generic-HAL
+Part: common-generic-hal
+Mic2Options: -A armv7l -f loop --pack-to=@NAME@.tar.gz
+FileName: tizen-armv7l-generic-hal
+Groups:
+- IoT Hal Base
+- IoT Hal Backend GENERIC
+Repos:
+- unified-standard
+- base-standard
diff --git a/partitions/common-generic-hal b/partitions/common-generic-hal
new file mode 100644 (file)
index 0000000..c0ce442
--- /dev/null
@@ -0,0 +1,2 @@
+part / --exclude-from-image --fstype="ext4" --size=512 --ondisk=mmcblk0 --active --label dummy --fsoptions=defaults,noatime
+part /hal --fstype="ext4" --size=256 --ondisk=mmcblk0 --active --label hal --fsoptions=defaults,noatime
diff --git a/patterns/iot-hal-backend-generic.yaml b/patterns/iot-hal-backend-generic.yaml
new file mode 100644 (file)
index 0000000..c122d6d
--- /dev/null
@@ -0,0 +1,5 @@
+Summary: IoT Hal Backend GENERIC
+Description: IoT Hal Backend GENERIC
+Name: iot-hal-backend-generic
+Packages:
+- building-blocks-sub1-Preset_boards-GENERIC_HAL_Backend
index a36419ef281c45fd15617047274a6c25ce5cb97e..1eff9679c424df1e89b7d503a4071ad90611d111 100644 (file)
@@ -8,3 +8,5 @@ Packages:
 - tizen-release
 - gawk
 - sed
+- grep
+- coreutils
index 063b01760f3f88bb3fc35af5491ffd9d16d82951..19d9741bc0dc46478fc04760c56ffe171cbecf37 100644 (file)
@@ -86,7 +86,7 @@ create_backend_dependency_file() {
 }
 
 #Supported Target's list
-TARGET=("RPI3" "RPI4" "ARTIK530" "VIM3" "C4");
+TARGET=("RPI3" "RPI4" "ARTIK530" "VIM3" "C4" "GENERIC");
 
 PKGGROUP=`/usr/bin/rpm -qa | /bin/grep package-groups`
 if [ $PKGGROUP ]; then
@@ -114,6 +114,8 @@ if [ $PKGGROUP ]; then
        C4)
                BACKEND=`/usr/bin/xmlstarlet sel -t -v '//group[name = "IoT Hal Backend C4"]/packagelist/packagereq' -n /usr/share/package-groups/group.xml`
        ;;
+       GENERIC)
+               BACKEND=`/usr/bin/xmlstarlet sel -t -v '//group[name = "IoT Hal Backend GENERIC"]/packagelist/packagereq' -n /usr/share/package-groups/group.xml`
        esac
 
        /usr/bin/mkdir -p /hal/list/