From 4162b9889a12f334a89c9c7f1169d6791ae4dd76 Mon Sep 17 00:00:00 2001 From: Jaehoon Chung Date: Tue, 3 Aug 2021 08:54:37 +0900 Subject: [TRE-2769] Add iot-hal-backend-rpi4 pattern To Distinguish correct board between rpi3 and rpi4, added iot-hal-backend-rpi4 pattern. Change-Id: I754d64f0f37805fbf780b7dd670fb9d5176b732a Signed-off-by: Jaehoon Chung --- ks/tizen-boot-arm64-rpi4.yaml | 2 +- ks/tizen-boot-armv7l-rpi4.yaml | 2 +- patterns/iot-hal-backend-rpi4.yaml | 5 +++++ scripts/iot-hal-backend.post | 5 ++++- 4 files changed, 11 insertions(+), 3 deletions(-) create mode 100644 patterns/iot-hal-backend-rpi4.yaml diff --git a/ks/tizen-boot-arm64-rpi4.yaml b/ks/tizen-boot-arm64-rpi4.yaml index d771b8b..42c0b40 100644 --- a/ks/tizen-boot-arm64-rpi4.yaml +++ b/ks/tizen-boot-arm64-rpi4.yaml @@ -9,7 +9,7 @@ FileName: tizen-boot-arm64-rpi4 Groups: - IoT Boot RPi4 - IoT Hal Base -- IoT Hal Backend RPI3 +- IoT Hal Backend RPI4 Repos: - unified-standard - base-standard diff --git a/ks/tizen-boot-armv7l-rpi4.yaml b/ks/tizen-boot-armv7l-rpi4.yaml index d4f759b..6ace942 100644 --- a/ks/tizen-boot-armv7l-rpi4.yaml +++ b/ks/tizen-boot-armv7l-rpi4.yaml @@ -9,7 +9,7 @@ FileName: tizen-boot-armv7l-rpi4 Groups: - IoT Boot RPi4 32Bit - IoT Hal Base -- IoT Hal Backend RPI3 +- IoT Hal Backend RPI4 Repos: - unified-standard - base-standard diff --git a/patterns/iot-hal-backend-rpi4.yaml b/patterns/iot-hal-backend-rpi4.yaml new file mode 100644 index 0000000..aeea04b --- /dev/null +++ b/patterns/iot-hal-backend-rpi4.yaml @@ -0,0 +1,5 @@ +Summary: IoT Hal Backend RPI4 +Description: IoT Hal Backend RPI4 +Name: iot-hal-backend-rpi4 +Packages: +- building-blocks-sub1-Preset_boards-RPI4_HAL_Backend diff --git a/scripts/iot-hal-backend.post b/scripts/iot-hal-backend.post index 79fca64..063b017 100644 --- a/scripts/iot-hal-backend.post +++ b/scripts/iot-hal-backend.post @@ -86,7 +86,7 @@ create_backend_dependency_file() { } #Supported Target's list -TARGET=("RPI3" "ARTIK530" "VIM3" "C4"); +TARGET=("RPI3" "RPI4" "ARTIK530" "VIM3" "C4"); PKGGROUP=`/usr/bin/rpm -qa | /bin/grep package-groups` if [ $PKGGROUP ]; then @@ -102,6 +102,9 @@ if [ $PKGGROUP ]; then RPI3) BACKEND=`/usr/bin/xmlstarlet sel -t -v '//group[name = "IoT Hal Backend RPI3"]/packagelist/packagereq' -n /usr/share/package-groups/group.xml` ;; + RPI4) + BACKEND=`/usr/bin/xmlstarlet sel -t -v '//group[name = "IoT Hal Backend RPI4"]/packagelist/packagereq' -n /usr/share/package-groups/group.xml` + ;; ARTIK530) BACKEND=`/usr/bin/xmlstarlet sel -t -v '//group[name = "IoT Hal Backend ARTIK530"]/packagelist/packagereq' -n /usr/share/package-groups/group.xml` ;; -- cgit v1.2.3