blob: 2fe2f9e7ffca6c5affe0ccc852f3fe5efeafd14a (
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
|
DESCRIPTION = "U-boot bootloader"
PROVIDES = "virtual/bootloader"
SECTION = "bootloader"
PRIORITY = "optional"
LICENSE = "GPL"
DEFAULT_PREFERENCE = "-1"
COMPATIBLE_MACHINE = "linkstationppc"
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_linkstationppchg \
file://defconfig_linkstationppchd \
"
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
|