summaryrefslogtreecommitdiffstats
path: root/meta/recipes-bsp/uboot
diff options
context:
space:
mode:
authorRichard Purdie <rpurdie@linux.intel.com>2010-09-01 19:09:11 +0100
committerRichard Purdie <rpurdie@linux.intel.com>2010-09-01 19:09:57 +0100
commitd62ee7eaf2ba025c3f64b2d4e10dc7cec4637612 (patch)
treef36fe3008f36ff75cbdd31b630f8f13f1f205ebb /meta/recipes-bsp/uboot
parentcaab7fc509bf27706ff3248689f6afd04225cfda (diff)
downloadpoky-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.patch22
-rw-r--r--meta/recipes-bsp/uboot/u-boot-mkimage-native_1.3.2.bb23
-rw-r--r--meta/recipes-bsp/uboot/u-boot-mkimage_2009.08.bb25
-rw-r--r--meta/recipes-bsp/uboot/u-boot-omap3-git/beagleboard/name.patch14
-rw-r--r--meta/recipes-bsp/uboot/u-boot-omap3_git.bb20
-rw-r--r--meta/recipes-bsp/uboot/u-boot.inc38
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 @@
1DESCRIPTION = "U-boot bootloader mkimage tool"
2LICENSE = "GPL"
3SECTION = "bootloader"
4
5SRC_URI = "ftp://ftp.denx.de/pub/u-boot/u-boot-${PV}.tar.bz2 \
6 file://fix-arm920t-eabi.patch;patch=1"
7
8S = "${WORKDIR}/u-boot-${PV}"
9
10inherit native
11
12EXTRA_OEMAKE = "CROSS_COMPILE=${TARGET_PREFIX}"
13
14do_compile () {
15 oe_runmake smdk2410_config
16 oe_runmake tools
17}
18
19do_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 @@
1DESCRIPTION = "U-boot bootloader mkimage tool"
2LICENSE = "GPL"
3SECTION = "bootloader"
4
5PR = "r1"
6
7SRC_URI = "ftp://ftp.denx.de/pub/u-boot/u-boot-${PV}.tar.bz2"
8
9S = "${WORKDIR}/u-boot-${PV}"
10
11EXTRA_OEMAKE = "CROSS_COMPILE=${TARGET_PREFIX}"
12
13BBCLASSEXTEND = "native nativesdk"
14
15do_compile () {
16 oe_runmake smdk2410_config
17 oe_runmake tools
18}
19
20do_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 @@
1require u-boot.inc
2
3FILESDIR = "${@os.path.dirname(bb.data.getVar('FILE',d,1))}/u-boot-omap3-git/${MACHINE}"
4
5SRCREV = "f40f6db278f602b55820693634a7256b0b4e4b80"
6
7PV = "2008.10-rc2+${PR}+git${SRCREV}"
8PR="r2"
9
10SRC_URI = "git://gitorious.org/u-boot-omap3/mainline.git;branch=master;protocol=git"
11
12UBOOT_MACHINE_beagleboard = "omap3_beagle_config"
13UBOOT_MACHINE_omap3evm = "omap3_evm_config"
14UBOOT_MACHINE_overo = "omap3_overo_config"
15
16S = "${WORKDIR}/git"
17
18PACKAGE_ARCH = "${MACHINE_ARCH}"
19
20COMPATIBLE_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 @@
1DESCRIPTION = "U-boot bootloader"
2HOMEPAGE = "http://u-boot.sf.net"
3SECTION = "bootloaders"
4PRIORITY = "optional"
5LICENSE = "GPL"
6PROVIDES = "virtual/bootloader"
7
8inherit deploy
9
10PARALLEL_MAKE=""
11
12EXTRA_OEMAKE = "CROSS_COMPILE=${TARGET_PREFIX}"
13
14UBOOT_MACHINE ?= "${MACHINE}_config"
15UBOOT_IMAGE ?= "u-boot-${MACHINE}-${PV}-${PR}.bin"
16UBOOT_SYMLINK ?= "u-boot-${MACHINE}.bin"
17
18do_compile () {
19 unset LDFLAGS
20 unset CFLAGS
21 unset CPPFLAGS
22 oe_runmake ${UBOOT_MACHINE}
23 oe_runmake all
24}
25
26do_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}
33addtask deploy before do_build after do_compile
34
35do_install() {
36 install -d ${D}${bindir}
37 install -m 755 tools/mkimage ${D}${bindir}/
38}