summaryrefslogtreecommitdiff
path: root/Makefile.in
diff options
context:
space:
mode:
authorCarmelo Amoroso <carmelo.amoroso@st.com>2011-10-25 06:54:34 +0200
committerCarmelo Amoroso <carmelo.amoroso@st.com>2011-10-25 06:54:34 +0200
commitb9055a68dd1e17e6cdc816ef6e1aa213592f38ca (patch)
treec4b2c40f3553d5be3be404ff073f62a5188732b6 /Makefile.in
parenteee423c9ed211267a47ca995cd0238ab5d1ece72 (diff)
config: add support for <custom>_defconfig
Add support for platform specific and/or custom defconfig per arch. They have to be suffixed by '_defconfig' and are automatically detected and displayed by issuing 'make ARCH=<arch> help'. Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.com>
Diffstat (limited to 'Makefile.in')
-rw-r--r--Makefile.in5
1 files changed, 5 insertions, 0 deletions
diff --git a/Makefile.in b/Makefile.in
index 615ee3e9d..75965aeac 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -422,6 +422,8 @@ $(addprefix $(top_builddir),include include/bits include/sys include/config lib
$(conf) $(mconf): | $(top_builddir)include/config $(top_builddir)extra/config/lxdialog
$(Q)$(MAKE) -C extra/config $(@F)
+arch-defconfigs := $(notdir $(wildcard $(top_srcdir)extra/Configs/defconfigs/$(ARCH)/*_defconfig))
+
menuconfig: $(mconf)
$(Q)$< extra/Configs/Config.in
@@ -453,6 +455,9 @@ allnoconfig: $(conf)
defconfig: $(conf)
$(Q)$< -D extra/Configs/defconfigs/$(ARCH)/$@ extra/Configs/Config.in
+%_defconfig: $(conf)
+ $(Q)$< -D extra/Configs/defconfigs/$(ARCH)/$@ extra/Configs/Config.in
+
menuconfig-clean-y:
$(Q)$(MAKE) -C extra/config CLEAN_extra/config