From 8fb0b15efde92de43f6bc52f60a5a5680b782d8e Mon Sep 17 00:00:00 2001 From: "Sergio E. Nemirowski" Date: Wed, 10 Jun 2020 04:33:21 +0300 Subject: build: add nconfig MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Add support for make target nconfig (ncurses) Reviewed-by: Eneas U de Queiroz Signed-off-by: Sergio E. Nemirowski Signed-off-by: Petr Štetiar --- include/toplevel.mk | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'include') diff --git a/include/toplevel.mk b/include/toplevel.mk index 5cf93ce7ef..ba59595764 100644 --- a/include/toplevel.mk +++ b/include/toplevel.mk @@ -141,6 +141,13 @@ menuconfig: scripts/config/mconf prepare-tmpinfo FORCE [ -L .config ] && export KCONFIG_OVERWRITECONFIG=1; \ $< Config.in +nconfig: scripts/config/nconf prepare-tmpinfo FORCE + if [ \! -e .config -a -e $(HOME)/.openwrt/defconfig ]; then \ + cp $(HOME)/.openwrt/defconfig .config; \ + fi + [ -L .config ] && export KCONFIG_OVERWRITECONFIG=1; \ + $< Config.in + xconfig: scripts/config/qconf prepare-tmpinfo FORCE if [ \! -e .config -a -e $(HOME)/.openwrt/defconfig ]; then \ cp $(HOME)/.openwrt/defconfig .config; \ -- cgit v1.2.3