Support iot-hal-backend-vf2 to use a hal image 01/297901/1 accepted/tizen/unified/riscv/20230829.072058
authorJaehoon Chung <jh80.chung@samsung.com>
Mon, 28 Aug 2023 07:01:49 +0000 (16:01 +0900)
committerJaehoon Chung <jh80.chung@samsung.com>
Mon, 28 Aug 2023 08:38:40 +0000 (17:38 +0900)
Support iot-hal-backend-vf2 to use a hal.img.
hal.img will be include into BOOT tar file.

Change-Id: I3a054d32f8d3a1fde4ae4f1c75ff82c16608d1fc
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
common.yaml
ks/tizen-boot-riscv64-vf2.yaml
patterns/iot-hal-backend-vf2.yaml
scripts/iot-hal-backend.post

index 57f494661fce02b7d07e1f82826832f1db56662d..62603c963f1db67a0e0f0cf0b7b45302f5331321 100644 (file)
@@ -119,6 +119,8 @@ Boot-VisionFive2:
     SaveRepos: False
     UserGroups: "audio,video"
     Groups: []
+    PostScripts:
+        - iot-hal-backend
     Repos: []
 
 Boot-QEMU-RISC-V:
index 2a8b62fa0312ccf4389fb3623ae885dfe3d62108..26d87d822d45769b99790330ad14a20aa6b81c24 100644 (file)
@@ -3,11 +3,13 @@ Architecture: riscv64
 Schedule: "*"
 Active: True
 Platform: Boot-VisionFive2
-Part: common-mbr-boot-without-hal
+Part: common-mbr-boot
 Mic2Options: -A riscv64 -f loop --pack-to=@NAME@.tar.gz
 FileName: tizen-boot-riscv64-vf2
 Groups:
 - IoT Boot VisionFive2
+- IoT Hal Base
+- IoT Hal Backend VISIONFIVE2
 Attachment:
 - /var/tmp/u-boot.itb
 - /var/tmp/u-boot-spl.bin.normal.out
index 631212e325b4bb20b0554ddd00a7d6d559521def..926eb082672561b636adec29d129ac04fb6bb136 100644 (file)
@@ -1,5 +1,5 @@
-Summary: IoT Hal Backend VisionFive2
-Description: IoT Hal Backend VisionFive2
+Summary: IoT Hal Backend VISIONFIVE2
+Description: IoT Hal Backend VISIONFIVE2
 Name: iot-hal-backend-vf2
 Packages:
-- building-blocks-sub1-Preset_boards-VisionFive2_HAL_Backend
+- building-blocks-sub1-Preset_boards-VISIONFIVE2_HAL_Backend
index 19d9741bc0dc46478fc04760c56ffe171cbecf37..b13141ffce9be4ee51130ab4ac4566fcbbed24d1 100644 (file)
@@ -86,7 +86,7 @@ create_backend_dependency_file() {
 }
 
 #Supported Target's list
-TARGET=("RPI3" "RPI4" "ARTIK530" "VIM3" "C4" "GENERIC");
+TARGET=("RPI3" "RPI4" "ARTIK530" "VIM3" "C4" "GENERIC" "VISIONFIVE2");
 
 PKGGROUP=`/usr/bin/rpm -qa | /bin/grep package-groups`
 if [ $PKGGROUP ]; then
@@ -116,6 +116,10 @@ if [ $PKGGROUP ]; then
        ;;
        GENERIC)
                BACKEND=`/usr/bin/xmlstarlet sel -t -v '//group[name = "IoT Hal Backend GENERIC"]/packagelist/packagereq' -n /usr/share/package-groups/group.xml`
+       ;;
+       VISIONFIVE2)
+               BACKEND=`/usr/bin/xmlstarlet sel -t -v '//group[name = "IoT Hal Backend VISIONFIVE2"]/packagelist/packagereq' -n /usr/share/package-groups/group.xml`
+       ;;
        esac
 
        /usr/bin/mkdir -p /hal/list/