mirror of
https://github.com/motioneye-project/motioneyeos.git
synced 2025-07-27 05:06:39 +00:00
Add support for the new nconf configuration tool
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
This commit is contained in:
parent
52a142a631
commit
8b6585a9d3
10
Makefile
10
Makefile
@ -28,7 +28,7 @@ CONFIG_CONFIG_IN=Config.in
|
|||||||
CONFIG=package/config
|
CONFIG=package/config
|
||||||
DATE:=$(shell date +%Y%m%d)
|
DATE:=$(shell date +%Y%m%d)
|
||||||
|
|
||||||
noconfig_targets:=menuconfig gconfig xconfig config oldconfig randconfig \
|
noconfig_targets:=menuconfig nconfig gconfig xconfig config oldconfig randconfig \
|
||||||
defconfig %_defconfig allyesconfig allnoconfig release \
|
defconfig %_defconfig allyesconfig allnoconfig release \
|
||||||
randpackageconfig allyespackageconfig allnopackageconfig \
|
randpackageconfig allyespackageconfig allnopackageconfig \
|
||||||
source-check help
|
source-check help
|
||||||
@ -490,6 +490,14 @@ menuconfig: $(BUILD_DIR)/buildroot-config/mconf
|
|||||||
test -f $(CONFIG_DIR)/.config.cmd || rm -f $(CONFIG_DIR)/.config; \
|
test -f $(CONFIG_DIR)/.config.cmd || rm -f $(CONFIG_DIR)/.config; \
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
nconfig: $(BUILD_DIR)/buildroot-config/nconf
|
||||||
|
@mkdir -p $(BUILD_DIR)/buildroot-config
|
||||||
|
@if ! KCONFIG_AUTOCONFIG=$(BUILD_DIR)/buildroot-config/auto.conf \
|
||||||
|
KCONFIG_AUTOHEADER=$(BUILD_DIR)/buildroot-config/autoconf.h \
|
||||||
|
BUILDROOT_CONFIG=$(CONFIG_DIR)/.config $< $(CONFIG_CONFIG_IN); then \
|
||||||
|
test -f $(CONFIG_DIR)/.config.cmd || rm -f $(CONFIG_DIR)/.config; \
|
||||||
|
fi
|
||||||
|
|
||||||
config: $(BUILD_DIR)/buildroot-config/conf
|
config: $(BUILD_DIR)/buildroot-config/conf
|
||||||
@mkdir -p $(BUILD_DIR)/buildroot-config
|
@mkdir -p $(BUILD_DIR)/buildroot-config
|
||||||
@KCONFIG_AUTOCONFIG=$(BUILD_DIR)/buildroot-config/auto.conf \
|
@KCONFIG_AUTOCONFIG=$(BUILD_DIR)/buildroot-config/auto.conf \
|
||||||
|
@ -177,6 +177,9 @@ hostprogs-y := conf qconf gconf kxgettext
|
|||||||
ifeq ($(MAKECMDGOALS),nconfig)
|
ifeq ($(MAKECMDGOALS),nconfig)
|
||||||
hostprogs-y += nconf
|
hostprogs-y += nconf
|
||||||
endif
|
endif
|
||||||
|
ifeq ($(findstring nconf,$(MAKECMDGOALS)),nconf)
|
||||||
|
hostprogs-y += nconf
|
||||||
|
endif
|
||||||
|
|
||||||
ifeq ($(MAKECMDGOALS),menuconfig)
|
ifeq ($(MAKECMDGOALS),menuconfig)
|
||||||
hostprogs-y += mconf
|
hostprogs-y += mconf
|
||||||
|
@ -1,12 +1,19 @@
|
|||||||
---
|
---
|
||||||
Makefile | 11 ++++++++++-
|
Makefile | 14 +++++++++++++-
|
||||||
1 file changed, 10 insertions(+), 1 deletion(-)
|
1 file changed, 13 insertions(+), 1 deletion(-)
|
||||||
|
|
||||||
Index: config.new/Makefile
|
Index: config/Makefile
|
||||||
===================================================================
|
===================================================================
|
||||||
--- config.new.orig/Makefile
|
--- config.orig/Makefile
|
||||||
+++ config.new/Makefile
|
+++ config/Makefile
|
||||||
@@ -181,14 +181,23 @@
|
@@ -177,18 +177,30 @@
|
||||||
|
ifeq ($(MAKECMDGOALS),nconfig)
|
||||||
|
hostprogs-y += nconf
|
||||||
|
endif
|
||||||
|
+ifeq ($(findstring nconf,$(MAKECMDGOALS)),nconf)
|
||||||
|
+ hostprogs-y += nconf
|
||||||
|
+endif
|
||||||
|
|
||||||
ifeq ($(MAKECMDGOALS),menuconfig)
|
ifeq ($(MAKECMDGOALS),menuconfig)
|
||||||
hostprogs-y += mconf
|
hostprogs-y += mconf
|
||||||
endif
|
endif
|
||||||
|
Loading…
x
Reference in New Issue
Block a user