mirror of
https://github.com/cirosantilli/linux-kernel-module-cheat.git
synced 2026-01-23 02:05:57 +01:00
gem5: update to
Fix build to match new bootloader setup
This commit is contained in:
11
build-gem5
11
build-gem5
@@ -86,7 +86,8 @@ https://github.com/cirosantilli/linux-kernel-module-cheat-regression#gem5-unit-t
|
||||
)
|
||||
|
||||
# Bootloader 32.
|
||||
bootloader32_dir = os.path.join(gem5_system_source_dir, 'arm', 'simple_bootloader')
|
||||
arm_bootloader_dir = os.path.join(gem5_system_source_dir, 'arm', 'bootloader')
|
||||
bootloader32_dir = os.path.join(arm_bootloader_dir, 'arm')
|
||||
# TODO use the buildroot cross compiler here, and remove the dependencies from configure.
|
||||
self.sh.run_cmd([
|
||||
'make', LF,
|
||||
@@ -94,14 +95,14 @@ https://github.com/cirosantilli/linux-kernel-module-cheat-regression#gem5-unit-t
|
||||
'CROSS_COMPILE=arm-linux-gnueabihf-', LF,
|
||||
])
|
||||
# bootloader
|
||||
self.sh.cp(os.path.join(bootloader32_dir, 'boot_emm.arm'), binaries_dir)
|
||||
self.sh.cp(os.path.join(bootloader32_dir, 'boot.arm'), binaries_dir)
|
||||
|
||||
# Bootloader 64.
|
||||
bootloader64_dir = os.path.join(gem5_system_source_dir, 'arm', 'aarch64_bootloader')
|
||||
bootloader64_dir = os.path.join(arm_bootloader_dir, 'arm64')
|
||||
# TODO cross_compile is ignored because the make does not use CC...
|
||||
self.sh.run_cmd(['make', '-C', bootloader64_dir, LF])
|
||||
self.sh.cp(os.path.join(bootloader64_dir, 'boot_emm.arm64'), binaries_dir)
|
||||
self.sh.cp(os.path.join(bootloader64_dir, 'boot_emm_v2.arm64'), binaries_dir)
|
||||
self.sh.cp(os.path.join(bootloader64_dir, 'boot.arm64'), binaries_dir)
|
||||
self.sh.cp(os.path.join(bootloader64_dir, 'boot_v2.arm64'), binaries_dir)
|
||||
term_source_dir = os.path.join(self.env['gem5_source_dir'], 'util/term')
|
||||
m5term_build = os.path.join(term_source_dir, 'm5term')
|
||||
self.sh.run_cmd(['make', '-C', term_source_dir, LF])
|
||||
|
||||
Reference in New Issue
Block a user