-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Ayman Chaudhry <[email protected]>
- Loading branch information
Ayman Chaudhry
committed
Nov 5, 2021
1 parent
c84d245
commit 9d4c3c0
Showing
16 changed files
with
159 additions
and
36 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
50 changes: 50 additions & 0 deletions
50
patches/meta-rzg2/dunfell-rzg2l/0001-Enable-RZ-G2L-Qt-SDK-builds.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
From 72741aae81f7b6a06cc1e6a841fcd9eb009339d9 Mon Sep 17 00:00:00 2001 | ||
From: Gareth Williams <[email protected]> | ||
Date: Tue, 2 Nov 2021 15:26:59 +0000 | ||
Subject: [PATCH] Enable RZ/G2L Qt SDK builds | ||
|
||
Signed-off-by: Gareth Williams <[email protected]> | ||
--- | ||
.../qt5-layer/images/core-image-qt-sdk.bb | 30 ++++++++++++++++++++++ | ||
1 file changed, 30 insertions(+) | ||
create mode 100644 dynamic-layers/qt5-layer/images/core-image-qt-sdk.bb | ||
|
||
diff --git a/dynamic-layers/qt5-layer/images/core-image-qt-sdk.bb b/dynamic-layers/qt5-layer/images/core-image-qt-sdk.bb | ||
new file mode 100644 | ||
index 0000000..706e3a8 | ||
--- /dev/null | ||
+++ b/dynamic-layers/qt5-layer/images/core-image-qt-sdk.bb | ||
@@ -0,0 +1,30 @@ | ||
+include core-image-qt.bb | ||
+inherit populate_sdk_qt5_base | ||
+ | ||
+### For cross-compile Qt ### | ||
+TOOLCHAIN_HOST_TASK_append = ' nativesdk-qtbase-tools ' | ||
+ | ||
+# Create pri file to prevent below warning when running qmake | ||
+# "...usr/lib/qt5/mkspecs/oe-device-extra.pri: No such file or directory" | ||
+fakeroot append_qt () { | ||
+ # Generate oe-device-extra.pri | ||
+ if [ -d ${SDK_OUTPUT}/${SDKPATH}/sysroots/${TARGET_SYS}/${libdir}/${QT_DIR_NAME}/mkspecs ] && | ||
+ [ ! -f ${SDK_OUTPUT}/${SDKPATH}/sysroots/${TARGET_SYS}/${libdir}/${QT_DIR_NAME}/mkspecs/oe-device-extra.pri ] | ||
+ then | ||
+ touch ${SDK_OUTPUT}/${SDKPATH}/sysroots/${TARGET_SYS}/${libdir}/${QT_DIR_NAME}/mkspecs/oe-device-extra.pri | ||
+ fi | ||
+} | ||
+SDK_POSTPROCESS_COMMAND_prepend = " append_qt;" | ||
+ | ||
+ | ||
+### For self-compile Qt ### | ||
+IMAGE_INSTALL_append = ' packagegroup-qt5-toolchain-target ' | ||
+ | ||
+setup_qt_env () { | ||
+ if [ ! -e ${IMAGE_ROOTFS}/${sysconfdir}/profile.d/setup_qt_env ] | ||
+ then | ||
+ echo 'export PATH=$PATH:/usr/bin/qt5' > ${IMAGE_ROOTFS}${sysconfdir}/profile.d/setup_qt_env | ||
+ echo 'export INCLUDEPATH=$INCLUDEPATH:/usr/include/qt5' >> ${IMAGE_ROOTFS}${sysconfdir}/profile.d/setup_qt_env | ||
+ fi | ||
+} | ||
+ROOTFS_POSTPROCESS_COMMAND += 'setup_qt_env;' | ||
-- | ||
2.7.4 | ||
|
77 changes: 77 additions & 0 deletions
77
patches/meta-rzg2/dunfell-rzg2l/0001-firmware-pack-fix-tf-a-binary-file-not-found.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,77 @@ | ||
From 8c70fb75b8225ea5ee9ecdf99914d4864abde6fe Mon Sep 17 00:00:00 2001 | ||
From: Nhan Nguyen <[email protected]> | ||
Date: Tue, 12 Oct 2021 16:17:49 +0700 | ||
Subject: [PATCH] firmware-pack: fix tf-a binary file not found | ||
|
||
Signed-off-by: Nhan Nguyen <[email protected]> | ||
--- | ||
recipes-bsp/firmware-pack/firmware-pack.bb | 12 ++++++------ | ||
.../trusted-firmware-a/trusted-firmware-a.inc | 14 ++++++++++++++ | ||
2 files changed, 20 insertions(+), 6 deletions(-) | ||
|
||
diff --git a/recipes-bsp/firmware-pack/firmware-pack.bb b/recipes-bsp/firmware-pack/firmware-pack.bb | ||
index 6a8848ac..86666fbb 100644 | ||
--- a/recipes-bsp/firmware-pack/firmware-pack.bb | ||
+++ b/recipes-bsp/firmware-pack/firmware-pack.bb | ||
@@ -15,20 +15,20 @@ do_configure[noexec] = "1" | ||
do_compile () { | ||
|
||
# Create bl2_bp.bin | ||
- bootparameter ${DEPLOY_DIR_IMAGE}/bl2-${MACHINE}.bin bl2_bp.bin | ||
- cat ${DEPLOY_DIR_IMAGE}/bl2-${MACHINE}.bin >> bl2_bp.bin | ||
+ bootparameter ${WORKDIR}/recipe-sysroot/boot/bl2-${MACHINE}.bin bl2_bp.bin | ||
+ cat ${WORKDIR}/recipe-sysroot/boot/bl2-${MACHINE}.bin >> bl2_bp.bin | ||
|
||
# Create fip.bin | ||
- fiptool create --align 16 --soc-fw ${DEPLOY_DIR_IMAGE}/bl31-${MACHINE}.bin --nt-fw ${DEPLOY_DIR_IMAGE}/u-boot-${MACHINE}.bin fip.bin | ||
+ fiptool create --align 16 --soc-fw ${WORKDIR}/recipe-sysroot/boot/bl31-${MACHINE}.bin --nt-fw ${WORKDIR}/recipe-sysroot/boot/u-boot.bin fip.bin | ||
|
||
# Convert to srec | ||
objcopy -O srec --adjust-vma=0x00011E00 --srec-forceS3 -I binary bl2_bp.bin bl2_bp.srec | ||
objcopy -I binary -O srec --adjust-vma=0x0000 --srec-forceS3 fip.bin fip.srec | ||
|
||
if [ "${PMIC_SUPPORT}" = "1" ]; then | ||
- bootparameter ${DEPLOY_DIR_IMAGE}/bl2-${MACHINE}_pmic.bin bl2_bp_pmic.bin | ||
- cat ${DEPLOY_DIR_IMAGE}/bl2-${MACHINE}_pmic.bin >> bl2_bp_pmic.bin | ||
- fiptool create --align 16 --soc-fw ${DEPLOY_DIR_IMAGE}/bl31-${MACHINE}_pmic.bin --nt-fw ${DEPLOY_DIR_IMAGE}/u-boot-${MACHINE}.bin fip_pmic.bin | ||
+ bootparameter ${WORKDIR}/recipe-sysroot/boot/bl2-${MACHINE}_pmic.bin bl2_bp_pmic.bin | ||
+ cat ${WORKDIR}/recipe-sysroot/boot/bl2-${MACHINE}_pmic.bin >> bl2_bp_pmic.bin | ||
+ fiptool create --align 16 --soc-fw ${WORKDIR}/recipe-sysroot/boot/bl31-${MACHINE}_pmic.bin --nt-fw ${WORKDIR}/recipe-sysroot/boot/u-boot.bin fip_pmic.bin | ||
objcopy -O srec --adjust-vma=0x00011E00 --srec-forceS3 -I binary bl2_bp_pmic.bin bl2_bp_pmic.srec | ||
objcopy -I binary -O srec --adjust-vma=0x0000 --srec-forceS3 fip_pmic.bin fip_pmic.srec | ||
fi | ||
diff --git a/recipes-bsp/trusted-firmware-a/trusted-firmware-a.inc b/recipes-bsp/trusted-firmware-a/trusted-firmware-a.inc | ||
index b7a4f35a..afcc6c33 100644 | ||
--- a/recipes-bsp/trusted-firmware-a/trusted-firmware-a.inc | ||
+++ b/recipes-bsp/trusted-firmware-a/trusted-firmware-a.inc | ||
@@ -48,6 +48,9 @@ LD[unexport] = "1" | ||
# No configure | ||
do_configure[noexec] = "1" | ||
|
||
+FILES_${PN} = "/boot " | ||
+SYSROOT_DIRS += "/boot" | ||
+ | ||
do_compile () { | ||
# Build TF-A | ||
oe_runmake PLAT=${PLATFORM} ${EXTRA_FLAGS} bl2 bl31 | ||
@@ -57,6 +60,17 @@ do_compile () { | ||
fi | ||
} | ||
|
||
+do_install () { | ||
+ install -d ${D}/boot | ||
+ install -m 644 ${S}/build/${PLATFORM}/release/bl2.bin ${D}/boot/bl2-${MACHINE}.bin | ||
+ install -m 644 ${S}/build/${PLATFORM}/release/bl31.bin ${D}/boot/bl31-${MACHINE}.bin | ||
+ | ||
+ if [ "${PMIC_SUPPORT}" = "1" ]; then | ||
+ install -m 0644 ${PMIC_BUILD_DIR}/bl2.bin ${D}/boot/bl2-${MACHINE}_pmic.bin | ||
+ install -m 0644 ${PMIC_BUILD_DIR}/bl31.bin ${D}/boot/bl31-${MACHINE}_pmic.bin | ||
+ fi | ||
+} | ||
+ | ||
do_deploy () { | ||
# Create deploy folder | ||
install -d ${DEPLOYDIR} | ||
-- | ||
2.25.1 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters