blob: 7e389dff58f3cc3de396fd3153ff8fd374097fdc [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"
Brad Bishopcae294d2019-10-28 08:43:55 -04002LICENSE = "BSD-3-Clause"
Brad Bishop26bdd442019-08-16 17:08:17 -04003
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
Brad Bishop1b9ee292020-01-16 09:06:00 -050014export CC7="${CC}"
15export LD7="${LD}"
16export OBJCOPY7="${OBJCOPY}"
17export OBJDUMP7="${OBJDUMP}"
Brad Bishop26bdd442019-08-16 17:08:17 -040018export CC8="${CC}"
19export LD8="${LD}"
20export OBJCOPY8="${OBJCOPY}"
21export OBJDUMP8="${OBJDUMP} -maarch64"
22
23do_compile() {
24 [ -z "${ARMSTUB}" ] && bbfatal "No ARMSTUB defined for your machine."
25 oe_runmake ${ARMSTUB}
26}
27
28do_deploy() {
29 install -d ${DEPLOYDIR}/${PN}
30 cp ${S}/armstub*.bin ${DEPLOYDIR}/${PN}
31}
32
33addtask deploy before do_build after do_install
34do_deploy[dirs] += "${DEPLOYDIR}/${PN}"
35
36PACKAGE_ARCH = "${MACHINE_ARCH}"
Andrew Geissler26e4bea2020-11-30 19:54:03 -060037
38TOOLCHAIN = "gcc"