Skip to content

Commit 727beb8

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 727beb8

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

Makefile

+10
Original file line numberDiff line numberDiff line change
@@ -845,6 +845,10 @@ 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 $(BR2_EXTERNAL)/custom/configs/%_defconfig outputmakefile
849+
@$(COMMON_CONFIG_ENV) BR2_DEFCONFIG=$(BR2_EXTERNAL)/custom/configs/$@ \
850+
$< --defconfig=$(BR2_EXTERNAL)/custom/configs/$@ $(CONFIG_CONFIG_IN)
851+
848852
savedefconfig: $(BUILD_DIR)/buildroot-config/conf outputmakefile
849853
@$(COMMON_CONFIG_ENV) $< \
850854
--savedefconfig=$(if $(DEFCONFIG),$(DEFCONFIG),$(CONFIG_DIR)/defconfig) \
@@ -983,6 +987,12 @@ ifneq ($(wildcard $(BR2_EXTERNAL)/configs/*_defconfig),)
983987
@echo 'User-provided configs:'
984988
@$(foreach b, $(sort $(notdir $(wildcard $(BR2_EXTERNAL)/configs/*_defconfig))), \
985989
printf " %-35s - Build for %s\\n" $(b) $(b:_defconfig=);)
990+
endif
991+
ifneq ($(wildcard $(BR2_EXTERNAL)/custom/configs/*_defconfig),)
992+
@echo
993+
@echo 'User-provided custom configs:'
994+
@$(foreach b, $(sort $(notdir $(wildcard $(BR2_EXTERNAL)/custom/configs/*_defconfig))), \
995+
printf " %-35s - Build for %s\\n" $(b) $(b:_defconfig=);)
986996
endif
987997
@echo
988998

0 commit comments

Comments
 (0)