From df3ed08181372ffde9c5f2210298795fe895ba64 Mon Sep 17 00:00:00 2001 From: Ciro Santilli Date: Thu, 13 Sep 2018 08:26:03 +0100 Subject: [PATCH] submodules: improve file headers Notice that can't shallow clone from upstream, so just use my fork on github for now. --- .gitmodules | 14 +++++++++----- README.adoc | 7 +++---- 2 files changed, 12 insertions(+), 9 deletions(-) diff --git a/.gitmodules b/.gitmodules index f5d3817..a858b9a 100644 --- a/.gitmodules +++ b/.gitmodules @@ -1,16 +1,20 @@ -[submodule "buildroot"] +[submodule "submodules/buildroot"] path = submodules/buildroot url = https://github.com/cirosantilli/buildroot ignore = dirty -[submodule "qemu"] +[submodule "submodules/qemu"] path = submodules/qemu url = https://github.com/cirosantilli/qemu -[submodule "linux"] +# The true upstream does not accept git submodule update --init --depth 1 +# git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git +# But git clone --branch --depth 1 worked weirdly: +# https://unix.stackexchange.com/questions/338578/linux-kernel-source-code-size-difference +[submodule "submodules/linux"] path = submodules/linux url = https://github.com/cirosantilli/linux -[submodule "gem5/gem5"] +[submodule "submodules/gem5"] path = submodules/gem5 url = https://gem5.googlesource.com/public/gem5 -[submodule "parsec-benchmark/parsec-benchmark"] +[submodule "submodules/parsec-benchmark"] path = submodules/parsec-benchmark url = https://github.com/cirosantilli/parsec-benchmark diff --git a/README.adoc b/README.adoc index 1d51471..a17d1d5 100644 --- a/README.adoc +++ b/README.adoc @@ -6919,16 +6919,15 @@ Using this device now requires checking out to the branch: .... git checkout platform-device +git submodule sync .... before building, it does not work on master. +Rationale: we found out that the kernels that build for `qemu -M versatilepb` don't work on gem5 because `versatilepb` is an old pre-v7 platform, and gem5 requires armv7. So we migrated over to `-M virt` to have a single kernel for both gem5 and QEMU, and broke this since the single kernel was more important. TODO port to `-M virt`. + The module itself can be found at: https://github.com/cirosantilli/linux-kernel-module-cheat/blob/platform-device/kernel_modules/platform_device.c -Rationale: we found out that the kernels that build for `qemu -M versatilepb` don't work on gem5 because `versatilepb` is an old pre-v7 platform, and gem5 requires armv7. - -At the same time, we also found out that Versatile Express (`vexpress`) does support armv7, so maybe we could port it over, but I had lost interest at that point, and decided to just go with the simpler `-M virt` machine instead. - Uses: * `hw/misc/lkmc_platform_device.c` minimal device added in our QEMU fork to `-M versatilepb`