diff options
Diffstat (limited to 'recipes-bsp/armstubs/armstubs.bb')
| -rw-r--r-- | recipes-bsp/armstubs/armstubs.bb | 33 |
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 @@ | |||
| 1 | DESCRIPTION = "Boot strap code that the GPU puts on memory to start running the boot loader" | ||
| 2 | LICENSE = "Proprietary" | ||
| 3 | |||
| 4 | LIC_FILES_CHKSUM = "file://armstub.S;beginline=1;endline=26;md5=9888f34ac06a676129416c952a6a521e" | ||
| 5 | |||
| 6 | inherit deploy nopackages | ||
| 7 | |||
| 8 | include recipes-bsp/common/raspberrypi-tools.inc | ||
| 9 | |||
| 10 | SRC_URI_append = " file://0001-armstubs-makefile-external-toolchain.patch" | ||
| 11 | |||
| 12 | COMPATIBLE_MACHINE = "^rpi$" | ||
| 13 | |||
| 14 | S = "${RPITOOLS_S}/armstubs" | ||
| 15 | |||
| 16 | export CC8="${CC}" | ||
| 17 | export LD8="${LD}" | ||
| 18 | export OBJCOPY8="${OBJCOPY}" | ||
| 19 | export OBJDUMP8="${OBJDUMP} -maarch64" | ||
| 20 | |||
| 21 | do_compile() { | ||
| 22 | oe_runmake ${ARMSTUB} | ||
| 23 | } | ||
| 24 | |||
| 25 | do_deploy() { | ||
| 26 | install -d ${DEPLOYDIR}/${PN} | ||
| 27 | cp ${S}/armstub*.bin ${DEPLOYDIR}/${PN} | ||
| 28 | } | ||
| 29 | |||
| 30 | addtask deploy before do_build after do_install | ||
| 31 | do_deploy[dirs] += "${DEPLOYDIR}/${PN}" | ||
| 32 | |||
| 33 | PACKAGE_ARCH = "${MACHINE_ARCH}" | ||
