Skip to content

Commit d260220

Browse files
committed
Adding in support for custom configurations
This change will add in the custom _defconfig's to the buildroot makefile so that when a _defconfig is in the custom directory it is recognized correctly, and is able to be used.
1 parent aaf6c28 commit d260220

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

Makefile

+8
Original file line numberDiff line numberDiff line change
@@ -845,6 +845,14 @@ defconfig: $(BUILD_DIR)/buildroot-config/conf outputmakefile
845845
@$(COMMON_CONFIG_ENV) BR2_DEFCONFIG=$(BR2_EXTERNAL)/configs/$@ \
846846
$< --defconfig=$(BR2_EXTERNAL)/configs/$@ $(CONFIG_CONFIG_IN)
847847

848+
%_defconfig: $(BUILD_DIR)/buildroot-config/conf $(wildcard $(TOPDIR)/configs/*/%_defconfig) outputmakefile
849+
@$(COMMON_CONFIG_ENV) BR2_DEFCONFIG=$(wildcard $(TOPDIR)/configs/*/$@) \
850+
$< --defconfig=$(wildcard $(TOPDIR)/configs/*/$@) $(CONFIG_CONFIG_IN)
851+
852+
%_defconfig: $(BUILD_DIR)/buildroot-config/conf $(wildcard $(BR2_EXTERNAL)/configs/*/%_defconfig) outputmakefile
853+
@$(COMMON_CONFIG_ENV) BR2_DEFCONFIG=$(wildcard $(BR2_EXTERNAL)/configs/*/$@) \
854+
$< --defconfig=$(wildcard $(BR2_EXTERNAL)/configs/*/$@) $(CONFIG_CONFIG_IN)
855+
848856
savedefconfig: $(BUILD_DIR)/buildroot-config/conf outputmakefile
849857
@$(COMMON_CONFIG_ENV) $< \
850858
--savedefconfig=$(if $(DEFCONFIG),$(DEFCONFIG),$(CONFIG_DIR)/defconfig) \

0 commit comments

Comments
 (0)