diff options
Diffstat (limited to 'meta-arm/meta-gem5/recipes-devtools/gem5/gem5-aarch64-dtb.bb')
-rw-r--r-- | meta-arm/meta-gem5/recipes-devtools/gem5/gem5-aarch64-dtb.bb | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/meta-arm/meta-gem5/recipes-devtools/gem5/gem5-aarch64-dtb.bb b/meta-arm/meta-gem5/recipes-devtools/gem5/gem5-aarch64-dtb.bb new file mode 100644 index 0000000000..50ac030061 --- /dev/null +++ b/meta-arm/meta-gem5/recipes-devtools/gem5/gem5-aarch64-dtb.bb @@ -0,0 +1,30 @@ +# Use gem5 executable to produce a dtb + +LICENSE = "MIT" + +inherit deploy + +DEPENDS = "gem5-aarch64-native" + +do_configure[noexec] = "1" + +do_compile() { + # generate a dtb using gem5 + gem5.opt \ + ${STAGING_DATADIR_NATIVE}/gem5/${GEM5_RUN_PROFILE} \ + --dtb-gen + + if [ ! -f m5out/system.dtb ]; then + echo "No dtb generated !!!" + exit 1 + fi +} + +do_install[noexec] = "1" + +do_deploy() { + install --d ${DEPLOYDIR} + cp m5out/system.dtb ${DEPLOYDIR}/gem5-aarch64.dtb +} +addtask deploy before do_build after do_compile + |