summaryrefslogtreecommitdiffstats
path: root/classes
diff options
context:
space:
mode:
authorOtavio Salvador <otavio@ossystems.com.br>2014-02-27 17:59:23 -0300
committerOtavio Salvador <otavio@ossystems.com.br>2014-02-28 09:04:52 -0300
commit855918bbf2cad9d0f46304bbdaea7da71e9b2222 (patch)
tree02779b3093d99d1bd3c9973e26a5faf8fdc74762 /classes
parent8b2212af1febf7a21f546efb796e5dda978dfdc5 (diff)
downloadmeta-fsl-arm-855918bbf2cad9d0f46304bbdaea7da71e9b2222.tar.gz
image_types_fsl.bbclass: Fix imx-bootlets build with new image code
Since the image_types.bbclass is not cd'ing to ${DEPLOY_DIR_IMAGE} anymore, the imx-bootlets code need to be reworked to take this into account. Change-Id: Ic7890557e93b47997590143047816ecb0378ad13 Signed-off-by: Otavio Salvador <otavio@ossystems.com.br> Reviewed-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>
Diffstat (limited to 'classes')
-rw-r--r--classes/image_types_fsl.bbclass14
1 files changed, 7 insertions, 7 deletions
diff --git a/classes/image_types_fsl.bbclass b/classes/image_types_fsl.bbclass
index f0160df..47e8338 100644
--- a/classes/image_types_fsl.bbclass
+++ b/classes/image_types_fsl.bbclass
@@ -15,8 +15,8 @@ UBOOT_SUFFIX_SDCARD ?= "${UBOOT_SUFFIX}"
15IMAGE_DEPENDS_linux.sb = "elftosb-native imx-bootlets virtual/kernel" 15IMAGE_DEPENDS_linux.sb = "elftosb-native imx-bootlets virtual/kernel"
16IMAGE_LINK_NAME_linux.sb = "" 16IMAGE_LINK_NAME_linux.sb = ""
17IMAGE_CMD_linux.sb () { 17IMAGE_CMD_linux.sb () {
18 kernel_bin="`readlink ${KERNEL_IMAGETYPE}-${MACHINE}.bin`" 18 kernel_bin="`readlink ${DEPLOY_DIR_IMAGE}/${KERNEL_IMAGETYPE}-${MACHINE}.bin`"
19 kernel_dtb="`readlink ${KERNEL_IMAGETYPE}-${MACHINE}.dtb || true`" 19 kernel_dtb="`readlink ${DEPLOY_DIR_IMAGE}/${KERNEL_IMAGETYPE}-${MACHINE}.dtb || true`"
20 linux_bd_file=imx-bootlets-linux.bd-${MACHINE} 20 linux_bd_file=imx-bootlets-linux.bd-${MACHINE}
21 if [ `basename $kernel_bin .bin` = `basename $kernel_dtb .dtb` ]; then 21 if [ `basename $kernel_bin .bin` = `basename $kernel_dtb .dtb` ]; then
22 # When using device tree we build a zImage with the dtb 22 # When using device tree we build a zImage with the dtb
@@ -24,16 +24,16 @@ IMAGE_CMD_linux.sb () {
24 linux_bd_file=imx-bootlets-linux.bd-dtb-${MACHINE} 24 linux_bd_file=imx-bootlets-linux.bd-dtb-${MACHINE}
25 cat $kernel_bin $kernel_dtb \ 25 cat $kernel_bin $kernel_dtb \
26 > $kernel_bin-dtb 26 > $kernel_bin-dtb
27 rm -f ${KERNEL_IMAGETYPE}-${MACHINE}.bin-dtb 27 rm -f ${DEPLOY_DIR_IMAGE}/${KERNEL_IMAGETYPE}-${MACHINE}.bin-dtb
28 ln -s $kernel_bin-dtb ${KERNEL_IMAGETYPE}-${MACHINE}.bin-dtb 28 ln -s $kernel_bin-dtb ${DEPLOY_DIR_IMAGE}/${KERNEL_IMAGETYPE}-${MACHINE}.bin-dtb
29 fi 29 fi
30 30
31 # Ensure the file is generated 31 # Ensure the file is generated
32 rm -f ${IMAGE_NAME}.linux.sb 32 rm -f ${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}.linux.sb
33 elftosb -z -c $linux_bd_file -o ${IMAGE_NAME}.linux.sb 33 (cd ${DEPLOY_DIR_IMAGE}; elftosb -z -c $linux_bd_file -o ${IMAGE_NAME}.linux.sb)
34 34
35 # Remove the appended file as it is only used here 35 # Remove the appended file as it is only used here
36 rm -f $kernel_bin-dtb 36 rm -f ${DEPLOY_DIR_IMAGE}/$kernel_bin-dtb
37} 37}
38 38
39# IMX Bootlets barebox bootstream 39# IMX Bootlets barebox bootstream