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=" * |" OBJCOPY" =* |" REPO=" * ) export " ${1?} " ;;
8
+ " AR=" * |" ARCH=" * |" CC=" * |" LD=" * |" NM " = * | " OBJCOPY" =* |" REPO=" * ) export " ${1?} " ;;
9
9
" -c" |" --clean" ) cleanup=true ;;
10
10
" -j" |" --jobs" ) shift ; jobs=$1 ;;
11
11
" -j" * ) jobs=${1/ -j} ;;
@@ -191,6 +191,12 @@ check_dependencies() {
191
191
fi
192
192
check_objcopy_version
193
193
${OBJCOPY} --version
194
+
195
+ if [[ -z " ${NM:- } " ]]; then
196
+ for NM in llvm-nm-9 llvm-nm-8 llvm-nm-7 llvm-nm " ${CROSS_COMPILE:- } " nm; do
197
+ command -v ${NM} 2> /dev/null && break
198
+ done
199
+ fi
194
200
}
195
201
196
202
# Optimistically check to see that the user has a llvm-ar
@@ -241,7 +247,8 @@ mako_reactor() {
241
247
KBUILD_BUILD_TIMESTAMP=" Thu Jan 1 00:00:00 UTC 1970" \
242
248
KBUILD_BUILD_USER=driver \
243
249
KBUILD_BUILD_HOST=clangbuiltlinux \
244
- make -j" ${jobs:- $(nproc)} " CC=" ${CC} " HOSTCC=" ${CC} " LD=" ${LD} " HOSTLD=" ${HOSTLD:- ld} " AR=" ${AR} " OBJCOPY=" ${OBJCOPY} " " ${@ } "
250
+ make -j" ${jobs:- $(nproc)} " CC=" ${CC} " HOSTCC=" ${CC} " LD=" ${LD} " \
251
+ HOSTLD=" ${HOSTLD:- ld} " AR=" ${AR} " OBJCOPY=" ${OBJCOPY} " NM=" ${NM} " " ${@ } "
245
252
}
246
253
247
254
apply_patches () {
You can’t perform that action at this time.
0 commit comments