diff options
author | Marcin Juszkiewicz <hrw@openembedded.org> | 2006-04-28 19:27:07 +0000 |
---|---|---|
committer | OpenEmbedded Project <openembedded-devel@lists.openembedded.org> | 2006-04-28 19:27:07 +0000 |
commit | 451dbfc418dcc6e729760f5cdddda390fe656c2d (patch) | |
tree | ce2ce302de2ededdfc955a6247706f9264133682 /packages/uboot/u-boot_1.1.4.bb | |
parent | 06d7029eab67082c2790dafb6d8b592a5e7fbfaa (diff) |
* add build for u-boot 1.1.4 with default_pref -1
* add patches required for u-boot on gumstix
- close #862
Diffstat (limited to 'packages/uboot/u-boot_1.1.4.bb')
-rw-r--r-- | packages/uboot/u-boot_1.1.4.bb | 59 |
1 files changed, 59 insertions, 0 deletions
diff --git a/packages/uboot/u-boot_1.1.4.bb b/packages/uboot/u-boot_1.1.4.bb new file mode 100644 index 0000000000..72dea8452b --- /dev/null +++ b/packages/uboot/u-boot_1.1.4.bb @@ -0,0 +1,59 @@ +DESCRIPTION = "U-boot bootloader" +PROVIDES = "virtual/bootloader" +SECTION = "bootloader" +MAINTAINER = "Holger Schurig" +PRIORITY = "optional" +LICENSE = "GPL" + +DEFAULT_PREFERENCE = "-1" + +SRC_URI = "${SOURCEFORGE_MIRROR}/${PN}/${PN}-${PV}.tar.bz2" +SRC_URI_append_gumstix = "\ + file://u-boot-autoscript.patch;patch=1 \ + file://u-boot-base.patch;patch=1 \ + file://u-boot-crc-warning-not-so-scary.patch;patch=1 \ + file://u-boot-flash-protect-fixup.patch;patch=1 \ + file://u-boot-fw_printenv.patch;patch=1 \ + file://u-boot-install.patch;patch=1 \ + file://u-boot-jerase-cmd.patch;patch=1 \ + file://u-boot-jffs2-new-nodetypes.patch;patch=1 \ + file://u-boot-loadb-safe.patch;patch=1 \ + file://u-boot-mmc-init.patch;patch=1 \ + file://u-boot-mmcclk-alternate.patch;patch=1 \ + file://u-boot-smc91x-multi.patch;patch=1 \ + file://u-boot-zzz-osx.patch;patch=1" + +EXTRA_OEMAKE = "CROSS_COMPILE=${TARGET_PREFIX}" +EXTRA_OEMAKE_gumstix = "CROSS_COMPILE=${TARGET_PREFIX} GUMSTIX_400MHZ=${GUMSTIX_400MHZ}" +TARGET_LDFLAGS = "" + +UBOOT_MACHINE ?= "${MACHINE}_config" +UBOOT_IMAGE = "u-boot-${MACHINE}-${PV}-${PR}.bin" + +def gumstix_mhz(d): + import bb + m = bb.data.getVar('GUMSTIX_400MHZ', d, 1) + if 'y' == m: + return '400' + else: + return '200' + +UBOOT_IMAGE_gumstix = "u-boot-${MACHINE}-${@gumstix_mhz(d)}Mhz-${PV}-${PR}.bin" + +inherit base + +do_compile () { + oe_runmake ${UBOOT_MACHINE} + oe_runmake all +} + +do_stage() { + install -m755 tools/mkimage ${STAGING_BINDIR} +} + +do_deploy () { + install -d ${DEPLOY_DIR_IMAGE} + install ${S}/u-boot.bin ${DEPLOY_DIR_IMAGE}/${UBOOT_IMAGE} +} +do_deploy[dirs] = "${S}" +addtask deploy before do_build after do_compile |