summaryrefslogtreecommitdiffstats
path: root/core/modules/busybox
diff options
context:
space:
mode:
authorJonathan Bauer2018-11-16 15:45:15 +0100
committerJonathan Bauer2018-11-16 15:45:15 +0100
commit55eed57d5271c3b06c5bc549040b213cdcf610fa (patch)
treed68f4663e1bd7497285d465edc3b7008e04dbb0f /core/modules/busybox
parent[beamergui] Update to 2.0, move parse-edid to own module (diff)
downloadmltk-55eed57d5271c3b06c5bc549040b213cdcf610fa.tar.gz
mltk-55eed57d5271c3b06c5bc549040b213cdcf610fa.tar.xz
mltk-55eed57d5271c3b06c5bc549040b213cdcf610fa.zip
[busybox] only apply Makefile fix if CC is set
Diffstat (limited to 'core/modules/busybox')
-rw-r--r--core/modules/busybox/module.build5
1 files changed, 4 insertions, 1 deletions
diff --git a/core/modules/busybox/module.build b/core/modules/busybox/module.build
index e960849f..9214a484 100644
--- a/core/modules/busybox/module.build
+++ b/core/modules/busybox/module.build
@@ -15,7 +15,10 @@ fetch_source() {
if ! grep -q 'suspend.*"no"' "util-linux/rtcwake.c"; then
git apply "${MODULE_DIR}/rtcwake-compat.patch" || perror "Could not apply busybox patch for rtcwake compat with util-linux"
fi
- sed -i -r 's/^CC\s*=\s*(\S)/CC ?= \1/' Makefile || perror "Could not patch Makefile"
+ # make sure Makefile allows a preset CC
+ if [ -n "$CC" ]; then
+ sed -i -r 's/^CC\s*=\s*(\S)/CC ?= \1/' Makefile || perror "Could not patch Makefile"
+ fi
cd .. || perror "cd .. failed"
}