mirror of
https://github.com/cirosantilli/linux-kernel-module-cheat.git
synced 2026-01-23 02:05:57 +01:00
gem5
This commit is contained in:
18
build
18
build
@@ -37,6 +37,11 @@ case "$arch" in
|
||||
# so let's stick to versatile for now.
|
||||
defconfig=qemu_arm_versatile_defconfig
|
||||
;;
|
||||
arm-gem5)
|
||||
# qemu_arm_vexpress_defconfig required a newer QEMU than 2.0.0 on a Ubuntu host.
|
||||
# so let's stick to versatile for now.
|
||||
defconfig=qemu_arm_versatile_defconfig
|
||||
;;
|
||||
aarch64)
|
||||
defconfig=qemu_aarch64_virt_defconfig
|
||||
;;
|
||||
@@ -56,6 +61,16 @@ make O="$outdir" BR2_EXTERNAL="$(pwd)/../kernel_module" "$defconfig"
|
||||
# TODO Can't get rid of this for now.
|
||||
# http://stackoverflow.com/questions/44078245/is-it-possible-to-use-config-fragments-with-buildroots-config
|
||||
cat ../buildroot_config_fragment >> "${outdir}/.config"
|
||||
if [ "$arch" = 'arm-gem5' ]; then
|
||||
echo "\
|
||||
BR2_LINUX_KERNEL_USE_CUSTOM_CONFIG=y
|
||||
BR2_LINUX_KERNEL_CUSTOM_CONFIG_FILE=../kernel_config_gem5
|
||||
" >> "${outdir}/.config"
|
||||
else
|
||||
echo "\
|
||||
BR2_LINUX_KERNEL_CONFIG_FRAGMENT_FILES=../kernel_config_fragment
|
||||
" >> "${outdir}/.config"
|
||||
fi
|
||||
if $x11; then
|
||||
cat ../buildroot_config_fragment_x11 >> "${outdir}/.config"
|
||||
fi
|
||||
@@ -77,3 +92,6 @@ time \
|
||||
$extra_targets \
|
||||
all \
|
||||
;
|
||||
if [ "$arch" = 'arm-gem5' ]; then
|
||||
./build-gem5
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user