mirror of
https://github.com/cirosantilli/linux-kernel-module-cheat.git
synced 2026-01-27 12:04:27 +01:00
Uber easy arch swap
This commit is contained in:
10
setoutarch
Executable file
10
setoutarch
Executable file
@@ -0,0 +1,10 @@
|
||||
#!/usr/bin/env bash
|
||||
# Maintain different buildroot/output archs with symlinks.
|
||||
if [ "$#" -ne 1 ]; then
|
||||
exit 1
|
||||
fi
|
||||
arch="$1"
|
||||
dst="output.${arch}~"
|
||||
src='buildroot/output'
|
||||
mkdir -p "buildroot/$dst"
|
||||
ln -fns "$dst" "$src"
|
||||
Reference in New Issue
Block a user