summaryrefslogtreecommitdiff
path: root/packages/u-boot/u-boot_1.1.4.bb
blob: 07cd745f1791c8e5197da0fa029863e6bc0d2015 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
require u-boot.inc

FILE_PR = "r1"

DEFAULT_PREFERENCE = "-1"

SRC_URI = "ftp://ftp.denx.de/pub/u-boot/u-boot-${PV}.tar.bz2 \
          file://u-boot-make381-fix.patch;patch=1"

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"

SRC_URI_append_amsdelta = "\
	http://the.earth.li/pub/e3/u-boot-amsdelta-20060519.diff;patch=1"

SRC_URI_append_dht-walnut= "\
        file://u-boot-dht-walnut-df2.patch;patch=1"

SRC_URI_append_avr32= "\
	http://avr32linux.org/twiki/pub/Main/UbootPatches/u-boot-1.1.4-avr1.patch.bz2;patch=1 \
	file://avr32-boards-fix-flash-read.patch;patch=1 \
	file://lcdc-driver-for-avr32.patch;patch=1 \
	file://spi-driver-for-avr32.patch;patch=1 \
	file://at32ap-add-framebuffer-address.patch;patch=1 \
	file://at32ap-add-spi-initcalls.patch;patch=1 \
	file://at32ap-add-system-manager-header-file.patch;patch=1 \
	file://ap7000-add-spi-device-and-lcdc-base-address.patch;patch=1 \
	file://libavr32-add-spi-and-lcd-board-support.patch;patch=1 \
	file://cmd-bmp-add-gzip-compressed-bmp.patch;patch=1 \
	file://lcd-add-24-bpp-support-and-atmel-lcdc-support.patch;patch=1 \
	file://atstk1000-spi-support.patch;patch=1 \
	file://atstk1000-ltv350qv-display-support.patch;patch=1 \
	file://atstk1000-add-lcd-and-spi-to-config.patch;patch=1 \
	file://at32ap-add-define-for-sdram-test.patch;patch=1 \
	file://fix-mmc-data-timeout.patch;patch=1 \
"

EXTRA_OEMAKE_gumstix = "CROSS_COMPILE=${TARGET_PREFIX} GUMSTIX_400MHZ=${GUMSTIX_400MHZ}"
TARGET_LDFLAGS = ""

UBOOT_MACHINE_dht-walnut = "walnut_config"
UBOOT_MACHINE_atngw100 = "atngw_config"

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
}