mirror of
https://github.com/motioneye-project/motioneyeos.git
synced 2025-07-28 05:36:32 +00:00
Add support for savedefconfig
savedefconfig allows to create a minimal defconfig file from an existing configuration. For example : make O=/path/to/some/buildroot/build/directory savedefconfig will generate a minimal 'defconfig' file in the main Buildroot source directory. Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
This commit is contained in:
parent
1039eb74fa
commit
e1b1a18ab6
6
Makefile
6
Makefile
@ -29,7 +29,7 @@ CONFIG=package/config
|
|||||||
DATE:=$(shell date +%Y%m%d)
|
DATE:=$(shell date +%Y%m%d)
|
||||||
|
|
||||||
noconfig_targets:=menuconfig nconfig gconfig xconfig config oldconfig randconfig \
|
noconfig_targets:=menuconfig nconfig gconfig xconfig config oldconfig randconfig \
|
||||||
defconfig %_defconfig allyesconfig allnoconfig release \
|
defconfig %_defconfig savedefconfig allyesconfig allnoconfig release \
|
||||||
randpackageconfig allyespackageconfig allnopackageconfig \
|
randpackageconfig allyespackageconfig allnopackageconfig \
|
||||||
source-check help
|
source-check help
|
||||||
|
|
||||||
@ -547,6 +547,10 @@ defconfig: $(BUILD_DIR)/buildroot-config/conf
|
|||||||
@mkdir -p $(BUILD_DIR)/buildroot-config
|
@mkdir -p $(BUILD_DIR)/buildroot-config
|
||||||
@$(COMMON_CONFIG_ENV) $< --defconfig=$(TOPDIR)/configs/$@ $(CONFIG_CONFIG_IN)
|
@$(COMMON_CONFIG_ENV) $< --defconfig=$(TOPDIR)/configs/$@ $(CONFIG_CONFIG_IN)
|
||||||
|
|
||||||
|
savedefconfig: $(BUILD_DIR)/buildroot-config/conf
|
||||||
|
@mkdir -p $(BUILD_DIR)/buildroot-config
|
||||||
|
@$(COMMON_CONFIG_ENV) $< --savedefconfig=$(TOPDIR)/defconfig $(CONFIG_CONFIG_IN)
|
||||||
|
|
||||||
# check if download URLs are outdated
|
# check if download URLs are outdated
|
||||||
source-check: allyesconfig
|
source-check: allyesconfig
|
||||||
$(MAKE) $(EXTRAMAKEARGS) _source-check
|
$(MAKE) $(EXTRAMAKEARGS) _source-check
|
||||||
|
Loading…
x
Reference in New Issue
Block a user