Skip to content

Commit 09b79f7

Browse files
authored
Merge pull request #30 from lool/fix-linux-build
workflows: linux: Change dir after reading configs
2 parents f022f1d + 629f0bc commit 09b79f7

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

scripts/build-linux-deb.sh

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -62,15 +62,18 @@ fi
6262
log_i "Cloning Linux (${GIT_REPO}:${GIT_BRANCH})"
6363
git clone --depth=1 --branch "${GIT_BRANCH}" "${GIT_REPO}" linux
6464

65-
cd linux
66-
6765
log_i "Configuring Linux (base config: ${CONFIG})"
68-
rm -vf kernel/configs/local.config
66+
rm -vf linux/kernel/configs/local.config
6967
for fragment in "$@"; do
7068
log_i "Adding config fragment to local.config: ${fragment}"
71-
touch kernel/configs/local.config
72-
cat "$fragment" >>kernel/configs/local.config
69+
touch linux/kernel/configs/local.config
70+
cat "$fragment" >>linux/kernel/configs/local.config
7371
done
72+
73+
# only change working directory after having read config fragments passed on
74+
# the command-line as these might be relative pathnames
75+
cd linux
76+
7477
if [ -r kernel/configs/local.config]; then
7578
make ARCH=arm64 "${CONFIG}" local.config
7679
else

0 commit comments

Comments
 (0)