mirror of
https://github.com/cirosantilli/linux-kernel-module-cheat.git
synced 2026-01-27 20:14:27 +01:00
getting started: explain 9p module rebuild
split networking and filesystem toplevel secions create closest overlayfs attempt so far and document it
This commit is contained in:
32
build-all
32
build-all
@@ -1,6 +1,10 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
# Build everything, or a subset of everything.
|
||||
# Shallow helper to build everything, or a subset of everything conveniently.
|
||||
#
|
||||
# While developing something however, you will likely want to just run the
|
||||
# required sub-build commands manually to speed things up and understand what
|
||||
# is going on.
|
||||
#
|
||||
# Without any args, build everything for all archs:
|
||||
#
|
||||
@@ -13,10 +17,12 @@
|
||||
#
|
||||
# ./build-all --archs 'arm aarch64'
|
||||
#
|
||||
# Other options make this script build only the given projects. E.g., to build
|
||||
# Other options make this script build only the given components. E.g., to build
|
||||
# just Linux and QEMU for all archs, but not gem5, Buildroot, etc.:
|
||||
#
|
||||
# ./build-all --linux --qemu
|
||||
#
|
||||
# this is useful to while developing those components to prepare to quickly
|
||||
|
||||
set -eu
|
||||
archs='x86_64 arm aarch64'
|
||||
@@ -24,7 +30,9 @@ baremetal=false
|
||||
buildroot=false
|
||||
gem5=false
|
||||
linux=false
|
||||
modules=false
|
||||
qemu=false
|
||||
userland=false
|
||||
while [ $# -gt 0 ]; do
|
||||
case "$1" in
|
||||
--archs)
|
||||
@@ -47,10 +55,18 @@ while [ $# -gt 0 ]; do
|
||||
linux=true
|
||||
shift
|
||||
;;
|
||||
--modules)
|
||||
modules=true
|
||||
shift
|
||||
;;
|
||||
--qemu)
|
||||
qemu=true
|
||||
shift
|
||||
;;
|
||||
--userland)
|
||||
userland=true
|
||||
shift
|
||||
;;
|
||||
esac
|
||||
done
|
||||
if ! (
|
||||
@@ -71,6 +87,15 @@ for arch in $archs; do
|
||||
if "$qemu"; then
|
||||
./build-qemu --arch "$arch"
|
||||
fi
|
||||
if "$linux"; then
|
||||
./build-linux --arch "$arch"
|
||||
fi
|
||||
if "$modules"; then
|
||||
./build-modules
|
||||
fi
|
||||
if "$userland"; then
|
||||
./build-userland
|
||||
fi
|
||||
if "$baremetal" && [ ! "$arch" = x86_64 ]; then
|
||||
./build-crosstool-ng --arch "$arch"
|
||||
./build-baremetal --arch "$arch"
|
||||
@@ -83,7 +108,4 @@ for arch in $archs; do
|
||||
if "$gem5"; then
|
||||
./build-gem5 --arch "$arch"
|
||||
fi
|
||||
if "$linux"; then
|
||||
./build-linux --arch "$arch"
|
||||
fi
|
||||
done
|
||||
|
||||
Reference in New Issue
Block a user