Brad Bishop | bec4ebc | 2022-08-03 09:55:16 -0400 | [diff] [blame] | 1 | # Use gem5 executable to produce a dtb |
| 2 | |
| 3 | LICENSE = "MIT" |
| 4 | |
| 5 | inherit deploy |
| 6 | |
| 7 | DEPENDS = "gem5-aarch64-native" |
| 8 | |
| 9 | do_configure[noexec] = "1" |
| 10 | |
| 11 | do_compile() { |
| 12 | # generate a dtb using gem5 |
| 13 | gem5.opt \ |
| 14 | ${STAGING_DATADIR_NATIVE}/gem5/${GEM5_RUN_PROFILE} \ |
| 15 | --dtb-gen |
| 16 | |
| 17 | if [ ! -f m5out/system.dtb ]; then |
| 18 | echo "No dtb generated !!!" |
| 19 | exit 1 |
| 20 | fi |
| 21 | } |
| 22 | |
| 23 | do_install[noexec] = "1" |
| 24 | |
| 25 | do_deploy() { |
| 26 | install --d ${DEPLOYDIR} |
| 27 | cp m5out/system.dtb ${DEPLOYDIR}/gem5-aarch64.dtb |
| 28 | } |
| 29 | addtask deploy before do_build after do_compile |
| 30 | |