blob: 64bd6c525088d6196789ddf1cc529ee8cd7fa9f5 (
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
|
FILESEXTRAPATHS_prepend := "${THISDIR}/files:"
SRC_URI += "file://defconfig"
# only alter the default bootcmd if we build for the vexpress machine
SRC_URI_append_vexpress = " file://0001-setup-bootcmd-for-tftp.patch"
# take care
# SRC_URI_vexpress += "file://0001-setup-bootcmd-for-tftp.patch"
# is NOT the same. The result is that the old content of SRC_URI is lost!!
do_configure_prepend () {
cp ${WORKDIR}/defconfig ${S}/.config
cd ${S}; oe_runmake oldconfig
}
do_compile () {
export HOST_EXTRACFLAGS="${BUILD_CFLAGS}"
export HOST_EXTRACXXFLAGS="${BUILD_CXXFLAGS}"
export HOSTLDFLAGS="${BUILD_LDFLAGS}"
cd ${S}; oe_runmake u-boot-nodtb.bin
# instead of hardcoding the dtb it would be nicer to use the varialbe
# specified in vexpress.conf: UBOOT_MACHINE = "u-boot-nodtb"
# cd ${S}; oe_runmake ${UBOOT_MACHINE}.bin
}
do_install () {
cd ${S}; install -D -m 0644 u-boot.cfg ${D}${datadir}/u-boot/u-boot.cfg
}
FILES_${PN}-dev_append = " ${datadir}/u-boot/u-boot.cfg"
do_deploy () {
cd ${S}; install -D -m 0644 u-boot-nodtb.bin ${DEPLOYDIR}/u-boot-nodtb.bin
}
|