mirror of
https://github.com/cirosantilli/linux-kernel-module-cheat.git
synced 2026-01-23 02:05:57 +01:00
gem5 works
This commit is contained in:
@@ -8,9 +8,7 @@ Reserve 12Gb of disk and run:
|
|||||||
|
|
||||||
git clone https://github.com/cirosantilli/linux-kernel-module-cheat
|
git clone https://github.com/cirosantilli/linux-kernel-module-cheat
|
||||||
cd linux-kernel-module-cheat
|
cd linux-kernel-module-cheat
|
||||||
./configure
|
./configure && ./build && ./run
|
||||||
./build
|
|
||||||
./run
|
|
||||||
|
|
||||||
The first build will take a while ([GCC](https://stackoverflow.com/questions/10833672/buildroot-environment-with-host-toolchain), Linux kernel), e.g.:
|
The first build will take a while ([GCC](https://stackoverflow.com/questions/10833672/buildroot-environment-with-host-toolchain), Linux kernel), e.g.:
|
||||||
|
|
||||||
|
|||||||
4
build
4
build
@@ -63,8 +63,7 @@ make O="$outdir" BR2_EXTERNAL="$(pwd)/../kernel_module" "$defconfig"
|
|||||||
cat ../buildroot_config_fragment >> "${outdir}/.config"
|
cat ../buildroot_config_fragment >> "${outdir}/.config"
|
||||||
if [ "$arch" = 'arm-gem5' ]; then
|
if [ "$arch" = 'arm-gem5' ]; then
|
||||||
echo "\
|
echo "\
|
||||||
BR2_LINUX_KERNEL_USE_CUSTOM_CONFIG=y
|
BR2_LINUX_KERNEL_CUSTOM_CONFIG_FILE=\"../kernel_config_gem5\"
|
||||||
BR2_LINUX_KERNEL_CUSTOM_CONFIG_FILE=../kernel_config_gem5
|
|
||||||
" >> "${outdir}/.config"
|
" >> "${outdir}/.config"
|
||||||
else
|
else
|
||||||
echo "\
|
echo "\
|
||||||
@@ -92,6 +91,7 @@ time \
|
|||||||
$extra_targets \
|
$extra_targets \
|
||||||
all \
|
all \
|
||||||
;
|
;
|
||||||
|
cd ..
|
||||||
if [ "$arch" = 'arm-gem5' ]; then
|
if [ "$arch" = 'arm-gem5' ]; then
|
||||||
./build-gem5
|
./build-gem5
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user