mirror of
https://github.com/cirosantilli/linux-kernel-module-cheat.git
synced 2026-01-27 04:01:36 +01:00
fix configure
This commit is contained in:
12
README.adoc
12
README.adoc
@@ -145,21 +145,21 @@ hello2 cleanup
|
|||||||
|
|
||||||
which are `printk` messages from `init` and `cleanup` methods of those modules.
|
which are `printk` messages from `init` and `cleanup` methods of those modules.
|
||||||
|
|
||||||
|
Sources:
|
||||||
|
|
||||||
|
* link:packages/kernel_modules/hello.c[]
|
||||||
|
* link:packages/kernel_modules/hello2.c[]
|
||||||
|
|
||||||
Quit QEMU with:
|
Quit QEMU with:
|
||||||
|
|
||||||
....
|
....
|
||||||
Ctrl-A X
|
Ctrl-A X
|
||||||
....
|
....
|
||||||
|
|
||||||
Sources:
|
See also: <<quit-qemu-from-text-mode>>.
|
||||||
|
|
||||||
* link:packages/kernel_modules/hello.c[]
|
|
||||||
* link:packages/kernel_modules/hello2.c[]
|
|
||||||
|
|
||||||
All available modules can be found in the link:packages/kernel_modules/[`kernel_modules` directory].
|
All available modules can be found in the link:packages/kernel_modules/[`kernel_modules` directory].
|
||||||
|
|
||||||
See also: <<quit-qemu-from-text-mode>>.
|
|
||||||
|
|
||||||
I now urge you to read the following sections which contain widely applicable information:
|
I now urge you to read the following sections which contain widely applicable information:
|
||||||
|
|
||||||
* <<run-command-after-boot>>
|
* <<run-command-after-boot>>
|
||||||
|
|||||||
7
configure
vendored
7
configure
vendored
@@ -1,5 +1,5 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
set -e
|
set -eu
|
||||||
interactive_pkgs=libsdl2-dev
|
interactive_pkgs=libsdl2-dev
|
||||||
gem5=false
|
gem5=false
|
||||||
qemu=true
|
qemu=true
|
||||||
@@ -105,6 +105,7 @@ fi
|
|||||||
if "$gem5"; then
|
if "$gem5"; then
|
||||||
submodules="${submodules} gem5"
|
submodules="${submodules} gem5"
|
||||||
fi
|
fi
|
||||||
|
submodules="$(for submodule in ${submodules}; do printf "submodules/${submodule} "; done)"
|
||||||
(
|
(
|
||||||
set -e
|
set -e
|
||||||
# Shallow cloning saves a considerable amount of time, specially because of the linux kernel.
|
# Shallow cloning saves a considerable amount of time, specially because of the linux kernel.
|
||||||
@@ -113,9 +114,7 @@ fi
|
|||||||
# In particular:
|
# In particular:
|
||||||
# - `shallow = true` on the submodule has no effect for the non default educational branches of our submodules
|
# - `shallow = true` on the submodule has no effect for the non default educational branches of our submodules
|
||||||
# - QEMU's submodules point to commits that are neither under branches nor tags, and so `--shallow-submodules` fails
|
# - QEMU's submodules point to commits that are neither under branches nor tags, and so `--shallow-submodules` fails
|
||||||
for submodule in submodules/*/; do
|
git submodule update --depth 1 $gitjobs --init -- ${submodules}
|
||||||
git submodule update --depth 1 $gitjobs --init -- "submodules/${submodule}"
|
|
||||||
done
|
|
||||||
if "$qemu"; then
|
if "$qemu"; then
|
||||||
git -C submodules/qemu submodule update --init --recursive
|
git -C submodules/qemu submodule update --init --recursive
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user