mirror of
https://github.com/motioneye-project/motioneyeos.git
synced 2025-07-28 13:46:32 +00:00
Makefile: add update-defconfig target
For symmetry with the Kconfig-based packages offering comprehensive targets like linux-update-defconfig, barebox-update-defconfig and so on, add a new top level update-defconfig target to run savedefconfig. Signed-off-by: Vivien Didelot <vivien.didelot@gmail.com> Reviewed-by: Titouan Christophe <titouan.christophe@railnova.eu> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
This commit is contained in:
parent
b94e021004
commit
45f0395971
7
Makefile
7
Makefile
@ -135,7 +135,7 @@ nobuild_targets := source %-source \
|
|||||||
clean distclean help show-targets graph-depends \
|
clean distclean help show-targets graph-depends \
|
||||||
%-graph-depends %-show-depends %-show-version \
|
%-graph-depends %-show-depends %-show-version \
|
||||||
graph-build graph-size list-defconfigs \
|
graph-build graph-size list-defconfigs \
|
||||||
savedefconfig printvars
|
savedefconfig update-defconfig printvars
|
||||||
ifeq ($(MAKECMDGOALS),)
|
ifeq ($(MAKECMDGOALS),)
|
||||||
BR_BUILDING = y
|
BR_BUILDING = y
|
||||||
else ifneq ($(filter-out $(nobuild_targets),$(MAKECMDGOALS)),)
|
else ifneq ($(filter-out $(nobuild_targets),$(MAKECMDGOALS)),)
|
||||||
@ -964,13 +964,15 @@ define percent_defconfig
|
|||||||
endef
|
endef
|
||||||
$(eval $(foreach d,$(call reverse,$(TOPDIR) $(BR2_EXTERNAL_DIRS)),$(call percent_defconfig,$(d))$(sep)))
|
$(eval $(foreach d,$(call reverse,$(TOPDIR) $(BR2_EXTERNAL_DIRS)),$(call percent_defconfig,$(d))$(sep)))
|
||||||
|
|
||||||
|
update-defconfig: savedefconfig
|
||||||
|
|
||||||
savedefconfig: $(BUILD_DIR)/buildroot-config/conf prepare-kconfig
|
savedefconfig: $(BUILD_DIR)/buildroot-config/conf prepare-kconfig
|
||||||
@$(COMMON_CONFIG_ENV) $< \
|
@$(COMMON_CONFIG_ENV) $< \
|
||||||
--savedefconfig=$(if $(DEFCONFIG),$(DEFCONFIG),$(CONFIG_DIR)/defconfig) \
|
--savedefconfig=$(if $(DEFCONFIG),$(DEFCONFIG),$(CONFIG_DIR)/defconfig) \
|
||||||
$(CONFIG_CONFIG_IN)
|
$(CONFIG_CONFIG_IN)
|
||||||
@$(SED) '/BR2_DEFCONFIG=/d' $(if $(DEFCONFIG),$(DEFCONFIG),$(CONFIG_DIR)/defconfig)
|
@$(SED) '/BR2_DEFCONFIG=/d' $(if $(DEFCONFIG),$(DEFCONFIG),$(CONFIG_DIR)/defconfig)
|
||||||
|
|
||||||
.PHONY: defconfig savedefconfig
|
.PHONY: defconfig savedefconfig update-defconfig
|
||||||
|
|
||||||
################################################################################
|
################################################################################
|
||||||
#
|
#
|
||||||
@ -1052,6 +1054,7 @@ help:
|
|||||||
@echo ' defconfig - New config with default answer to all options;'
|
@echo ' defconfig - New config with default answer to all options;'
|
||||||
@echo ' BR2_DEFCONFIG, if set on the command line, is used as input'
|
@echo ' BR2_DEFCONFIG, if set on the command line, is used as input'
|
||||||
@echo ' savedefconfig - Save current config to BR2_DEFCONFIG (minimal config)'
|
@echo ' savedefconfig - Save current config to BR2_DEFCONFIG (minimal config)'
|
||||||
|
@echo ' update-defconfig - Same as savedefconfig'
|
||||||
@echo ' allyesconfig - New config where all options are accepted with yes'
|
@echo ' allyesconfig - New config where all options are accepted with yes'
|
||||||
@echo ' allnoconfig - New config where all options are answered with no'
|
@echo ' allnoconfig - New config where all options are answered with no'
|
||||||
@echo ' alldefconfig - New config where all options are set to default'
|
@echo ' alldefconfig - New config where all options are set to default'
|
||||||
|
Loading…
x
Reference in New Issue
Block a user