summaryrefslogtreecommitdiffstats
path: root/recipes-bsp/armstubs/armstubs.bb
diff options
context:
space:
mode:
Diffstat (limited to 'recipes-bsp/armstubs/armstubs.bb')
-rw-r--r--recipes-bsp/armstubs/armstubs.bb33
1 files changed, 33 insertions, 0 deletions
diff --git a/recipes-bsp/armstubs/armstubs.bb b/recipes-bsp/armstubs/armstubs.bb
new file mode 100644
index 0000000..06f3f33
--- /dev/null
+++ b/recipes-bsp/armstubs/armstubs.bb
@@ -0,0 +1,33 @@
1DESCRIPTION = "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
10SRC_URI_append = " file://0001-armstubs-makefile-external-toolchain.patch"
11
12COMPATIBLE_MACHINE = "^rpi$"
13
14S = "${RPITOOLS_S}/armstubs"
15
16export CC8="${CC}"
17export LD8="${LD}"
18export OBJCOPY8="${OBJCOPY}"
19export OBJDUMP8="${OBJDUMP} -maarch64"
20
21do_compile() {
22 oe_runmake ${ARMSTUB}
23}
24
25do_deploy() {
26 install -d ${DEPLOYDIR}/${PN}
27 cp ${S}/armstub*.bin ${DEPLOYDIR}/${PN}
28}
29
30addtask deploy before do_build after do_install
31do_deploy[dirs] += "${DEPLOYDIR}/${PN}"
32
33PACKAGE_ARCH = "${MACHINE_ARCH}"