Brad Bishop | bec4ebc | 2022-08-03 09:55:16 -0400 | [diff] [blame] | 1 | # Build instructions for gem5 custom bootloader |
| 2 | |
| 3 | SUMMARY = "Gem5 AARCH64 boot loader" |
| 4 | LICENSE = "BSD-3-Clause" |
| 5 | |
| 6 | inherit deploy |
| 7 | |
| 8 | PROVIDES += "virtual/gem5-bootloader" |
| 9 | |
| 10 | COMPATIBLE_MACHINE = "gem5-arm64" |
| 11 | |
| 12 | BOOTLOADER_SRC_PATH ?= "${S}/system/arm/bootloader/arm64" |
| 13 | |
| 14 | # no configure step |
| 15 | do_configure[noexec] = "1" |
| 16 | |
| 17 | # no install |
| 18 | do_install[noexec] = "1" |
| 19 | |
| 20 | do_compile() { |
| 21 | oe_runmake -C ${BOOTLOADER_SRC_PATH} all CROSS_COMPILE=${TARGET_PREFIX} |
| 22 | } |
| 23 | |
| 24 | do_deploy() { |
| 25 | oe_runmake -C ${BOOTLOADER_SRC_PATH} install \ |
| 26 | CROSS_COMPILE=${TARGET_PREFIX} DESTDIR=${DEPLOYDIR}/binaries |
| 27 | } |
| 28 | |
| 29 | addtask deploy before do_build after do_compile |
| 30 | |