Skip to content
Snippets Groups Projects
Commit 18dd5209 authored by Tobias Kahlki's avatar Tobias Kahlki
Browse files

mx6:boot: Added alternate image name

The alternate name is the same that is generated by imx-boot. It is used
to generate WiC images.
parent 05b8dd1f
No related branches found
No related tags found
1 merge request!405mx6:boot: Combined bootloader (fngboot + U-Boot) for SECO NE i.MX6 devices
Pipeline #72420 passed with stage
in 9 seconds
...@@ -11,7 +11,10 @@ do_compile[depends] = "u-boot-imx:do_deploy fngboot:do_deploy" ...@@ -11,7 +11,10 @@ do_compile[depends] = "u-boot-imx:do_deploy fngboot:do_deploy"
S = "${WORKDIR}" S = "${WORKDIR}"
FILES:${PN} = "${datadir}/${MX6_BOOT_ARCHIVE}" FILES:${PN} = " \
${datadir}/${MX6_BOOT_ARCHIVE} \
${datadir}/${MX6_BOOT_ALT_NAME} \
"
do_compile() { do_compile() {
tar -xpf ${DEPLOY_DIR_IMAGE}/${FNGBOOT_ARCHIVE} tar -xpf ${DEPLOY_DIR_IMAGE}/${FNGBOOT_ARCHIVE}
...@@ -25,6 +28,7 @@ do_compile() { ...@@ -25,6 +28,7 @@ do_compile() {
do_install() { do_install() {
install -d ${D}${datadir} install -d ${D}${datadir}
install -m 0644 ${S}/${MX6_BOOT_ARCHIVE} ${D}${datadir}/ install -m 0644 ${S}/${MX6_BOOT_ARCHIVE} ${D}${datadir}/
install -m 0644 ${S}/${MX6_BOOT_NAME} ${D}${datadir}/${MX6_BOOT_ALT_NAME}
} }
inherit deploy inherit deploy
...@@ -33,4 +37,5 @@ addtask deploy after do_compile ...@@ -33,4 +37,5 @@ addtask deploy after do_compile
do_deploy() { do_deploy() {
install -m 0644 ${MX6_BOOT_ARCHIVE} ${DEPLOYDIR}/ install -m 0644 ${MX6_BOOT_ARCHIVE} ${DEPLOYDIR}/
install -m 0644 ${MX6_BOOT_NAME} ${DEPLOYDIR}/${MX6_BOOT_ALT_NAME}
} }
MX6_BOOT_NAME = "mx6-boot.bin" MX6_BOOT_NAME = "mx6-boot.bin"
MX6_BOOT_ARCHIVE = "mx6-boot.tar.gz" MX6_BOOT_ARCHIVE = "mx6-boot.tar.gz"
MX6_BOOT_ALT_NAME ??= "u-boot.imx"
# U-Boot offset on real devices (= 128KB / 0x20000) # U-Boot offset on real devices (= 128KB / 0x20000)
FNGBOOT_UBOOT_OFFSET = "131072" FNGBOOT_UBOOT_OFFSET = "131072"
......
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