Added support for u-boot git
authorMichel Pollet <buserror@gmail.com>
Sat, 4 Apr 2009 15:49:22 +0000 (16:49 +0100)
committerFlorian Boor <florian.boor@kernelconcepts.de>
Thu, 4 Jun 2009 15:54:46 +0000 (17:54 +0200)
Automagically load u-boot git and build that.
Make sure we use the 16k aligned one, so it can
be flashed with mtd_debug.

Signed-off-by: Michel Pollet <buserror@gmail.com>
conf/machine/mini2440.conf
recipes/linux/linux-mini2440-2.6.29+git/defconfig-mini2440 [moved from packages/linux/linux-mini2440-2.6.29+git/defconfig-mini2440 with 100% similarity]
recipes/linux/linux-mini2440_2.6.29+git.bb [moved from packages/linux/linux-mini2440_2.6.29+git.bb with 100% similarity]
recipes/u-boot/u-boot_git.bb

index 5ac3765..f72bb24 100644 (file)
@@ -5,6 +5,7 @@
 
 TARGET_ARCH = "arm"
 
+PREFERRED_VERSION_u-boot = "git"
 PREFERRED_PROVIDER_virtual/kernel = "linux-mini2440"
 
 # used by sysvinit_2
@@ -15,10 +16,10 @@ IMAGE_DEVICE_TABLES = "files/device_table-minimal.txt \
 
 IMAGE_FSTYPES = "jffs2 ext3 tar.gz"
 
-MACHINE_FEATURES = "kernel26 touchscreen screen lcd rgb16"
+MACHINE_FEATURES = "kernel26 uboot touchscreen screen lcd rgb16"
 MACHINE_FEATURES += "usbhost usbgadget"
 MACHINE_FEATURES += "i2c spi"
-MACHINE_FEATURES += "mmc mmcroot"
+MACHINE_FEATURES += "mmc mmcroot vfat"
 MACHINE_FEATURES += "ethernet"
 MACHINE_FEATURES += "sound alsa"
 
@@ -26,9 +27,5 @@ KERNEL_IMAGETYPE = "uImage"
 
 require conf/machine/include/tune-arm920t.inc
 
-#FEED_ARCH = "armv4t"
-#BASE_PACKAGE_ARCH = "armv4t" 
-#TARGET_CC_ARCH = "-marm -march=armv4t -mtune=arm920t"
-#PACKAGE_EXTRA_ARCHS += "armv4 armv4t"
-
+EXTRA_IMAGEDEPENDS += "u-boot"
 EXTRA_IMAGECMD_jffs2 = "--pad --little-endian --squash -s 0x200 -n -e 16KiB"
index ebe686c..48fc84e 100644 (file)
@@ -55,6 +55,9 @@ SRCREV_sequoa = "cf3b41e0c1111dbb865b6e34e9f3c3d3145a6093"
 SRC_URI = "git://www.denx.de/git/u-boot.git;protocol=git "
 SRC_URI_sequoia = "git://www.denx.de/git/u-boot.git;protocol=git;tag=cf3b41e0c1111dbb865b6e34e9f3c3d3145a6093 "
 
+SRC_URI_mini2440 = "git://repo.or.cz/u-boot-openmoko/mini2440.git;protocol=git;branch=dev-mini2440-stable"
+SRCREV_mini2440 = "3516c35fb777ca959e5cadf2156a792ca10e1cff"
+
 SRC_URI_neuros-osd2 += "file://Makefile-fix.patch;patch=1"
 SRC_URI_append_akita = "file://pdaXrom-u-boot.patch;patch=1 \
                         file://uboot-eabi-fix-HACK2.patch;patch=1 \
@@ -83,3 +86,7 @@ do_configure_prepend_spitz() {
 do_configure_prepend_c7x0() {
         sed -i s:ROOT_FLASH_SIZE:${ROOT_FLASH_SIZE}:g ${S}/include/configs/corgi.h
 }
+
+do_deploy_prepend_mini2440() {
+       cp ${S}/u-boot-nand16k.bin ${S}/u-boot.bin
+}