submodules: improve file headers

Notice that can't shallow clone from upstream, so just use my fork on
github for now.
This commit is contained in:
Ciro Santilli
2018-09-13 08:26:03 +01:00
parent c4d7fb3950
commit df3ed08181
2 changed files with 12 additions and 9 deletions

14
.gitmodules vendored
View File

@@ -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

View File

@@ -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`