mirror of
https://git.yoctoproject.org/meta-arm
synced 2026-07-16 15:57:19 +00:00
491cac17fe
Latest oe-core has less implicit DEPENDS, so gem5 fails to configure: Error: Can't find version of M4 macro processor. Please install M4 and try again. Explicitly add m4-native to DEPENDS. Change-Id: I2e107ea6448eec399619e0d1922fd29930a95fd8 Signed-off-by: Ross Burton <ross.burton@arm.com> Signed-off-by: Jon Mason <jon.mason@arm.com>
53 lines
1.5 KiB
PHP
53 lines
1.5 KiB
PHP
# gem5 platform independent build information
|
|
|
|
SUMMARY = "A modular platform for computer-system architecture research"
|
|
HOMEPAGE = "http://gem5.org"
|
|
LICENSE = "BSD & MIT & LGPLv2.1"
|
|
|
|
# Gem5 build and run parameter
|
|
|
|
# See http://www.gem5.org/documentation/general_docs/building for the list of variants
|
|
GEM5_BUILD_VARIANT ?= "opt"
|
|
|
|
# What gem5 binary are we building
|
|
GEM5_BUILD_CONFIGS ?= "build/X86/gem5.{GEM5_BUILD_VARIANT}"
|
|
|
|
# Scons build arguments
|
|
GEM5_SCONS_ARGS ?= "CC=${BUILD_CC} CXX=${BUILD_CXX} \
|
|
AS=${BUILD_AS} AR=${BUILD_AR} ${GEM5_BUILD_CONFIGS} \
|
|
PYTHON_CONFIG=python3-config"
|
|
|
|
# Default profile to run
|
|
GEM5_RUN_PROFILE ?= "configs/example/fs.py"
|
|
|
|
# We are building a native package and we need to use scons
|
|
inherit scons native
|
|
|
|
# the build is using several tools:
|
|
# python3: scons and six
|
|
# google protobuf
|
|
# pkgconfig
|
|
# hdf5
|
|
DEPENDS += "m4-native python3-six-native protobuf-native hdf5-native pkgconfig-native \
|
|
boost-native libpng-native"
|
|
|
|
EXTRA_OESCONS = "${GEM5_SCONS_ARGS}"
|
|
|
|
do_install() {
|
|
|
|
install -d ${D}${datadir}/gem5
|
|
cp -a --no-preserve=ownership -rf configs ${D}${datadir}/gem5/.
|
|
|
|
for f in ${GEM5_BUILD_CONFIGS}; do
|
|
destname=$(basename $f)
|
|
install -d ${D}${bindir}
|
|
install -m 755 $f ${D}${bindir}/$destname
|
|
done
|
|
}
|
|
|
|
FILES:${PN} = "${datadir}/gem5/* ${bindir}/*"
|
|
INSANE_SKIP:${PN} += "already-stripped"
|
|
RDEPENDS:${PN} += "python3-native hdf5-native protobuf-native libpng-native"
|
|
|
|
addtask addto_recipe_sysroot before do_build
|