Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions mkroot.sh
Original file line number Diff line number Diff line change
Expand Up @@ -63,14 +63,15 @@ fi

# Work out absolute paths to working dirctories (can override on cmdline)
TOP="$PWD"
HOST=$(uname -m)
[ -z "$BUILD" ] && BUILD="$TOP/build"
[ -z "$DOWNLOAD" ] && DOWNLOAD="$TOP/download"
[ -z "$AIRLOCK" ] && AIRLOCK="$TOP/airlock"
[ -z "$OUTPUT" ] && OUTPUT="$TOP/output/${CROSS_SHORT:-host}"
[ -z "$OUTPUT" ] && OUTPUT="$TOP/output/${CROSS_SHORT:-${HOST}}"
[ -z "$ROOT" ] && ROOT="$OUTPUT/${CROSS_BASE}root"

[ -z "$N" ] && rm -rf "$ROOT"
MYBUILD="$BUILD/${CROSS_BASE:-host-}tmp"
MYBUILD="$BUILD/${CROSS_BASE:-${HOST}-}tmp"
mkdir -p "$MYBUILD" "$DOWNLOAD" || exit 1

### Functions to download, extract, and clean up after source packages.
Expand Down
4 changes: 2 additions & 2 deletions module/kernel
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/bin/echo Use as an argument to mkroot.sh

download 8685fffabe1ab8e6aaa2800dc0031d02273fa0a9 \
https://kernel.org/pub/linux/kernel/v5.x/linux-5.1.tar.gz
download dcd986e9e7a02500cf9c909030a4ca9e999adba2 \
https://kernel.org/pub/linux/kernel/v5.x/linux-5.4.8.tar.gz

[ -z "$TARGET" ] && TARGET="${CROSS_BASE/-*/}"
[ -z "$TARGET" ] && TARGET="$(uname -m)"
Expand Down
16 changes: 11 additions & 5 deletions run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,17 @@

if [ $# -lt 1 ]
then
ls output | grep -v '[.]failed' | xargs
exit
if [ $(ls -1 output | wc -l) -eq 1 ]
then
ARCH=$(ls -1 output)
shift
else
ls output | grep -v '[.]failed' | xargs
exit
fi
else
ARCH="$1"
shift
fi

ARCH="$1"
shift

cd output/$ARCH && ./qemu-$ARCH.sh "$@"