summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOtavio Salvador <otavio@ossystems.com.br>2015-09-23 09:53:31 -0300
committerOtavio Salvador <otavio@ossystems.com.br>2016-04-19 15:03:20 -0300
commite88dee3b0d5ac49d2ebaa8014b79a46044482776 (patch)
tree5af3ee7c76f72d05e5fb07088a798d5a2028f245
parent4742a2464624f1951531abb4c259bf293fbd34d7 (diff)
downloadmeta-freescale-e88dee3b0d5ac49d2ebaa8014b79a46044482776.tar.gz
image_types_fsl.bbclass: Fix DeviceTree copy for FAT partition
The rootfs generation script now runs outside of the deploy directory so the code need to use the full path for the installed files. This fixes the rootfs generation process so the files are copied to the FAT partition, allowing the system to boot. Signed-off-by: Otavio Salvador <otavio@ossystems.com.br> Tested-by: Daiane Angolini <daiane.angolini@freescale.com>
-rw-r--r--classes/image_types_fsl.bbclass6
1 files changed, 3 insertions, 3 deletions
diff --git a/classes/image_types_fsl.bbclass b/classes/image_types_fsl.bbclass
index 331f7391..dba2c133 100644
--- a/classes/image_types_fsl.bbclass
+++ b/classes/image_types_fsl.bbclass
@@ -169,9 +169,9 @@ generate_imx_sdcard () {
169 if test -n "${KERNEL_DEVICETREE}"; then 169 if test -n "${KERNEL_DEVICETREE}"; then
170 for DTS_FILE in ${KERNEL_DEVICETREE}; do 170 for DTS_FILE in ${KERNEL_DEVICETREE}; do
171 DTS_BASE_NAME=`basename ${DTS_FILE} | awk -F "." '{print $1}'` 171 DTS_BASE_NAME=`basename ${DTS_FILE} | awk -F "." '{print $1}'`
172 if [ -e "${KERNEL_IMAGETYPE}-${DTS_BASE_NAME}.dtb" ]; then 172 if [ -e "${DEPLOY_DIR_IMAGE}/${KERNEL_IMAGETYPE}-${DTS_BASE_NAME}.dtb" ]; then
173 kernel_bin="`readlink ${KERNEL_IMAGETYPE}-${MACHINE}.bin`" 173 kernel_bin="`readlink ${DEPLOY_DIR_IMAGE}/${KERNEL_IMAGETYPE}-${MACHINE}.bin`"
174 kernel_bin_for_dtb="`readlink ${KERNEL_IMAGETYPE}-${DTS_BASE_NAME}.dtb | sed "s,$DTS_BASE_NAME,${MACHINE},g;s,\.dtb$,.bin,g"`" 174 kernel_bin_for_dtb="`readlink ${DEPLOY_DIR_IMAGE}/${KERNEL_IMAGETYPE}-${DTS_BASE_NAME}.dtb | sed "s,$DTS_BASE_NAME,${MACHINE},g;s,\.dtb$,.bin,g"`"
175 if [ $kernel_bin = $kernel_bin_for_dtb ]; then 175 if [ $kernel_bin = $kernel_bin_for_dtb ]; then
176 mcopy -i ${WORKDIR}/boot.img -s ${DEPLOY_DIR_IMAGE}/${KERNEL_IMAGETYPE}-${DTS_BASE_NAME}.dtb ::/${DTS_BASE_NAME}.dtb 176 mcopy -i ${WORKDIR}/boot.img -s ${DEPLOY_DIR_IMAGE}/${KERNEL_IMAGETYPE}-${DTS_BASE_NAME}.dtb ::/${DTS_BASE_NAME}.dtb
177 fi 177 fi