aboutsummaryrefslogtreecommitdiff
path: root/bin/kbuild
diff options
context:
space:
mode:
authorMiquel Sabaté Solà <mikisabate@gmail.com>2024-08-07 23:49:27 +0200
committerMiquel Sabaté Solà <mikisabate@gmail.com>2024-08-07 23:49:27 +0200
commit7acce7b6abf85df85468c527f0453e4e3f9e65e5 (patch)
treece2d3291f1c37548498676247817f1119e8a9bb0 /bin/kbuild
parent980504b7969fc77be0334e3b7730c31b1b3063d9 (diff)
downloaddotfiles-7acce7b6abf85df85468c527f0453e4e3f9e65e5.tar.gz
dotfiles-7acce7b6abf85df85468c527f0453e4e3f9e65e5.zip
kbuild: styling
Signed-off-by: Miquel Sabaté Solà <mikisabate@gmail.com>
Diffstat (limited to 'bin/kbuild')
-rwxr-xr-xbin/kbuild8
1 files changed, 4 insertions, 4 deletions
diff --git a/bin/kbuild b/bin/kbuild
index af9ec6c..e5db4b7 100755
--- a/bin/kbuild
+++ b/bin/kbuild
@@ -72,7 +72,7 @@ fi
##
# .config
-if [ ! -f ".config" ]; then
+if [ ! -f ".config" ]; then
echo "kbuild (info): no '.config' file found"
make defconfig
fi
@@ -80,7 +80,7 @@ fi
config_options=("From a default configuration (defconfig)" "From an existing .config file")
echo "kconfig (info): how do you want to configure the build?"
PS3="> "
-select _opt in "${config_options[@]}" "Quit"; do
+select _opt in "${config_options[@]}" "Quit"; do
case "$REPLY" in
1)
make defconfig
@@ -119,9 +119,9 @@ if [ -z "$INSTALL_PATH" ]; then
INSTALL_PATH="buildroot-$name"
fi
mkdir -p "$INSTALL_PATH/usr/lib/modules/$name"
-pushd "$INSTALL_PATH" > /dev/null
+pushd "$INSTALL_PATH" >/dev/null
ln -s usr/lib lib
-popd > /dev/null
+popd >/dev/null
make modules_install INSTALL_MOD_PATH="$INSTALL_PATH"
make dtbs_install INSTALL_DTBS_PATH="$INSTALL_PATH/boot/dtbs/$name"