|
@@ -2,7 +2,7 @@
|
|
# Kernel configuration targets
|
|
# Kernel configuration targets
|
|
# These targets are used from top-level makefile
|
|
# These targets are used from top-level makefile
|
|
|
|
|
|
-PHONY += oldconfig xconfig gconfig menuconfig config silentoldconfig update-po-config \
|
|
|
|
|
|
+PHONY += xconfig gconfig menuconfig config silentoldconfig update-po-config \
|
|
localmodconfig localyesconfig
|
|
localmodconfig localyesconfig
|
|
|
|
|
|
ifdef KBUILD_KCONFIG
|
|
ifdef KBUILD_KCONFIG
|
|
@@ -11,30 +11,31 @@ else
|
|
Kconfig := Kconfig
|
|
Kconfig := Kconfig
|
|
endif
|
|
endif
|
|
|
|
|
|
|
|
+ifeq ($(quiet),silent_)
|
|
|
|
+silent := -s
|
|
|
|
+endif
|
|
|
|
+
|
|
# We need this, in case the user has it in its environment
|
|
# We need this, in case the user has it in its environment
|
|
unexport CONFIG_
|
|
unexport CONFIG_
|
|
|
|
|
|
xconfig: $(obj)/qconf
|
|
xconfig: $(obj)/qconf
|
|
- $< $(Kconfig)
|
|
|
|
|
|
+ $< $(silent) $(Kconfig)
|
|
|
|
|
|
gconfig: $(obj)/gconf
|
|
gconfig: $(obj)/gconf
|
|
- $< $(Kconfig)
|
|
|
|
|
|
+ $< $(silent) $(Kconfig)
|
|
|
|
|
|
menuconfig: $(obj)/mconf
|
|
menuconfig: $(obj)/mconf
|
|
- $< $(Kconfig)
|
|
|
|
|
|
+ $< $(silent) $(Kconfig)
|
|
|
|
|
|
config: $(obj)/conf
|
|
config: $(obj)/conf
|
|
- $< --oldaskconfig $(Kconfig)
|
|
|
|
|
|
+ $< $(silent) --oldaskconfig $(Kconfig)
|
|
|
|
|
|
nconfig: $(obj)/nconf
|
|
nconfig: $(obj)/nconf
|
|
- $< $(Kconfig)
|
|
|
|
-
|
|
|
|
-oldconfig: $(obj)/conf
|
|
|
|
- $< --$@ $(Kconfig)
|
|
|
|
|
|
+ $< $(silent) $(Kconfig)
|
|
|
|
|
|
silentoldconfig: $(obj)/conf
|
|
silentoldconfig: $(obj)/conf
|
|
$(Q)mkdir -p include/config include/generated
|
|
$(Q)mkdir -p include/config include/generated
|
|
- $< --$@ $(Kconfig)
|
|
|
|
|
|
+ $< $(silent) --$@ $(Kconfig)
|
|
|
|
|
|
localyesconfig localmodconfig: $(obj)/streamline_config.pl $(obj)/conf
|
|
localyesconfig localmodconfig: $(obj)/streamline_config.pl $(obj)/conf
|
|
$(Q)mkdir -p include/config include/generated
|
|
$(Q)mkdir -p include/config include/generated
|
|
@@ -43,18 +44,18 @@ localyesconfig localmodconfig: $(obj)/streamline_config.pl $(obj)/conf
|
|
cmp -s .tmp.config .config || \
|
|
cmp -s .tmp.config .config || \
|
|
(mv -f .config .config.old.1; \
|
|
(mv -f .config .config.old.1; \
|
|
mv -f .tmp.config .config; \
|
|
mv -f .tmp.config .config; \
|
|
- $(obj)/conf --silentoldconfig $(Kconfig); \
|
|
|
|
|
|
+ $(obj)/conf $(silent) --silentoldconfig $(Kconfig); \
|
|
mv -f .config.old.1 .config.old) \
|
|
mv -f .config.old.1 .config.old) \
|
|
else \
|
|
else \
|
|
mv -f .tmp.config .config; \
|
|
mv -f .tmp.config .config; \
|
|
- $(obj)/conf --silentoldconfig $(Kconfig); \
|
|
|
|
|
|
+ $(obj)/conf $(silent) --silentoldconfig $(Kconfig); \
|
|
fi
|
|
fi
|
|
$(Q)rm -f .tmp.config
|
|
$(Q)rm -f .tmp.config
|
|
|
|
|
|
# Create new linux.pot file
|
|
# Create new linux.pot file
|
|
# Adjust charset to UTF-8 in .po file to accept UTF-8 in Kconfig files
|
|
# Adjust charset to UTF-8 in .po file to accept UTF-8 in Kconfig files
|
|
update-po-config: $(obj)/kxgettext $(obj)/gconf.glade.h
|
|
update-po-config: $(obj)/kxgettext $(obj)/gconf.glade.h
|
|
- $(Q)echo " GEN config.pot"
|
|
|
|
|
|
+ $(Q)$(kecho) " GEN config.pot"
|
|
$(Q)xgettext --default-domain=linux \
|
|
$(Q)xgettext --default-domain=linux \
|
|
--add-comments --keyword=_ --keyword=N_ \
|
|
--add-comments --keyword=_ --keyword=N_ \
|
|
--from-code=UTF-8 \
|
|
--from-code=UTF-8 \
|
|
@@ -65,61 +66,58 @@ update-po-config: $(obj)/kxgettext $(obj)/gconf.glade.h
|
|
$(Q)(for i in `ls $(srctree)/arch/*/Kconfig \
|
|
$(Q)(for i in `ls $(srctree)/arch/*/Kconfig \
|
|
$(srctree)/arch/*/um/Kconfig`; \
|
|
$(srctree)/arch/*/um/Kconfig`; \
|
|
do \
|
|
do \
|
|
- echo " GEN $$i"; \
|
|
|
|
|
|
+ $(kecho) " GEN $$i"; \
|
|
$(obj)/kxgettext $$i \
|
|
$(obj)/kxgettext $$i \
|
|
>> $(obj)/config.pot; \
|
|
>> $(obj)/config.pot; \
|
|
done )
|
|
done )
|
|
- $(Q)echo " GEN linux.pot"
|
|
|
|
|
|
+ $(Q)$(kecho) " GEN linux.pot"
|
|
$(Q)msguniq --sort-by-file --to-code=UTF-8 $(obj)/config.pot \
|
|
$(Q)msguniq --sort-by-file --to-code=UTF-8 $(obj)/config.pot \
|
|
--output $(obj)/linux.pot
|
|
--output $(obj)/linux.pot
|
|
$(Q)rm -f $(obj)/config.pot
|
|
$(Q)rm -f $(obj)/config.pot
|
|
|
|
|
|
-PHONY += allnoconfig allyesconfig allmodconfig alldefconfig randconfig
|
|
|
|
-
|
|
|
|
-allnoconfig allyesconfig allmodconfig alldefconfig randconfig: $(obj)/conf
|
|
|
|
- $< --$@ $(Kconfig)
|
|
|
|
|
|
+# These targets map 1:1 to the commandline options of 'conf'
|
|
|
|
+simple-targets := oldconfig allnoconfig allyesconfig allmodconfig \
|
|
|
|
+ alldefconfig randconfig listnewconfig olddefconfig
|
|
|
|
+PHONY += $(simple-targets)
|
|
|
|
|
|
-PHONY += listnewconfig olddefconfig oldnoconfig savedefconfig defconfig
|
|
|
|
|
|
+$(simple-targets): $(obj)/conf
|
|
|
|
+ $< $(silent) --$@ $(Kconfig)
|
|
|
|
|
|
-listnewconfig olddefconfig: $(obj)/conf
|
|
|
|
- $< --$@ $(Kconfig)
|
|
|
|
|
|
+PHONY += oldnoconfig savedefconfig defconfig
|
|
|
|
|
|
# oldnoconfig is an alias of olddefconfig, because people already are dependent
|
|
# oldnoconfig is an alias of olddefconfig, because people already are dependent
|
|
# on its behavior(sets new symbols to their default value but not 'n') with the
|
|
# on its behavior(sets new symbols to their default value but not 'n') with the
|
|
# counter-intuitive name.
|
|
# counter-intuitive name.
|
|
-oldnoconfig: $(obj)/conf
|
|
|
|
- $< --olddefconfig $(Kconfig)
|
|
|
|
|
|
+oldnoconfig: olddefconfig
|
|
|
|
|
|
savedefconfig: $(obj)/conf
|
|
savedefconfig: $(obj)/conf
|
|
- $< --$@=defconfig $(Kconfig)
|
|
|
|
|
|
+ $< $(silent) --$@=defconfig $(Kconfig)
|
|
|
|
|
|
defconfig: $(obj)/conf
|
|
defconfig: $(obj)/conf
|
|
ifeq ($(KBUILD_DEFCONFIG),)
|
|
ifeq ($(KBUILD_DEFCONFIG),)
|
|
- $< --defconfig $(Kconfig)
|
|
|
|
|
|
+ $< $(silent) --defconfig $(Kconfig)
|
|
else
|
|
else
|
|
- @echo "*** Default configuration is based on '$(KBUILD_DEFCONFIG)'"
|
|
|
|
- $(Q)$< --defconfig=arch/$(SRCARCH)/configs/$(KBUILD_DEFCONFIG) $(Kconfig)
|
|
|
|
|
|
+ @$(kecho) "*** Default configuration is based on '$(KBUILD_DEFCONFIG)'"
|
|
|
|
+ $(Q)$< $(silent) --defconfig=arch/$(SRCARCH)/configs/$(KBUILD_DEFCONFIG) $(Kconfig)
|
|
endif
|
|
endif
|
|
|
|
|
|
%_defconfig: $(obj)/conf
|
|
%_defconfig: $(obj)/conf
|
|
- $(Q)$< --defconfig=arch/$(SRCARCH)/configs/$@ $(Kconfig)
|
|
|
|
|
|
+ $(Q)$< $(silent) --defconfig=arch/$(SRCARCH)/configs/$@ $(Kconfig)
|
|
|
|
|
|
-configfiles=$(wildcard $(srctree)/kernel/configs/$(1).config $(srctree)/arch/$(SRCARCH)/configs/$(1).config)
|
|
|
|
|
|
+configfiles=$(wildcard $(srctree)/kernel/configs/$@ $(srctree)/arch/$(SRCARCH)/configs/$@)
|
|
|
|
|
|
-define mergeconfig
|
|
|
|
-$(if $(wildcard $(objtree)/.config),, $(error You need an existing .config for this target))
|
|
|
|
-$(if $(call configfiles,$(1)),, $(error No configuration exists for this target on this architecture))
|
|
|
|
-$(Q)$(CONFIG_SHELL) $(srctree)/scripts/kconfig/merge_config.sh -m -O $(objtree) $(objtree)/.config $(call configfiles,$(1))
|
|
|
|
-$(Q)yes "" | $(MAKE) -f $(srctree)/Makefile oldconfig
|
|
|
|
-endef
|
|
|
|
|
|
+%.config: $(obj)/conf
|
|
|
|
+ $(if $(call configfiles),, $(error No configuration exists for this target on this architecture))
|
|
|
|
+ $(Q)$(CONFIG_SHELL) $(srctree)/scripts/kconfig/merge_config.sh -m .config $(configfiles)
|
|
|
|
+ +$(Q)yes "" | $(MAKE) -f $(srctree)/Makefile oldconfig
|
|
|
|
|
|
PHONY += kvmconfig
|
|
PHONY += kvmconfig
|
|
-kvmconfig:
|
|
|
|
- $(call mergeconfig,kvm_guest)
|
|
|
|
|
|
+kvmconfig: kvm_guest.config
|
|
|
|
+ @:
|
|
|
|
|
|
PHONY += tinyconfig
|
|
PHONY += tinyconfig
|
|
-tinyconfig: allnoconfig
|
|
|
|
- $(call mergeconfig,tiny)
|
|
|
|
|
|
+tinyconfig:
|
|
|
|
+ $(Q)$(MAKE) -f $(srctree)/Makefile allnoconfig tiny.config
|
|
|
|
|
|
# Help text used by make help
|
|
# Help text used by make help
|
|
help:
|
|
help:
|
|
@@ -221,7 +219,7 @@ $(obj)/.tmp_qtcheck: $(src)/Makefile
|
|
|
|
|
|
# QT needs some extra effort...
|
|
# QT needs some extra effort...
|
|
$(obj)/.tmp_qtcheck:
|
|
$(obj)/.tmp_qtcheck:
|
|
- @set -e; echo " CHECK qt"; dir=""; pkg=""; \
|
|
|
|
|
|
+ @set -e; $(kecho) " CHECK qt"; dir=""; pkg=""; \
|
|
if ! pkg-config --exists QtCore 2> /dev/null; then \
|
|
if ! pkg-config --exists QtCore 2> /dev/null; then \
|
|
echo "* Unable to find the QT4 tool qmake. Trying to use QT3"; \
|
|
echo "* Unable to find the QT4 tool qmake. Trying to use QT3"; \
|
|
pkg-config --exists qt 2> /dev/null && pkg=qt; \
|
|
pkg-config --exists qt 2> /dev/null && pkg=qt; \
|