mirror of
https://github.com/cirosantilli/linux-kernel-module-cheat.git
synced 2026-01-23 10:15:57 +01:00
Add gem5 as buildroot package to cross compile m5. Add gem5 as a submodule. Split gem5 from arch on CLI with "-a arm -g" instead of "-a arm-gem5".
20 lines
510 B
Makefile
20 lines
510 B
Makefile
################################################################################
|
|
#
|
|
# GEM5
|
|
#
|
|
################################################################################
|
|
|
|
GEM5_VERSION = 1.0
|
|
GEM5_SITE = $(BR2_EXTERNAL_GEM5_PATH)
|
|
GEM5_SITE_METHOD = local
|
|
|
|
define GEM5_BUILD_CMDS
|
|
cd '$(@D)/gem5/util/m5' && $(MAKE) -f 'Makefile.$(ARCH)' 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))
|