mirror of
https://github.com/cirosantilli/linux-kernel-module-cheat.git
synced 2026-01-23 02:05:57 +01:00
gem5 cache automate benchmarks, and remove results that were scattered all over. Move console fun under linux kernel section, since not important enough for getting started. Set arch x86_64 by default through common on all scripts.
32 lines
720 B
Bash
32 lines
720 B
Bash
#!/usr/bin/env bash
|
|
eeval() (
|
|
cmd="$1"
|
|
echo "$cmd" | tee -a "${2:-/dev/null}"
|
|
eval "$cmd"
|
|
)
|
|
set_common_vars() {
|
|
arch="$1"
|
|
gem5="$2"
|
|
root_dir="$(pwd)"
|
|
buildroot_dir="${root_dir}/buildroot"
|
|
arch_dir="$arch"
|
|
if "$gem5" && [ ! "$arch" = aarch64 ]; then
|
|
arch_dir="${arch}-gem5"
|
|
fi
|
|
out_dir="${root_dir}/out"
|
|
out_arch_dir="${out_dir}/${arch_dir}"
|
|
buildroot_out_dir="${out_arch_dir}/buildroot"
|
|
build_dir="${buildroot_out_dir}/build"
|
|
host_dir="${buildroot_out_dir}/host"
|
|
gem5_out_dir="${out_arch_dir}/gem5"
|
|
m5out_dir="${gem5_out_dir}/m5out"
|
|
qemu_out_dir="${out_arch_dir}/qemu"
|
|
common_dir="${out_dir}/common"
|
|
}
|
|
f=cli.gitignore
|
|
if [ -f "$f" ]; then
|
|
. "$f"
|
|
fi
|
|
# Default arch.
|
|
arch=x86_64
|