Message ID | 1392733738-8290-14-git-send-email-andi@firstfloor.org (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
On 02/18/2014 06:28 AM, Andi Kleen wrote: > > +ifdef CONFIG_LTO > +# LTO gcc creates a lot of files in TMPDIR, and with /tmp as tmpfs > +# it's easy to drive the machine OOM. Use the object directory > +# instead > +TMPDIR ?= ${objtree} > +export TMPDIR > +endif > + We still prefer $(...) in Makefiles, no? -hpa -- To unsubscribe from this list: send the line "unsubscribe linux-kbuild" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
diff --git a/Makefile b/Makefile index 893d6f0..0fd460b 100644 --- a/Makefile +++ b/Makefile @@ -407,6 +407,14 @@ export KBUILD_AFLAGS_MODULE KBUILD_CFLAGS_MODULE KBUILD_LDFLAGS_MODULE export KBUILD_AFLAGS_KERNEL KBUILD_CFLAGS_KERNEL export KBUILD_ARFLAGS +ifdef CONFIG_LTO +# LTO gcc creates a lot of files in TMPDIR, and with /tmp as tmpfs +# it's easy to drive the machine OOM. Use the object directory +# instead +TMPDIR ?= ${objtree} +export TMPDIR +endif + # When compiling out-of-tree modules, put MODVERDIR in the module # tree rather than in the kernel tree. The kernel tree might # even be read-only.