diff options
author | Marcin Juszkiewicz <hrw@openedhand.com> | 2007-06-01 11:26:28 +0000 |
---|---|---|
committer | Marcin Juszkiewicz <hrw@openedhand.com> | 2007-06-01 11:26:28 +0000 |
commit | 1e2d2eb33a5fba729445a71ce855c4536c909de5 (patch) | |
tree | 1fdfb3918981274cc622cc32307dbfec1b9d0c5c | |
parent | ea605d307c7935119ce75b411beb8890565f73fe (diff) | |
download | poky-1e2d2eb33a5fba729445a71ce855c4536c909de5.tar.gz |
uboot: added U-Boot for fic-gta01
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@1844 311d38ba-8fff-0310-9ca6-ca027cbcb966
-rw-r--r-- | meta/packages/uboot/files/fix-arm920t-eabi.patch | 9 | ||||
-rw-r--r-- | meta/packages/uboot/u-boot-mkimage-gta01-native_svn.bb | 18 | ||||
-rw-r--r-- | meta/packages/uboot/uboot-gta01_svn.bb | 58 |
3 files changed, 85 insertions, 0 deletions
diff --git a/meta/packages/uboot/files/fix-arm920t-eabi.patch b/meta/packages/uboot/files/fix-arm920t-eabi.patch new file mode 100644 index 0000000000..9896388c8f --- /dev/null +++ b/meta/packages/uboot/files/fix-arm920t-eabi.patch | |||
@@ -0,0 +1,9 @@ | |||
1 | --- /tmp/config.mk 2007-02-14 17:23:15.000000000 +0100 | ||
2 | +++ git/cpu/arm920t/config.mk 2007-02-14 17:23:38.475251000 +0100 | ||
3 | @@ -30,5 +30,5 @@ | ||
4 | # Supply options according to compiler version | ||
5 | # | ||
6 | # ========================================================================= | ||
7 | -PLATFORM_CPPFLAGS +=$(call cc-option,-mapcs-32,-mabi=apcs-gnu) | ||
8 | +PLATFORM_CPPFLAGS +=$(call cc-option) | ||
9 | PLATFORM_RELFLAGS +=$(call cc-option,-mshort-load-bytes,$(call cc-option,-malignment-traps,)) | ||
diff --git a/meta/packages/uboot/u-boot-mkimage-gta01-native_svn.bb b/meta/packages/uboot/u-boot-mkimage-gta01-native_svn.bb new file mode 100644 index 0000000000..7c10d653bc --- /dev/null +++ b/meta/packages/uboot/u-boot-mkimage-gta01-native_svn.bb | |||
@@ -0,0 +1,18 @@ | |||
1 | require uboot-gta01_svn.bb | ||
2 | |||
3 | PROVIDES = "" | ||
4 | TARGET_LDFLAGS = "" | ||
5 | |||
6 | do_compile () { | ||
7 | chmod +x board/neo1973/gta01/split_by_variant.sh | ||
8 | oe_runmake gta01bv3_config | ||
9 | oe_runmake clean | ||
10 | oe_runmake tools | ||
11 | } | ||
12 | |||
13 | do_deploy () { | ||
14 | install -m 0755 tools/mkimage ${STAGING_BINDIR_NATIVE}/uboot-mkimage | ||
15 | } | ||
16 | |||
17 | do_deploy[dirs] = "${S}" | ||
18 | addtask deploy before do_package after do_install | ||
diff --git a/meta/packages/uboot/uboot-gta01_svn.bb b/meta/packages/uboot/uboot-gta01_svn.bb new file mode 100644 index 0000000000..d026efccc1 --- /dev/null +++ b/meta/packages/uboot/uboot-gta01_svn.bb | |||
@@ -0,0 +1,58 @@ | |||
1 | DESCRIPTION = "U-boot bootloader w/ Neo1973 (GTA01) support" | ||
2 | AUTHOR = "Harald Welte <laforge@openmoko.org>" | ||
3 | LICENSE = "GPL" | ||
4 | SECTION = "bootloader" | ||
5 | PRIORITY = "optional" | ||
6 | PV = "1.2.0+svn${SRCDATE}" | ||
7 | PR = "r3" | ||
8 | |||
9 | PROVIDES = "virtual/bootloader" | ||
10 | S = "${WORKDIR}/git" | ||
11 | |||
12 | SRC_URI = "git://www.denx.de/git/u-boot.git/;protocol=git \ | ||
13 | svn://svn.openmoko.org/trunk/src/target/u-boot;module=patches;proto=http \ | ||
14 | file://fix-arm920t-eabi.patch;patch=1" | ||
15 | |||
16 | EXTRA_OEMAKE = "CROSS_COMPILE=${TARGET_PREFIX}" | ||
17 | TARGET_LDFLAGS = "" | ||
18 | UBOOT_MACHINES = "gta01v3 gta01v4 gta01bv2 gta01bv3" | ||
19 | |||
20 | do_quilt() { | ||
21 | mv ${WORKDIR}/patches ${S}/patches | ||
22 | cd ${S} | ||
23 | quilt push -av | ||
24 | rm -Rf patches .pc | ||
25 | } | ||
26 | |||
27 | do_compile () { | ||
28 | chmod +x board/neo1973/split_by_variant.sh | ||
29 | for type in ram nand | ||
30 | do | ||
31 | for mach in ${UBOOT_MACHINES} | ||
32 | do | ||
33 | oe_runmake ${mach}_config | ||
34 | oe_runmake clean | ||
35 | if [ ${type} == "ram" ]; then | ||
36 | echo 'PLATFORM_RELFLAGS += -DBUILD_FOR_RAM' >> board/neo1973/config.tmp | ||
37 | fi | ||
38 | oe_runmake all | ||
39 | mv u-boot.bin u-boot_${mach}_${type}.bin | ||
40 | done | ||
41 | done | ||
42 | } | ||
43 | |||
44 | do_deploy () { | ||
45 | install -d ${DEPLOY_DIR_IMAGE} | ||
46 | for type in nand ram | ||
47 | do | ||
48 | for mach in ${UBOOT_MACHINES} | ||
49 | do | ||
50 | install ${S}/u-boot_${mach}_${type}.bin ${DEPLOY_DIR_IMAGE}/u-boot_${type}-${mach}-${DATETIME}.bin | ||
51 | done | ||
52 | done | ||
53 | install -m 0755 tools/mkimage ${STAGING_BINDIR_NATIVE}/uboot-mkimage | ||
54 | } | ||
55 | |||
56 | do_deploy[dirs] = "${S}" | ||
57 | addtask deploy before do_build after do_compile | ||
58 | addtask quilt before do_patch after do_unpack | ||