Skip to content

Commit 603beb8

Browse files
committed
kbuilder: implement debugger
Signed-off-by: UsiFX <xprjkts@gmail.com>
1 parent 8a4a56f commit 603beb8

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

kbuilder.sh

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,9 @@ RED='\e[1;31m'
1818
YELLOW='\e[01;33m'
1919
STOCK='\e[1;0m'
2020

21+
# Enable debug early if env var is set
22+
[[ $KBUILDER_DEBUG == 1 ]] && set -x
23+
2124
# Build configuration
2225
BUILDER_VERSION=0.0.1
2326
WORK_DIRECTORY=$(pwd)
@@ -214,7 +217,7 @@ if [[ $BUILD_FLAG == true ]]; then
214217

215218
# Now, update the FLAGS array with the new flags
216219
FLAGS=("${new_flags[@]}")
217-
220+
218221
PATH="/usr/lib/ccache/bin:${PATH}" make "${DEFCONFIG}" all -j"$(nproc --all --ignore=2)" "${FLAGS[@]}"
219222
else
220223
make "${DEFCONFIG}" all -j"$(nproc --all --ignore=2)" "${FLAGS[@]}"

0 commit comments

Comments
 (0)