zeus migration: imx-boot: simplify bbappend to match with the upstream version
https://jira.digi.com/browse/DEL-7013 Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
This commit is contained in:
parent
ae082eac6f
commit
c7e4121de8
|
|
@ -45,9 +45,9 @@ compile_mx8m() {
|
||||||
done
|
done
|
||||||
cp ${DEPLOY_DIR_IMAGE}/signed_dp_imx8m.bin ${BOOT_STAGING}
|
cp ${DEPLOY_DIR_IMAGE}/signed_dp_imx8m.bin ${BOOT_STAGING}
|
||||||
cp ${DEPLOY_DIR_IMAGE}/signed_hdmi_imx8m.bin ${BOOT_STAGING}
|
cp ${DEPLOY_DIR_IMAGE}/signed_hdmi_imx8m.bin ${BOOT_STAGING}
|
||||||
cp ${DEPLOY_DIR_IMAGE}/${BOOT_TOOLS}/u-boot-spl.bin-${MACHINE}-${UBOOT_CONFIG} \
|
cp ${DEPLOY_DIR_IMAGE}/u-boot-spl.bin-${MACHINE}-${UBOOT_CONFIG} \
|
||||||
${BOOT_STAGING}/u-boot-spl.bin
|
${BOOT_STAGING}/u-boot-spl.bin
|
||||||
cp ${DEPLOY_DIR_IMAGE}/${BOOT_TOOLS}/${UBOOT_DTB_NAME} ${BOOT_STAGING}/fsl-imx8mn-evk.dtb
|
cp ${DEPLOY_DIR_IMAGE}/${BOOT_TOOLS}/${UBOOT_DTB_NAME} ${BOOT_STAGING}
|
||||||
cp ${DEPLOY_DIR_IMAGE}/${BOOT_TOOLS}/u-boot-nodtb.bin-${MACHINE}-${UBOOT_CONFIG} \
|
cp ${DEPLOY_DIR_IMAGE}/${BOOT_TOOLS}/u-boot-nodtb.bin-${MACHINE}-${UBOOT_CONFIG} \
|
||||||
${BOOT_STAGING}/u-boot-nodtb.bin
|
${BOOT_STAGING}/u-boot-nodtb.bin
|
||||||
bbnote "\
|
bbnote "\
|
||||||
|
|
@ -76,7 +76,7 @@ do_compile () {
|
||||||
cd -
|
cd -
|
||||||
for target in ${IMXBOOT_TARGETS}; do
|
for target in ${IMXBOOT_TARGETS}; do
|
||||||
bbnote "building ${SOC_TARGET} - ${ramc} - ${REV_OPTION} ${target}"
|
bbnote "building ${SOC_TARGET} - ${ramc} - ${REV_OPTION} ${target}"
|
||||||
make SOC=${SOC_TARGET} ${REV_OPTION} ${target}
|
make SOC=${SOC_TARGET} dtbs=${UBOOT_DTB_NAME} ${REV_OPTION} ${target}
|
||||||
if [ -e "${BOOT_STAGING}/flash.bin" ]; then
|
if [ -e "${BOOT_STAGING}/flash.bin" ]; then
|
||||||
cp ${BOOT_STAGING}/flash.bin ${S}/${UBOOT_PREFIX}-${MACHINE}-${ramc}.bin-${target}
|
cp ${BOOT_STAGING}/flash.bin ${S}/${UBOOT_PREFIX}-${MACHINE}-${ramc}.bin-${target}
|
||||||
fi
|
fi
|
||||||
|
|
@ -93,7 +93,7 @@ do_compile () {
|
||||||
# mkimage for i.MX8M
|
# mkimage for i.MX8M
|
||||||
for target in ${IMXBOOT_TARGETS}; do
|
for target in ${IMXBOOT_TARGETS}; do
|
||||||
bbnote "building ${SOC_TARGET} - ${REV_OPTION} ${target}"
|
bbnote "building ${SOC_TARGET} - ${REV_OPTION} ${target}"
|
||||||
make SOC=${SOC_TARGET} ${REV_OPTION} ${target} > mkimage-${target}.log 2>&1
|
make SOC=${SOC_TARGET} dtbs=${UBOOT_DTB_NAME} ${REV_OPTION} ${target} > mkimage-${target}.log 2>&1
|
||||||
if [ -e "${BOOT_STAGING}/flash.bin" ]; then
|
if [ -e "${BOOT_STAGING}/flash.bin" ]; then
|
||||||
cp ${BOOT_STAGING}/flash.bin ${S}/${UBOOT_PREFIX}-${MACHINE}.bin-${target}
|
cp ${BOOT_STAGING}/flash.bin ${S}/${UBOOT_PREFIX}-${MACHINE}.bin-${target}
|
||||||
fi
|
fi
|
||||||
|
|
@ -131,20 +131,6 @@ do_install () {
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
deploy_mx8m() {
|
|
||||||
install -d ${DEPLOYDIR}/${BOOT_TOOLS}
|
|
||||||
install -m 0644 ${DEPLOY_DIR_IMAGE}/${BOOT_TOOLS}/u-boot-spl.bin-${MACHINE}-${UBOOT_CONFIG} \
|
|
||||||
${DEPLOYDIR}/${BOOT_TOOLS}
|
|
||||||
for ddr_firmware in ${DDR_FIRMWARE_NAME}; do
|
|
||||||
install -m 0644 ${DEPLOY_DIR_IMAGE}/${ddr_firmware} ${DEPLOYDIR}/${BOOT_TOOLS}
|
|
||||||
done
|
|
||||||
install -m 0644 ${BOOT_STAGING}/signed_dp_imx8m.bin ${DEPLOYDIR}/${BOOT_TOOLS}
|
|
||||||
install -m 0644 ${BOOT_STAGING}/signed_hdmi_imx8m.bin ${DEPLOYDIR}/${BOOT_TOOLS}
|
|
||||||
install -m 0755 ${BOOT_STAGING}/${TOOLS_NAME} ${DEPLOYDIR}/${BOOT_TOOLS}
|
|
||||||
install -m 0755 ${BOOT_STAGING}/mkimage_fit_atf.sh ${DEPLOYDIR}/${BOOT_TOOLS}
|
|
||||||
install -m 0755 ${BOOT_STAGING}/mkimage_uboot ${DEPLOYDIR}/${BOOT_TOOLS}
|
|
||||||
}
|
|
||||||
|
|
||||||
do_deploy () {
|
do_deploy () {
|
||||||
deploy_${SOC_FAMILY}
|
deploy_${SOC_FAMILY}
|
||||||
# copy tee.bin to deploy path
|
# copy tee.bin to deploy path
|
||||||
|
|
|
||||||
|
|
@ -197,12 +197,7 @@ do_deploy_append_ccimx8x() {
|
||||||
}
|
}
|
||||||
|
|
||||||
do_deploy_append_ccimx8mn() {
|
do_deploy_append_ccimx8mn() {
|
||||||
# Move all U-Boot artifacts to the imx-boot-tools folder
|
# Deploy u-boot-nodtb.bin and ccimx8mn-dvk.dtb, to be packaged in boot binary by imx-boot
|
||||||
# U-Boot images are not bootable on the i.MX8M
|
|
||||||
install -d ${DEPLOYDIR}/${BOOT_TOOLS}
|
|
||||||
mv ${DEPLOYDIR}/u-boot-spl* ${DEPLOYDIR}/${BOOT_TOOLS}/
|
|
||||||
|
|
||||||
# Deploy the mkimage, u-boot-nodtb.bin and ccimx8mn-dvk.dtb for mkimage to generate boot binary
|
|
||||||
if [ -n "${UBOOT_CONFIG}" ]
|
if [ -n "${UBOOT_CONFIG}" ]
|
||||||
then
|
then
|
||||||
for config in ${UBOOT_MACHINE}; do
|
for config in ${UBOOT_MACHINE}; do
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue