blob: 66f28333468da7a705dc72a873ff3759a543f1f8 [file] [log] [blame]
Brad Bishop26bdd442019-08-16 17:08:17 -04001DESCRIPTION = "Boot strap code that the GPU puts on memory to start running the boot loader"
2LICENSE = "Proprietary"
3
4LIC_FILES_CHKSUM = "file://armstub.S;beginline=1;endline=26;md5=9888f34ac06a676129416c952a6a521e"
5
6inherit deploy nopackages
7
8include recipes-bsp/common/raspberrypi-tools.inc
9
10COMPATIBLE_MACHINE = "^rpi$"
11
12S = "${RPITOOLS_S}/armstubs"
13
14export CC8="${CC}"
15export LD8="${LD}"
16export OBJCOPY8="${OBJCOPY}"
17export OBJDUMP8="${OBJDUMP} -maarch64"
18
19do_compile() {
20 [ -z "${ARMSTUB}" ] && bbfatal "No ARMSTUB defined for your machine."
21 oe_runmake ${ARMSTUB}
22}
23
24do_deploy() {
25 install -d ${DEPLOYDIR}/${PN}
26 cp ${S}/armstub*.bin ${DEPLOYDIR}/${PN}
27}
28
29addtask deploy before do_build after do_install
30do_deploy[dirs] += "${DEPLOYDIR}/${PN}"
31
32PACKAGE_ARCH = "${MACHINE_ARCH}"