Fix x86 build with GEM5. Boot still fails as before.

Use ./run -g instead of ./rungem5.

More convenient GEM5 kernel command line options with -e differentially.
This commit is contained in:
Ciro Santilli
2018-02-22 00:23:57 +00:00
parent f31046d26a
commit 2c4a9476be
5 changed files with 103 additions and 96 deletions

View File

@@ -8,8 +8,14 @@ GEM5_VERSION = 1.0
GEM5_SITE = $(BR2_EXTERNAL_GEM5_PATH)
GEM5_SITE_METHOD = local
ifeq ($(ARCH),x86_64)
ARCH_MAKE = x86
else
ARCH_MAKE = $(ARCH)
endif
define GEM5_BUILD_CMDS
cd '$(@D)/gem5/util/m5' && $(MAKE) -f 'Makefile.$(ARCH)' CC='$(TARGET_CC)' LD='$(TARGET_LD)'
cd '$(@D)/gem5/util/m5' && $(MAKE) -f 'Makefile.$(ARCH_MAKE)' CC='$(TARGET_CC)' LD='$(TARGET_LD)'
endef
define GEM5_INSTALL_TARGET_CMDS