diff options
author | Richard Purdie <rpurdie@linux.intel.com> | 2010-09-01 19:09:11 +0100 |
---|---|---|
committer | Richard Purdie <rpurdie@linux.intel.com> | 2010-09-01 19:09:57 +0100 |
commit | d62ee7eaf2ba025c3f64b2d4e10dc7cec4637612 (patch) | |
tree | f36fe3008f36ff75cbdd31b630f8f13f1f205ebb /meta/recipes-bsp/uboot | |
parent | caab7fc509bf27706ff3248689f6afd04225cfda (diff) | |
download | poky-d62ee7eaf2ba025c3f64b2d4e10dc7cec4637612.tar.gz |
packages: Separate out most of the remaining packages into recipes
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
Diffstat (limited to 'meta/recipes-bsp/uboot')
-rw-r--r-- | meta/recipes-bsp/uboot/files/fix-arm920t-eabi.patch | 22 | ||||
-rw-r--r-- | meta/recipes-bsp/uboot/u-boot-mkimage-native_1.3.2.bb | 23 | ||||
-rw-r--r-- | meta/recipes-bsp/uboot/u-boot-mkimage_2009.08.bb | 25 | ||||
-rw-r--r-- | meta/recipes-bsp/uboot/u-boot-omap3-git/beagleboard/name.patch | 14 | ||||
-rw-r--r-- | meta/recipes-bsp/uboot/u-boot-omap3_git.bb | 20 | ||||
-rw-r--r-- | meta/recipes-bsp/uboot/u-boot.inc | 38 |
6 files changed, 142 insertions, 0 deletions
diff --git a/meta/recipes-bsp/uboot/files/fix-arm920t-eabi.patch b/meta/recipes-bsp/uboot/files/fix-arm920t-eabi.patch new file mode 100644 index 0000000000..69cb75891d --- /dev/null +++ b/meta/recipes-bsp/uboot/files/fix-arm920t-eabi.patch | |||
@@ -0,0 +1,22 @@ | |||
1 | --- | ||
2 | cpu/arm920t/config.mk | 4 ++-- | ||
3 | 1 file changed, 2 insertions(+), 2 deletions(-) | ||
4 | |||
5 | --- u-boot-1.3.2.orig/cpu/arm920t/config.mk | ||
6 | +++ u-boot-1.3.2/cpu/arm920t/config.mk | ||
7 | @@ -22,13 +22,13 @@ | ||
8 | # | ||
9 | |||
10 | PLATFORM_RELFLAGS += -fno-strict-aliasing -fno-common -ffixed-r8 \ | ||
11 | -msoft-float | ||
12 | |||
13 | -PLATFORM_CPPFLAGS += -march=armv4 | ||
14 | +#PLATFORM_CPPFLAGS += -march=armv4 | ||
15 | # ========================================================================= | ||
16 | # | ||
17 | # Supply options according to compiler version | ||
18 | # | ||
19 | # ========================================================================= | ||
20 | -PLATFORM_CPPFLAGS +=$(call cc-option,-mapcs-32,-mabi=apcs-gnu) | ||
21 | +PLATFORM_CPPFLAGS +=$(call cc-option) | ||
22 | PLATFORM_RELFLAGS +=$(call cc-option,-mshort-load-bytes,$(call cc-option,-malignment-traps,)) | ||
diff --git a/meta/recipes-bsp/uboot/u-boot-mkimage-native_1.3.2.bb b/meta/recipes-bsp/uboot/u-boot-mkimage-native_1.3.2.bb new file mode 100644 index 0000000000..fcba0d5662 --- /dev/null +++ b/meta/recipes-bsp/uboot/u-boot-mkimage-native_1.3.2.bb | |||
@@ -0,0 +1,23 @@ | |||
1 | DESCRIPTION = "U-boot bootloader mkimage tool" | ||
2 | LICENSE = "GPL" | ||
3 | SECTION = "bootloader" | ||
4 | |||
5 | SRC_URI = "ftp://ftp.denx.de/pub/u-boot/u-boot-${PV}.tar.bz2 \ | ||
6 | file://fix-arm920t-eabi.patch;patch=1" | ||
7 | |||
8 | S = "${WORKDIR}/u-boot-${PV}" | ||
9 | |||
10 | inherit native | ||
11 | |||
12 | EXTRA_OEMAKE = "CROSS_COMPILE=${TARGET_PREFIX}" | ||
13 | |||
14 | do_compile () { | ||
15 | oe_runmake smdk2410_config | ||
16 | oe_runmake tools | ||
17 | } | ||
18 | |||
19 | do_install () { | ||
20 | install -d ${D}${bindir}/ | ||
21 | install -m 0755 tools/mkimage ${D}${bindir}/uboot-mkimage | ||
22 | ln -sf uboot-mkimage ${D}${bindir}/mkimage | ||
23 | } | ||
diff --git a/meta/recipes-bsp/uboot/u-boot-mkimage_2009.08.bb b/meta/recipes-bsp/uboot/u-boot-mkimage_2009.08.bb new file mode 100644 index 0000000000..bf07198beb --- /dev/null +++ b/meta/recipes-bsp/uboot/u-boot-mkimage_2009.08.bb | |||
@@ -0,0 +1,25 @@ | |||
1 | DESCRIPTION = "U-boot bootloader mkimage tool" | ||
2 | LICENSE = "GPL" | ||
3 | SECTION = "bootloader" | ||
4 | |||
5 | PR = "r1" | ||
6 | |||
7 | SRC_URI = "ftp://ftp.denx.de/pub/u-boot/u-boot-${PV}.tar.bz2" | ||
8 | |||
9 | S = "${WORKDIR}/u-boot-${PV}" | ||
10 | |||
11 | EXTRA_OEMAKE = "CROSS_COMPILE=${TARGET_PREFIX}" | ||
12 | |||
13 | BBCLASSEXTEND = "native nativesdk" | ||
14 | |||
15 | do_compile () { | ||
16 | oe_runmake smdk2410_config | ||
17 | oe_runmake tools | ||
18 | } | ||
19 | |||
20 | do_install () { | ||
21 | install -d ${D}${bindir} | ||
22 | install -m 0755 tools/mkimage ${D}${bindir}/uboot-mkimage | ||
23 | ln -sf uboot-mkimage ${D}${bindir}/mkimage | ||
24 | } | ||
25 | |||
diff --git a/meta/recipes-bsp/uboot/u-boot-omap3-git/beagleboard/name.patch b/meta/recipes-bsp/uboot/u-boot-omap3-git/beagleboard/name.patch new file mode 100644 index 0000000000..ac03e47774 --- /dev/null +++ b/meta/recipes-bsp/uboot/u-boot-omap3-git/beagleboard/name.patch | |||
@@ -0,0 +1,14 @@ | |||
1 | --- git/Makefile.orig 2008-07-25 16:21:22.000000000 -0700 | ||
2 | +++ git/Makefile 2008-07-27 06:49:08.000000000 -0700 | ||
3 | @@ -2582,8 +2582,8 @@ SMN42_config : unconfig | ||
4 | ######################################################################### | ||
5 | ## ARM CORTEX Systems | ||
6 | ######################################################################### | ||
7 | -omap3530beagle_config : unconfig | ||
8 | - @$(MKCONFIG) $(@:_config=) arm omap3 omap3530beagle | ||
9 | +beagleboard_config : unconfig | ||
10 | + @$(MKCONFIG) omap3530beagle arm omap3 omap3530beagle | ||
11 | |||
12 | overo_config : unconfig | ||
13 | @$(MKCONFIG) $(@:_config=) arm omap3 overo | ||
14 | |||
diff --git a/meta/recipes-bsp/uboot/u-boot-omap3_git.bb b/meta/recipes-bsp/uboot/u-boot-omap3_git.bb new file mode 100644 index 0000000000..480780ebfc --- /dev/null +++ b/meta/recipes-bsp/uboot/u-boot-omap3_git.bb | |||
@@ -0,0 +1,20 @@ | |||
1 | require u-boot.inc | ||
2 | |||
3 | FILESDIR = "${@os.path.dirname(bb.data.getVar('FILE',d,1))}/u-boot-omap3-git/${MACHINE}" | ||
4 | |||
5 | SRCREV = "f40f6db278f602b55820693634a7256b0b4e4b80" | ||
6 | |||
7 | PV = "2008.10-rc2+${PR}+git${SRCREV}" | ||
8 | PR="r2" | ||
9 | |||
10 | SRC_URI = "git://gitorious.org/u-boot-omap3/mainline.git;branch=master;protocol=git" | ||
11 | |||
12 | UBOOT_MACHINE_beagleboard = "omap3_beagle_config" | ||
13 | UBOOT_MACHINE_omap3evm = "omap3_evm_config" | ||
14 | UBOOT_MACHINE_overo = "omap3_overo_config" | ||
15 | |||
16 | S = "${WORKDIR}/git" | ||
17 | |||
18 | PACKAGE_ARCH = "${MACHINE_ARCH}" | ||
19 | |||
20 | COMPATIBLE_MACHINE = "(beagleboard|omap3evm|overo)" | ||
diff --git a/meta/recipes-bsp/uboot/u-boot.inc b/meta/recipes-bsp/uboot/u-boot.inc new file mode 100644 index 0000000000..889f6215ed --- /dev/null +++ b/meta/recipes-bsp/uboot/u-boot.inc | |||
@@ -0,0 +1,38 @@ | |||
1 | DESCRIPTION = "U-boot bootloader" | ||
2 | HOMEPAGE = "http://u-boot.sf.net" | ||
3 | SECTION = "bootloaders" | ||
4 | PRIORITY = "optional" | ||
5 | LICENSE = "GPL" | ||
6 | PROVIDES = "virtual/bootloader" | ||
7 | |||
8 | inherit deploy | ||
9 | |||
10 | PARALLEL_MAKE="" | ||
11 | |||
12 | EXTRA_OEMAKE = "CROSS_COMPILE=${TARGET_PREFIX}" | ||
13 | |||
14 | UBOOT_MACHINE ?= "${MACHINE}_config" | ||
15 | UBOOT_IMAGE ?= "u-boot-${MACHINE}-${PV}-${PR}.bin" | ||
16 | UBOOT_SYMLINK ?= "u-boot-${MACHINE}.bin" | ||
17 | |||
18 | do_compile () { | ||
19 | unset LDFLAGS | ||
20 | unset CFLAGS | ||
21 | unset CPPFLAGS | ||
22 | oe_runmake ${UBOOT_MACHINE} | ||
23 | oe_runmake all | ||
24 | } | ||
25 | |||
26 | do_deploy () { | ||
27 | install ${S}/u-boot.bin ${DEPLOYDIR}/${UBOOT_IMAGE} | ||
28 | |||
29 | cd ${DEPLOYDIR} | ||
30 | rm -f ${UBOOT_SYMLINK} | ||
31 | ln -sf ${UBOOT_IMAGE} ${UBOOT_SYMLINK} | ||
32 | } | ||
33 | addtask deploy before do_build after do_compile | ||
34 | |||
35 | do_install() { | ||
36 | install -d ${D}${bindir} | ||
37 | install -m 755 tools/mkimage ${D}${bindir}/ | ||
38 | } | ||