Skip to content
Snippets Groups Projects
Commit 894d57bd authored by Jonas Höppner's avatar Jonas Höppner
Browse files

imx-boot: Pack imx-boot, u-boot-env and other files to installation tar

As the number of files needed to install imx-boot/u-boot grows, all
files are packaged into a tar to be extracted during installation.
parent e5dcd7be
No related branches found
No related tags found
1 merge request!158imx-boot: Pack imx-boot, u-boot-env and other files to installation tar
Pipeline #17236 passed with stage
in 44 seconds
......@@ -32,9 +32,37 @@ compile_mx8m() {
cp ${DEPLOY_DIR_IMAGE}/${UBOOT_NAME} ${BOOT_STAGING}/u-boot.bin
}
do_deploy_append() {
do_compile_append() {
# Integrate fw_env.conf and u-boot-initial-env
cp "${DEPLOY_DIR_IMAGE}/u-boot-initial-env-${MACHINE}-${UBOOT_CONFIG}.bin" "${S}"
cp "${DEPLOY_DIR_IMAGE}/fw_env-${MACHINE}-${UBOOT_CONFIG}.conf" "${S}"
cd ${S}
cd ${DEPLOYDIR}
md5sum ${BOOT_CONFIG_MACHINE}-${IMAGE_IMXBOOT_TARGET} ${BOOT_NAME} > ${BOOT_NAME}.md5
for target in ${IMXBOOT_TARGETS}; do
# Store an md5sum to check the files on target before installation
md5sum ${BOOT_CONFIG_MACHINE}-${target} \
u-boot-initial-env-${MACHINE}-${UBOOT_CONFIG}.bin \
fw_env-${MACHINE}-${UBOOT_CONFIG}.conf \
> ${BOOT_CONFIG_MACHINE}-${target}.md5
done
cd -
}
do_deploy_append() {
for target in ${IMXBOOT_TARGETS}; do
# Create a tar from the bootfiles, compressed gz, dereference links (copy the file not the link into the tar)
cd ${S}
tar chzf ${DEPLOYDIR}/${BOOT_CONFIG_MACHINE}-${target}.tar.gz \
${BOOT_CONFIG_MACHINE}-${target} \
${BOOT_CONFIG_MACHINE}-${target}.md5 \
u-boot-initial-env-${MACHINE}-${UBOOT_CONFIG}.bin \
fw_env-${MACHINE}-${UBOOT_CONFIG}.conf
cd -
cd ${DEPLOYDIR}
ln -sf ${BOOT_CONFIG_MACHINE}-${target}.tar.gz ${BOOT_NAME}.tar.gz
cd -
done
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment