From 77d2e0a8a57eda08e1e43f3ced9680f78227c06d Mon Sep 17 00:00:00 2001 From: Ciro Santilli Date: Mon, 12 Mar 2018 04:37:46 +0000 Subject: [PATCH] A bunch of tiny fixes --- README.adoc | 4 ++-- build | 3 +++ configure | 14 +++++++------- gem5/build | 16 ++++++++++++---- gem5/external.mk | 2 +- run | 4 +--- 6 files changed, 26 insertions(+), 17 deletions(-) diff --git a/README.adoc b/README.adoc index 3840da2..41b014b 100644 --- a/README.adoc +++ b/README.adoc @@ -1110,9 +1110,9 @@ wc -l trace-boot.txt gem5: .... -./run -a arm -g -e 'init=/eval.sh - lkmc_eval="m5 exit"' -n +./run -a arm -g -e 'init=/eval.sh - lkmc_eval="m5 exit"' # Or: -# ./run -a arm -g -e 'init=/eval.sh - lkmc_eval="m5 exit"' -n -- --cpu-type=HPI --caches +# ./run -a arm -g -e 'init=/eval.sh - lkmc_eval="m5 exit"' -- --cpu-type=HPI --caches grep sim_insts m5out/stats.txt .... diff --git a/build b/build index ba956cd..a523b17 100755 --- a/build +++ b/build @@ -114,6 +114,9 @@ BR2_ROOTFS_POST_SCRIPT_ARGS=\"$post_script_args\" # http://lists.busybox.net/pipermail/buildroot/2017-August/201053.html sed -Ei 's/^BR2_PACKAGE_LINUX_TOOLS_GPIO/BR2_PACKAGE_LINUX_TOOLS_GPIO=n/' "${config_file}" fi + # TODO why is this needed. Otherwise kernel .config does not change, even though Buildroot + # .config did due to -K. even if we are running linux-kernel-reconfigure! + rm -f "${out_dir}/build/linux-custom/.config" if [ -n "$linux_kernel_custom_config_file" ]; then printf "BR2_LINUX_KERNEL_CUSTOM_CONFIG_FILE=\"../${linux_kernel_custom_config_file}\"\n" >> "${config_file}" fi diff --git a/configure b/configure index 65c5816..41cd93d 100755 --- a/configure +++ b/configure @@ -57,13 +57,13 @@ coreutils \ " if "$gem5"; then pkgs="$pkgs \ - g++-6 \ - gcc-6 \ - gcc-aarch64-linux-gnu \ - gcc-arm-linux-gnueabi \ - libgoogle-perftools-dev \ - protobuf-compiler \ - " +g++-6 \ +gcc-6 \ +gcc-aarch64-linux-gnu \ +gcc-arm-linux-gnueabi \ +libgoogle-perftools-dev \ +protobuf-compiler \ +" fi command -v apt-get >/dev/null 2>&1 || { cat < /proc/sys/kernel/randomize_va_space. # printk.time=y: log in format: "[time ] msg" for all printk messages. # nokaslr: https://unix.stackexchange.com/questions/397939/turning-off-kaslr-to-debug-linux-kernel-using-qemu-and-gdb @@ -59,7 +58,6 @@ while getopts a:c:Dde:G:giKknt:x OPT; do n) extra_append="$extra_append console=ttyS0" extra_flags_qemu="$extra_flags -nographic" - nographic=true ;; esac done @@ -115,7 +113,7 @@ else extra_flags="${extra_flags_qemu} ${extra_flags}" images_dir="${out_dir}/images" qemu_common="\ -'${debug_vm}' \ +${debug_vm} \ '${out_dir}/host/usr/bin/qemu-system-${arch}' \ -m 128M \ -monitor telnet::45454,server,nowait \