blob: 50ac0300619a1c7d095eb83c1e41e01ca38d3bd4 [file] [log] [blame]
Brad Bishopbec4ebc2022-08-03 09:55:16 -04001# Use gem5 executable to produce a dtb
2
3LICENSE = "MIT"
4
5inherit deploy
6
7DEPENDS = "gem5-aarch64-native"
8
9do_configure[noexec] = "1"
10
11do_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
23do_install[noexec] = "1"
24
25do_deploy() {
26 install --d ${DEPLOYDIR}
27 cp m5out/system.dtb ${DEPLOYDIR}/gem5-aarch64.dtb
28}
29addtask deploy before do_build after do_compile
30