2011-05-09 22:59, Andreas Mueller skrev:
Signed-off-by: Andreas Mueller<[email protected]>
---
  recipes/u-boot/u-boot_2011.03.bb |   19 +++++++++++++++++++
  1 files changed, 19 insertions(+), 0 deletions(-)
  create mode 100644 recipes/u-boot/u-boot_2011.03.bb

diff --git a/recipes/u-boot/u-boot_2011.03.bb b/recipes/u-boot/u-boot_2011.03.bb
new file mode 100644
index 0000000..8ab385f
--- /dev/null
+++ b/recipes/u-boot/u-boot_2011.03.bb
@@ -0,0 +1,19 @@
+PR = "r0"
+require u-boot.inc
+
+DEFAULT_PREFERENCE = "-1"
+
+SRC_URI = "ftp://ftp.denx.de/pub/u-boot/u-boot-${PV}.tar.bz2 "
+SRC_URI[md5sum] = "91d02124c94368557d0e9ac05fb8c33f"
+SRC_URI[sha256sum] = 
"08677f66d8d4ee542f6599f580cdffdf730544e1803f9d3739117d6f6d68083e"
+
+
+TARGET_LDFLAGS = ""
+
+inherit base
+
+do_compile () {
+       oe_runmake ${UBOOT_MACHINE}
+       oe_runmake all
+}
+
I added support for building multiple u-boot targets in 2009.11
Suggest that this functionality is added in all new u-boot recipes.
There is a new include file which handles the install.


PR = "r2"
require u-boot_r2.inc

DEFAULT_PREFERENCE = "-1"
...
SRC_URI = "ftp://ftp.denx.de/pub/u-boot/u-boot-${PV}.tar.bz2 "
...

TARGET_LDFLAGS = ""

inherit base

do_compile () {
    if ! [ "x${UBOOT_MACHINES}" == "x" ] ; then
        for board in ${UBOOT_MACHINES} ; do
            if ! [ `grep ${board}_config Makefile | wc -c` == 0 ] ; then
                mkdir -p binaries/${board}
                oe_runmake O=binaries/${board} distclean
                oe_runmake O=binaries/${board} ${board}_config
                oe_runmake O=binaries/${board} all
            fi
        done
    else
           oe_runmake ${UBOOT_MACHINE}
           oe_runmake all
    fi
}

SRC_URI[md5sum] = "d94700614225f53c853dfe714eb5fa47"
SRC_URI[sha256sum] = "066615314fc90a314823ac975ca2a525a51fdad41802f4088a3a21ce073e8de6"



--
Best Regards
Ulf Samuelsson


_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel

Reply via email to