From 039497007619829f936a63643b331d2b1d7429ad Mon Sep 17 00:00:00 2001 From: Koen Kooi Date: Thu, 20 May 2010 11:08:43 +0200 Subject: u-boot-mkimage: convert to new style staging and bbclassextend --- .../u-boot-mkimage-1.3.2/fix-arm920t-eabi.patch | 22 ++++++++++++++++ .../fix-arm920t-eabi.patch | 22 ---------------- recipes/u-boot/u-boot-mkimage-native_1.3.2.bb | 25 ------------------- recipes/u-boot/u-boot-mkimage_1.3.2.bb | 29 ++++++++++++++++++++++ 4 files changed, 51 insertions(+), 47 deletions(-) create mode 100644 recipes/u-boot/u-boot-mkimage-1.3.2/fix-arm920t-eabi.patch delete mode 100644 recipes/u-boot/u-boot-mkimage-native-1.3.2/fix-arm920t-eabi.patch delete mode 100644 recipes/u-boot/u-boot-mkimage-native_1.3.2.bb create mode 100644 recipes/u-boot/u-boot-mkimage_1.3.2.bb diff --git a/recipes/u-boot/u-boot-mkimage-1.3.2/fix-arm920t-eabi.patch b/recipes/u-boot/u-boot-mkimage-1.3.2/fix-arm920t-eabi.patch new file mode 100644 index 0000000000..69cb75891d --- /dev/null +++ b/recipes/u-boot/u-boot-mkimage-1.3.2/fix-arm920t-eabi.patch @@ -0,0 +1,22 @@ +--- + cpu/arm920t/config.mk | 4 ++-- + 1 file changed, 2 insertions(+), 2 deletions(-) + +--- u-boot-1.3.2.orig/cpu/arm920t/config.mk ++++ u-boot-1.3.2/cpu/arm920t/config.mk +@@ -22,13 +22,13 @@ + # + + PLATFORM_RELFLAGS += -fno-strict-aliasing -fno-common -ffixed-r8 \ + -msoft-float + +-PLATFORM_CPPFLAGS += -march=armv4 ++#PLATFORM_CPPFLAGS += -march=armv4 + # ========================================================================= + # + # Supply options according to compiler version + # + # ========================================================================= +-PLATFORM_CPPFLAGS +=$(call cc-option,-mapcs-32,-mabi=apcs-gnu) ++PLATFORM_CPPFLAGS +=$(call cc-option) + PLATFORM_RELFLAGS +=$(call cc-option,-mshort-load-bytes,$(call cc-option,-malignment-traps,)) diff --git a/recipes/u-boot/u-boot-mkimage-native-1.3.2/fix-arm920t-eabi.patch b/recipes/u-boot/u-boot-mkimage-native-1.3.2/fix-arm920t-eabi.patch deleted file mode 100644 index 69cb75891d..0000000000 --- a/recipes/u-boot/u-boot-mkimage-native-1.3.2/fix-arm920t-eabi.patch +++ /dev/null @@ -1,22 +0,0 @@ ---- - cpu/arm920t/config.mk | 4 ++-- - 1 file changed, 2 insertions(+), 2 deletions(-) - ---- u-boot-1.3.2.orig/cpu/arm920t/config.mk -+++ u-boot-1.3.2/cpu/arm920t/config.mk -@@ -22,13 +22,13 @@ - # - - PLATFORM_RELFLAGS += -fno-strict-aliasing -fno-common -ffixed-r8 \ - -msoft-float - --PLATFORM_CPPFLAGS += -march=armv4 -+#PLATFORM_CPPFLAGS += -march=armv4 - # ========================================================================= - # - # Supply options according to compiler version - # - # ========================================================================= --PLATFORM_CPPFLAGS +=$(call cc-option,-mapcs-32,-mabi=apcs-gnu) -+PLATFORM_CPPFLAGS +=$(call cc-option) - PLATFORM_RELFLAGS +=$(call cc-option,-mshort-load-bytes,$(call cc-option,-malignment-traps,)) diff --git a/recipes/u-boot/u-boot-mkimage-native_1.3.2.bb b/recipes/u-boot/u-boot-mkimage-native_1.3.2.bb deleted file mode 100644 index cf135a5231..0000000000 --- a/recipes/u-boot/u-boot-mkimage-native_1.3.2.bb +++ /dev/null @@ -1,25 +0,0 @@ -DESCRIPTION = "U-boot bootloader mkimage tool" -LICENSE = "GPLv2" -SECTION = "bootloader" - -SRC_URI = "ftp://ftp.denx.de/pub/u-boot/u-boot-${PV}.tar.bz2 \ - file://fix-arm920t-eabi.patch;patch=1" - -S = "${WORKDIR}/u-boot-${PV}" - -inherit native - -EXTRA_OEMAKE = "CROSS_COMPILE=${TARGET_PREFIX}" - -do_compile () { - oe_runmake smdk2410_config - oe_runmake tools STRIP='/bin/true' -} - -do_stage () { - install -m 0755 tools/mkimage ${STAGING_BINDIR_NATIVE}/uboot-mkimage - ln -sf ${STAGING_BINDIR_NATIVE}/uboot-mkimage ${STAGING_BINDIR_NATIVE}/mkimage -} - -SRC_URI[md5sum] = "78b1c2722d3907b5fae2cd219dbaf927" -SRC_URI[sha256sum] = "8ab07cd758a1775642629e624f70e376fa8e84a2f879dee4544158d9c90cde2a" diff --git a/recipes/u-boot/u-boot-mkimage_1.3.2.bb b/recipes/u-boot/u-boot-mkimage_1.3.2.bb new file mode 100644 index 0000000000..53240b35a1 --- /dev/null +++ b/recipes/u-boot/u-boot-mkimage_1.3.2.bb @@ -0,0 +1,29 @@ +DESCRIPTION = "U-boot bootloader mkimage tool" +LICENSE = "GPLv2" +SECTION = "bootloader" + +SRC_URI = "ftp://ftp.denx.de/pub/u-boot/u-boot-${PV}.tar.bz2 \ + file://fix-arm920t-eabi.patch;patch=1" + +PR = "r1" + +S = "${WORKDIR}/u-boot-${PV}" + +EXTRA_OEMAKE = "CROSS_COMPILE=${TARGET_PREFIX}" + +do_compile () { + oe_runmake smdk2410_config + oe_runmake tools STRIP='/bin/true' +} + +do_install () { + install -d ${D}${bindir} + install -m 0755 tools/mkimage ${D}${bindir}/uboot-mkimage + ln -sf uboot-mkimage ${D}${bindir}/mkimage +} + +NATIVE_INSTALL_WORKS = "1" +BBCLASSEXTEND = "native" + +SRC_URI[md5sum] = "78b1c2722d3907b5fae2cd219dbaf927" +SRC_URI[sha256sum] = "8ab07cd758a1775642629e624f70e376fa8e84a2f879dee4544158d9c90cde2a" -- cgit 1.2.3-korg