|
@@ -344,16 +344,14 @@ scripts_basic:
|
|
scripts/basic/%: scripts_basic ;
|
|
scripts/basic/%: scripts_basic ;
|
|
|
|
|
|
PHONY += outputmakefile
|
|
PHONY += outputmakefile
|
|
-# outputmakefile generate a Makefile to be placed in output directory, if
|
|
|
|
-# using a seperate output directory. This allows convinient use
|
|
|
|
-# of make in output directory
|
|
|
|
|
|
+# outputmakefile generates a Makefile in the output directory, if using a
|
|
|
|
+# separate output directory. This allows convenient use of make in the
|
|
|
|
+# output directory.
|
|
outputmakefile:
|
|
outputmakefile:
|
|
- $(Q)if test ! $(srctree) -ef $(objtree); then \
|
|
|
|
- $(CONFIG_SHELL) $(srctree)/scripts/mkmakefile \
|
|
|
|
- $(srctree) $(objtree) $(VERSION) $(PATCHLEVEL) \
|
|
|
|
- > $(objtree)/Makefile; \
|
|
|
|
- echo ' GEN $(objtree)/Makefile'; \
|
|
|
|
- fi
|
|
|
|
|
|
+ifneq ($(KBUILD_SRC),)
|
|
|
|
+ $(Q)$(CONFIG_SHELL) $(srctree)/scripts/mkmakefile \
|
|
|
|
+ $(srctree) $(objtree) $(VERSION) $(PATCHLEVEL)
|
|
|
|
+endif
|
|
|
|
|
|
# To make sure we do not include .config for any of the *config targets
|
|
# To make sure we do not include .config for any of the *config targets
|
|
# catch them early, and hand them over to scripts/kconfig/Makefile
|
|
# catch them early, and hand them over to scripts/kconfig/Makefile
|