Files
linux-kernel-module-cheat/gem5/external.mk
Ciro Santilli 2c4a9476be 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.
2018-02-22 00:23:57 +00:00

26 lines
585 B
Makefile

################################################################################
#
# GEM5
#
################################################################################
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_MAKE)' CC='$(TARGET_CC)' LD='$(TARGET_LD)'
endef
define GEM5_INSTALL_TARGET_CMDS
$(INSTALL) -D -m 0755 '$(@D)/gem5/util/m5/m5' '$(TARGET_DIR)'
endef
$(eval $(generic-package))