mirror of
https://github.com/motioneye-project/motioneyeos.git
synced 2025-07-29 06:06:32 +00:00
Makefile: refactor *config targets
The rules for the *config targets are all very similar, so factor them together using $@. Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
This commit is contained in:
parent
5fc29ec2a7
commit
2607051e1b
42
Makefile
42
Makefile
@ -886,50 +886,20 @@ config: $(BUILD_DIR)/buildroot-config/conf prepare-kconfig
|
|||||||
# no values are set for the legacy options so a subsequent oldconfig
|
# no values are set for the legacy options so a subsequent oldconfig
|
||||||
# will query them. Therefore, run an additional olddefconfig.
|
# will query them. Therefore, run an additional olddefconfig.
|
||||||
|
|
||||||
oldconfig: $(BUILD_DIR)/buildroot-config/conf prepare-kconfig
|
randconfig allyesconfig allnoconfig: $(BUILD_DIR)/buildroot-config/conf prepare-kconfig
|
||||||
@$(COMMON_CONFIG_ENV) $< --oldconfig $(CONFIG_CONFIG_IN)
|
@$(COMMON_CONFIG_ENV) SKIP_LEGACY=y $< --$@ $(CONFIG_CONFIG_IN)
|
||||||
|
|
||||||
randconfig: $(BUILD_DIR)/buildroot-config/conf prepare-kconfig
|
|
||||||
@$(COMMON_CONFIG_ENV) SKIP_LEGACY=y $< --randconfig $(CONFIG_CONFIG_IN)
|
|
||||||
@$(COMMON_CONFIG_ENV) $< --olddefconfig $(CONFIG_CONFIG_IN) >/dev/null
|
@$(COMMON_CONFIG_ENV) $< --olddefconfig $(CONFIG_CONFIG_IN) >/dev/null
|
||||||
|
|
||||||
allyesconfig: $(BUILD_DIR)/buildroot-config/conf prepare-kconfig
|
randpackageconfig allyespackageconfig allnopackageconfig: $(BUILD_DIR)/buildroot-config/conf prepare-kconfig
|
||||||
@$(COMMON_CONFIG_ENV) SKIP_LEGACY=y $< --allyesconfig $(CONFIG_CONFIG_IN)
|
|
||||||
@$(COMMON_CONFIG_ENV) $< --olddefconfig $(CONFIG_CONFIG_IN) >/dev/null
|
|
||||||
|
|
||||||
allnoconfig: $(BUILD_DIR)/buildroot-config/conf prepare-kconfig
|
|
||||||
@$(COMMON_CONFIG_ENV) SKIP_LEGACY=y $< --allnoconfig $(CONFIG_CONFIG_IN)
|
|
||||||
@$(COMMON_CONFIG_ENV) $< --olddefconfig $(CONFIG_CONFIG_IN) >/dev/null
|
|
||||||
|
|
||||||
randpackageconfig: $(BUILD_DIR)/buildroot-config/conf prepare-kconfig
|
|
||||||
@grep -v BR2_PACKAGE_ $(BR2_CONFIG) > $(CONFIG_DIR)/.config.nopkg
|
@grep -v BR2_PACKAGE_ $(BR2_CONFIG) > $(CONFIG_DIR)/.config.nopkg
|
||||||
@$(COMMON_CONFIG_ENV) SKIP_LEGACY=y \
|
@$(COMMON_CONFIG_ENV) SKIP_LEGACY=y \
|
||||||
KCONFIG_ALLCONFIG=$(CONFIG_DIR)/.config.nopkg \
|
KCONFIG_ALLCONFIG=$(CONFIG_DIR)/.config.nopkg \
|
||||||
$< --randconfig $(CONFIG_CONFIG_IN)
|
$< --$(subst package,,$@) $(CONFIG_CONFIG_IN)
|
||||||
@rm -f $(CONFIG_DIR)/.config.nopkg
|
@rm -f $(CONFIG_DIR)/.config.nopkg
|
||||||
@$(COMMON_CONFIG_ENV) $< --olddefconfig $(CONFIG_CONFIG_IN) >/dev/null
|
@$(COMMON_CONFIG_ENV) $< --olddefconfig $(CONFIG_CONFIG_IN) >/dev/null
|
||||||
|
|
||||||
allyespackageconfig: $(BUILD_DIR)/buildroot-config/conf prepare-kconfig
|
oldconfig silentoldconfig olddefconfig: $(BUILD_DIR)/buildroot-config/conf prepare-kconfig
|
||||||
@grep -v BR2_PACKAGE_ $(BR2_CONFIG) > $(CONFIG_DIR)/.config.nopkg
|
@$(COMMON_CONFIG_ENV) $< --$@ $(CONFIG_CONFIG_IN)
|
||||||
@$(COMMON_CONFIG_ENV) SKIP_LEGACY=y \
|
|
||||||
KCONFIG_ALLCONFIG=$(CONFIG_DIR)/.config.nopkg \
|
|
||||||
$< --allyesconfig $(CONFIG_CONFIG_IN)
|
|
||||||
@rm -f $(CONFIG_DIR)/.config.nopkg
|
|
||||||
@$(COMMON_CONFIG_ENV) $< --olddefconfig $(CONFIG_CONFIG_IN) >/dev/null
|
|
||||||
|
|
||||||
allnopackageconfig: $(BUILD_DIR)/buildroot-config/conf prepare-kconfig
|
|
||||||
@grep -v BR2_PACKAGE_ $(BR2_CONFIG) > $(CONFIG_DIR)/.config.nopkg
|
|
||||||
@$(COMMON_CONFIG_ENV) SKIP_LEGACY=y \
|
|
||||||
KCONFIG_ALLCONFIG=$(CONFIG_DIR)/.config.nopkg \
|
|
||||||
$< --allnoconfig $(CONFIG_CONFIG_IN)
|
|
||||||
@rm -f $(CONFIG_DIR)/.config.nopkg
|
|
||||||
@$(COMMON_CONFIG_ENV) $< --olddefconfig $(CONFIG_CONFIG_IN) >/dev/null
|
|
||||||
|
|
||||||
silentoldconfig: $(BUILD_DIR)/buildroot-config/conf prepare-kconfig
|
|
||||||
$(COMMON_CONFIG_ENV) $< --silentoldconfig $(CONFIG_CONFIG_IN)
|
|
||||||
|
|
||||||
olddefconfig: $(BUILD_DIR)/buildroot-config/conf prepare-kconfig
|
|
||||||
$(COMMON_CONFIG_ENV) $< --olddefconfig $(CONFIG_CONFIG_IN)
|
|
||||||
|
|
||||||
defconfig: $(BUILD_DIR)/buildroot-config/conf prepare-kconfig
|
defconfig: $(BUILD_DIR)/buildroot-config/conf prepare-kconfig
|
||||||
@$(COMMON_CONFIG_ENV) $< --defconfig$(if $(DEFCONFIG),=$(DEFCONFIG)) $(CONFIG_CONFIG_IN)
|
@$(COMMON_CONFIG_ENV) $< --defconfig$(if $(DEFCONFIG),=$(DEFCONFIG)) $(CONFIG_CONFIG_IN)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user