mirror of
https://github.com/cirosantilli/linux-kernel-module-cheat.git
synced 2026-01-26 19:51:35 +01:00
GEM5 checkpoint
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".
This commit is contained in:
1
gem5/.gitignore
vendored
Normal file
1
gem5/.gitignore
vendored
Normal file
@@ -0,0 +1 @@
|
||||
/gem5-system
|
||||
4
gem5/Config.in
Normal file
4
gem5/Config.in
Normal file
@@ -0,0 +1,4 @@
|
||||
config BR2_PACKAGE_GEM5
|
||||
bool "gem5"
|
||||
help
|
||||
GEM5
|
||||
1
gem5/external.desc
Normal file
1
gem5/external.desc
Normal file
@@ -0,0 +1 @@
|
||||
name: GEM5
|
||||
19
gem5/external.mk
Normal file
19
gem5/external.mk
Normal file
@@ -0,0 +1,19 @@
|
||||
################################################################################
|
||||
#
|
||||
# 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))
|
||||
1
gem5/gem5
Submodule
1
gem5/gem5
Submodule
Submodule gem5/gem5 added at da79d6c6cd
Reference in New Issue
Block a user