summaryrefslogtreecommitdiff
path: root/packages/uboot/u-boot-linkstationppc_git.bb
blob: 7baac2ba7c0af88b4a5ab16b93b3a2a427f11ec8 (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
DESCRIPTION = "U-boot bootloader"
PROVIDES = "virtual/bootloader"
SECTION = "bootloader"
PRIORITY = "optional"
LICENSE = "GPL"
PR = "r1"

DEFAULT_PREFERENCE = "-1"
COMPATIBLE_MACHINE = "(lsppchd|lsppchg)"

SRC_URI = "git://www.jdl.com/software/u-boot-86xx.git;protocol=git \
	   file://u-boot-kurobox.patch;patch=1 \
	   file://u-boot-kurobox-fdt.patch;patch=1 \
	   file://defconfig_lsppchg \
	   file://defconfig_lsppchd \
		"

S = "${WORKDIR}/git"

EXTRA_OEMAKE = "CROSS_COMPILE=${TARGET_PREFIX}"

PACKAGE_ARCH = "${MACHINE_ARCH}"

do_compile () {
	unset LDFLAGS CFLAGS CPPFLAGS
	cp ${WORKDIR}/defconfig_${MACHINE} ${WORKDIR}/git/include/configs/linkstation.h
	oe_runmake ${UBOOT_MACHINE}_config
	oe_runmake ${UBOOT_MACHINE}
}

do_stage() {
	install -m 755 tools/mkimage ${STAGING_BINDIR_NATIVE}
}

do_deploy () {
	install -d ${DEPLOY_DIR_IMAGE}
	install ${S}/u-boot-h*.flash.bin ${DEPLOY_DIR_IMAGE}/u-boot-${MACHINE}-${PV}-${PR}.bin
}

do_deploy[dirs] = "${S}"
addtask deploy before do_build after do_compile