mirror of
https://github.com/cirosantilli/linux-kernel-module-cheat.git
synced 2026-01-23 02:05:57 +01:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user