]> code.ossystems Code Review - meta-freescale.git/commitdiff
imx-bootlets: allow use of a zImage with appended device tree info
authorOtavio Salvador <otavio@ossystems.com.br>
Sat, 16 Jun 2012 12:51:49 +0000 (09:51 -0300)
committerOtavio Salvador <otavio@ossystems.com.br>
Tue, 10 Jul 2012 17:34:20 +0000 (14:34 -0300)
For use of kernels, with device tree, and imx-bootlets we need to
append it to the kernel image and use it for the linux.sb file. To
avoid changing the built kernel we append a -dtb suffix for the binary
name.

Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
meta-fsl-arm/recipes-bsp/imx-bootlets/imx-bootlets/linux-fix-paths.patch
meta-fsl-arm/recipes-bsp/imx-bootlets/imx-bootlets_10.12.01.bb

index abcf5b07faa13456968b714a5d54335d796fd5a2..d54add12003bd8d882a067acbb397529b0747161 100644 (file)
@@ -22,7 +22,7 @@ index 516f4f2..366ac22 100644
 +      power_prep="imx-bootlets-power_prep-@MACHINE@";
 +      sdram_prep="imx-bootlets-boot_prep-@MACHINE@";
 +      linux_prep="imx-bootlets-linux_prep-@MACHINE@";
-+      zImage="zImage-@MACHINE@.bin";
++      zImage="zImage-@MACHINE@.bin@DTB@";
  }
  
  section (0) {
index d2f51fd3aab27b1476249463651bbed3004a96be..6cea049ead380f3ad9d37a5438cb10effd7ef35b 100644 (file)
@@ -2,7 +2,7 @@ DESCRIPTION = "i.MXS boot streams"
 LICENSE = "GPL-2.0"
 LIC_FILES_CHKSUM = "file://${COREBASE}/meta/files/common-licenses/GPL-2.0;md5=801f80980d171dd6425610833a22dbe6"
 
-PR = "r1"
+PR = "r2"
 
 SRC_URI = "http://download.ossystems.com.br/bsp/freescale/source/imx-bootlets-src-${PV}.tar.gz \
            file://linux-fix-paths.patch \
@@ -30,7 +30,8 @@ python () {
 
 do_configure () {
     # Use machine specific binaries
-    sed -i 's,@MACHINE@,${MACHINE},g' linux.bd
+    sed 's,@MACHINE@,${MACHINE},g;s,@DTB@,-dtb,g' < linux.bd > linux.bd-dtb
+    sed -i 's,@MACHINE@,${MACHINE},g;s,@DTB@,,g' linux.bd
 }
 
 do_compile () {
@@ -42,7 +43,8 @@ do_compile () {
 do_install () {
     install -d ${D}/boot/
     install -m 644 boot_prep/boot_prep power_prep/power_prep \
-                   linux_prep/output-target/linux_prep linux.bd \
+                   linux_prep/output-target/linux_prep \
+                   linux.bd linux.bd-dtb \
                    ${D}/boot
 }
 
@@ -54,7 +56,7 @@ do_deploy () {
        for f in boot_prep/boot_prep \
              power_prep/power_prep \
              linux_prep/output-target/linux_prep \
-             linux.bd; do
+             linux.bd linux.bd-dtb; do
         full_name="imx-bootlets-`basename $f`-${MACHINE}-${PV}-${PR}"
         symlink_name="imx-bootlets-`basename $f`-${MACHINE}"