mirror of
https://git.yoctoproject.org/meta-arm
synced 2026-06-07 15:10:09 +00:00
gem5/gem5-aarch64-native: don't build gem5 three times
The recipe currently builds gem5 binaries in optimised, fast, and debug mode. There is no need to build three at once (and triples the build time), so simply build the optimised variant by default (as recommended by upstream) whilst letting the variant be altered by setting GEM5_BUILD_VARIANT. Change-Id: I23baeee438d1ff08d1e2a54282141b55500f2ac1 Signed-off-by: Ross Burton <ross.burton@arm.com> Signed-off-by: Jon Mason <jon.mason@arm.com>
This commit is contained in:
@@ -1,8 +1,7 @@
|
||||
# gem5 aarch64 specific configuration
|
||||
|
||||
# Build arm64 gem5
|
||||
GEM5_BUILD_CONFIGS ?= "build/ARM/gem5.opt build/ARM/gem5.fast \
|
||||
build/ARM/gem5.debug"
|
||||
GEM5_BUILD_CONFIGS ?= "build/ARM/gem5.${GEM5_BUILD_VARIANT}"
|
||||
|
||||
SRC_URI += "file://start-gem5.sh"
|
||||
|
||||
@@ -10,7 +9,7 @@ inherit deploy
|
||||
|
||||
# Parameters for the start script
|
||||
|
||||
GEM5_RUN_CONFIG ?= "gem5.fast"
|
||||
GEM5_RUN_CONFIG ?= "gem5.${GEM5_BUILD_VARIANT}"
|
||||
|
||||
# Linux kernel file to boot
|
||||
GEM5_RUN_KERNEL ?= "vmlinux"
|
||||
|
||||
@@ -6,8 +6,11 @@ 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.opt"
|
||||
GEM5_BUILD_CONFIGS ?= "build/X86/gem5.{GEM5_BUILD_VARIANT}"
|
||||
|
||||
# Scons build arguments
|
||||
GEM5_SCONS_ARGS ?= "CC=${BUILD_CC} CXX=${BUILD_CXX} \
|
||||
|
||||
Reference in New Issue
Block a user