aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Deutschmann <whissi@gentoo.org>2020-07-14 18:10:03 +0200
committerThomas Deutschmann <whissi@gentoo.org>2020-07-16 16:29:16 +0200
commit0b4c50fb24e49b2157292a799d78d386429e2331 (patch)
tree889e66f90ec908881a5265127780a27d0c524444 /gen_funcs.sh
parentgen_funcs.sh: _tc-getPROG(): Fix overriding of default program (diff)
downloadgenkernel-0b4c50fb24e49b2157292a799d78d386429e2331.tar.gz
genkernel-0b4c50fb24e49b2157292a799d78d386429e2331.tar.bz2
genkernel-0b4c50fb24e49b2157292a799d78d386429e2331.zip
busybox: Honor toolchain
Signed-off-by: Thomas Deutschmann <whissi@gentoo.org>
Diffstat (limited to 'gen_funcs.sh')
-rwxr-xr-xgen_funcs.sh9
1 files changed, 9 insertions, 0 deletions
diff --git a/gen_funcs.sh b/gen_funcs.sh
index 69172029..69e72428 100755
--- a/gen_funcs.sh
+++ b/gen_funcs.sh
@@ -1304,6 +1304,15 @@ tc-getOBJDUMP() {
tc-getPROG OBJDUMP objdump "$@"
}
+tc-getPKG_CONFIG() {
+ if [ -n "${BROOT}" ]
+ then
+ echo "${BROOT}/usr/bin/pkg-config-wrapper"
+ else
+ tc-getPROG PKG_CONFIG pkg-config "$@"
+ fi
+}
+
tc-getREADELF() {
tc-getPROG READELF readelf "$@"
}