File tree Expand file tree Collapse file tree 1 file changed +8
-5
lines changed Expand file tree Collapse file tree 1 file changed +8
-5
lines changed Original file line number Diff line number Diff line change 6262log_i " Cloning Linux (${GIT_REPO} :${GIT_BRANCH} )"
6363git clone --depth=1 --branch " ${GIT_BRANCH} " " ${GIT_REPO} " linux
6464
65- cd linux
66-
6765log_i " Configuring Linux (base config: ${CONFIG} )"
68- rm -vf kernel/configs/local.config
66+ rm -vf linux/ kernel/configs/local.config
6967for 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
7371done
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+
7477if [ -r kernel/configs/local.config]; then
7578 make ARCH=arm64 " ${CONFIG} " local.config
7679else
You can’t perform that action at this time.
0 commit comments