This repository was archived by the owner on Apr 13, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Original file line number Diff line number Diff line change 5
5
setup_variables () {
6
6
while [[ ${# } -ge 1 ]]; do
7
7
case ${1} in
8
- " AR=" * |" ARCH=" * |" CC=" * |" LD=" * |" NM" =* |" OBJCOPY" =* |" REPO=" * ) export " ${1?} " ;;
8
+ " AR=" * |" ARCH=" * |" CC=" * |" LD=" * |" NM" =* |" OBJCOPY" =* |" REPO=" * | " STRIP " = * ) export " ${1?} " ;;
9
9
" -c" |" --clean" ) cleanup=true ;;
10
10
" -j" |" --jobs" ) shift ; jobs=$1 ;;
11
11
" -j" * ) jobs=${1/ -j} ;;
@@ -197,6 +197,12 @@ check_dependencies() {
197
197
command -v ${NM} 2> /dev/null && break
198
198
done
199
199
fi
200
+
201
+ if [[ -z " ${STRIP:- } " ]]; then
202
+ for STRIP in llvm-strip-9 llvm-strip-8 llvm-strip-7 llvm-strip " ${CROSS_COMPILE:- } " strip; do
203
+ command -v ${STRIP} 2> /dev/null && break
204
+ done
205
+ fi
200
206
}
201
207
202
208
# Optimistically check to see that the user has a llvm-ar
@@ -248,7 +254,8 @@ mako_reactor() {
248
254
KBUILD_BUILD_USER=driver \
249
255
KBUILD_BUILD_HOST=clangbuiltlinux \
250
256
make -j" ${jobs:- $(nproc)} " CC=" ${CC} " HOSTCC=" ${CC} " LD=" ${LD} " \
251
- HOSTLD=" ${HOSTLD:- ld} " AR=" ${AR} " OBJCOPY=" ${OBJCOPY} " NM=" ${NM} " " ${@ } "
257
+ HOSTLD=" ${HOSTLD:- ld} " AR=" ${AR} " OBJCOPY=" ${OBJCOPY} " NM=" ${NM} " \
258
+ STRIP=" ${STRIP} " " ${@ } "
252
259
}
253
260
254
261
apply_patches () {
You can’t perform that action at this time.
0 commit comments