summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Olbrich <m.olbrich@pengutronix.de>2019-10-10 11:41:00 +0200
committerMichael Olbrich <m.olbrich@pengutronix.de>2019-10-10 20:25:51 +0200
commitbe5cea175565fe064bdb41d8da8af0cf0914001a (patch)
treeb8d8521827b6641816cfd5cb8754e3d7ab314b9d
parent88283b87f90d0b1d37323a82978234075eb9a78f (diff)
downloadptxdist-be5cea175565fe064bdb41d8da8af0cf0914001a.tar.gz
ptxdist-be5cea175565fe064bdb41d8da8af0cf0914001a.tar.xz
ptxd_make_world_init: unset MAKELEVEL
MAKELEVEL is incremented for each sub-make call. The ptxdist make should not be counted because this can confuse package makefiles that use this variable to detect the make recursion level. Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
-rw-r--r--scripts/lib/ptxd_make_world_common.sh3
1 files changed, 3 insertions, 0 deletions
diff --git a/scripts/lib/ptxd_make_world_common.sh b/scripts/lib/ptxd_make_world_common.sh
index 7fbdeab8d..dc601cc05 100644
--- a/scripts/lib/ptxd_make_world_common.sh
+++ b/scripts/lib/ptxd_make_world_common.sh
@@ -199,6 +199,9 @@ ptxd_make_world_init() {
IFS="${orig_IFS}"
export PTXDIST_LAYERS
+ # make sure any make calls appear to be the toplevel make
+ unset MAKELEVEL
+
#
# type
#