summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--include/toplevel.mk4
1 files changed, 3 insertions, 1 deletions
diff --git a/include/toplevel.mk b/include/toplevel.mk
index f44dc8155..19ed8cb1d 100644
--- a/include/toplevel.mk
+++ b/include/toplevel.mk
@@ -51,6 +51,8 @@ export SCAN_COOKIE
SUBMAKE:=umask 022; $(SUBMAKE)
+ULIMIT_FIX=_limit=`ulimit -n`; [ "$$_limit" = "unlimited" -o "$$_limit" -ge 1024 ] || ulimit -n 1024;
+
prepare-mk: FORCE ;
prepare-tmpinfo: FORCE
@@ -149,7 +151,7 @@ prereq:: prepare-tmpinfo .config
echo "WARNING: your configuration is out of sync. Please run make menuconfig, oldconfig or defconfig!"; \
fi \
)
- @+$(SUBMAKE) -r $@
+ @+$(ULIMIT_FIX) $(SUBMAKE) -r $@
help:
cat README