gem5: undo attempt to use the TARGET_CROSS...

This commit is contained in:
Ciro Santilli
2018-03-12 12:00:00 +00:00
parent 77d2e0a8a5
commit 2c606e3e1a
2 changed files with 3 additions and 5 deletions

View File

@@ -20,15 +20,12 @@ shift "$(($OPTIND - 1))"
if [ -z "$j" ]; then
j="$(nproc)"
fi
top="$(dirname "$0")"
top="$(cd $(dirname "$0") && pwd)"
system_dir="${top}/system"
binaries_dir="${system_dir}/binaries"
disks_dir="${system_dir}/disks"
mkdir -p "$binaries_dir" "$disks_dir"
cd "${top}/gem5"
TARGET_CROSS=
if [ "$arch" = x86_64 ]; then
CC=gcc-6 CXX=g++-6 scons -j"$j" --ignore-style build/X86/gem5.opt
f="${disks_dir}/linux-bigswap2.img"

View File

@@ -15,7 +15,8 @@ ARCH_MAKE = $(ARCH)
endif
define GEM5_BUILD_CMDS
cd '$(@D)' && ./build -a '$(ARCH)' -c '$(TARGET_CROSS)' -j '$(BR2_JLEVEL)'
# Cannot pass "-c '$(TARGET_CROSS)'" here because the ARM build uses aarch64 for the bootloader...
cd '$(@D)' && ./build -a '$(ARCH)' -j '$(BR2_JLEVEL)'
cd '$(@D)/gem5/util/m5' && $(MAKE) -f 'Makefile.$(ARCH_MAKE)' CC='$(TARGET_CC)' LD='$(TARGET_LD)'
endef