diff options
-rw-r--r-- | classes/image_types_fsl.bbclass | 27 |
1 files changed, 0 insertions, 27 deletions
diff --git a/classes/image_types_fsl.bbclass b/classes/image_types_fsl.bbclass index dadbd734..4709af95 100644 --- a/classes/image_types_fsl.bbclass +++ b/classes/image_types_fsl.bbclass | |||
@@ -11,33 +11,6 @@ UBOOT_SUFFIX_SDCARD ?= "${UBOOT_SUFFIX}" | |||
11 | # | 11 | # |
12 | MXSBOOT_NAND_ARGS ?= "" | 12 | MXSBOOT_NAND_ARGS ?= "" |
13 | 13 | ||
14 | # IMX Bootlets Linux bootstream | ||
15 | do_image_linux.sb[depends] += "elftosb-native:do_populate_sysroot \ | ||
16 | imx-bootlets:do_deploy \ | ||
17 | virtual/kernel:do_deploy" | ||
18 | IMAGE_LINK_NAME_linux.sb = "" | ||
19 | IMAGE_CMD_linux.sb () { | ||
20 | kernel_bin="`readlink ${DEPLOY_DIR_IMAGE}/${KERNEL_IMAGETYPE}-${MACHINE}.bin`" | ||
21 | kernel_dtb="`readlink ${DEPLOY_DIR_IMAGE}/${KERNEL_IMAGETYPE}-${MACHINE}.dtb || true`" | ||
22 | linux_bd_file=imx-bootlets-linux.bd-${MACHINE} | ||
23 | if [ `basename $kernel_bin .bin` = `basename $kernel_dtb .dtb` ]; then | ||
24 | # When using device tree we build a zImage with the dtb | ||
25 | # appended on the end of the image | ||
26 | linux_bd_file=imx-bootlets-linux.bd-dtb-${MACHINE} | ||
27 | cat $kernel_bin $kernel_dtb \ | ||
28 | > $kernel_bin-dtb | ||
29 | rm -f ${DEPLOY_DIR_IMAGE}/${KERNEL_IMAGETYPE}-${MACHINE}.bin-dtb | ||
30 | ln -s $kernel_bin-dtb ${DEPLOY_DIR_IMAGE}/${KERNEL_IMAGETYPE}-${MACHINE}.bin-dtb | ||
31 | fi | ||
32 | |||
33 | # Ensure the file is generated | ||
34 | rm -f ${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}.linux.sb | ||
35 | (cd ${DEPLOY_DIR_IMAGE}; elftosb -z -c $linux_bd_file -o ${IMAGE_NAME}.linux.sb) | ||
36 | |||
37 | # Remove the appended file as it is only used here | ||
38 | rm -f ${DEPLOY_DIR_IMAGE}/$kernel_bin-dtb | ||
39 | } | ||
40 | |||
41 | # IMX Bootlets barebox bootstream | 14 | # IMX Bootlets barebox bootstream |
42 | do_image_barebox-mxsboot-sdcard[depends] += "elftosb-native:do_populate_sysroot \ | 15 | do_image_barebox-mxsboot-sdcard[depends] += "elftosb-native:do_populate_sysroot \ |
43 | u-boot-mxsboot-native:do_populate_sysroot \ | 16 | u-boot-mxsboot-native:do_populate_sysroot \ |