Makefile: Add support for nconfig frontend for 'make nconfig'

This commit is contained in:
Michał Łyszczek 2018-04-22 10:20:29 -06:00 committed by Gregory Nutt
parent 0663e075ca
commit 1c3b7a551b
2 changed files with 14 additions and 4 deletions

View File

@ -1,7 +1,7 @@
############################################################################ ############################################################################
# Makefile.unix # Makefile.unix
# #
# Copyright (C) 2007-2012, 2014-2015 Gregory Nutt. All rights reserved. # Copyright (C) 2007-2012, 2014-2015, 2018 Gregory Nutt. All rights reserved.
# Author: Gregory Nutt <gnutt@nuttx.org> # Author: Gregory Nutt <gnutt@nuttx.org>
# #
# Redistribution and use in source and binary forms, with or without # Redistribution and use in source and binary forms, with or without
@ -182,7 +182,7 @@ NUTTXNAME = nuttx
BIN = $(NUTTXNAME)$(EXEEXT) BIN = $(NUTTXNAME)$(EXEEXT)
all: $(BIN) all: $(BIN)
.PHONY: dirlinks context clean_context check_context export subdir_clean clean subdir_distclean distclean apps_clean apps_distclean .PHONY: dirlinks context clean_context check_context config oldconfig menuconfig nconfig qconfig gconfig export subdir_clean clean subdir_distclean distclean apps_clean apps_distclean
# Target used to copy include/nuttx/lib/math.h. If CONFIG_ARCH_MATH_H is # Target used to copy include/nuttx/lib/math.h. If CONFIG_ARCH_MATH_H is
# defined, then there is an architecture specific math.h header file # defined, then there is an architecture specific math.h header file
@ -505,6 +505,11 @@ do_menuconfig: dirlinks apps_preconfig
menuconfig: do_menuconfig clean_context menuconfig: do_menuconfig clean_context
do_nconfig: dirlinks apps_preconfig
$(Q) APPSDIR=${CONFIG_APPS_DIR} kconfig-nconf Kconfig
nconfig: do_nconfig clean_context
do_qconfig: dirlinks apps_preconfig do_qconfig: dirlinks apps_preconfig
$(Q) APPSDIR=${CONFIG_APPS_DIR} kconfig-qconf Kconfig $(Q) APPSDIR=${CONFIG_APPS_DIR} kconfig-qconf Kconfig

View File

@ -1,7 +1,7 @@
############################################################################ ############################################################################
# Makefile.win # Makefile.win
# #
# Copyright (C) 2012, 2015 Gregory Nutt. All rights reserved. # Copyright (C) 2012, 2015, 2018 Gregory Nutt. All rights reserved.
# Author: Gregory Nutt <gnutt@nuttx.org> # Author: Gregory Nutt <gnutt@nuttx.org>
# #
# Redistribution and use in source and binary forms, with or without # Redistribution and use in source and binary forms, with or without
@ -175,7 +175,7 @@ NUTTXNAME = nuttx
BIN = $(NUTTXNAME)$(EXEEXT) BIN = $(NUTTXNAME)$(EXEEXT)
all: $(BIN) all: $(BIN)
.PHONY: dirlinks context clean_context check_context configenv config oldconfig menuconfig export subdir_clean clean subdir_distclean distclean apps_clean apps_distclean .PHONY: dirlinks context clean_context check_context configenv config oldconfig menuconfig nconfig export subdir_clean clean subdir_distclean distclean apps_clean apps_distclean
# Target used to copy include\nuttx\math.h. If CONFIG_ARCH_MATH_H is # Target used to copy include\nuttx\math.h. If CONFIG_ARCH_MATH_H is
# defined, then there is an architecture specific math.h header file # defined, then there is an architecture specific math.h header file
@ -501,6 +501,11 @@ do_menuconfig: dirlinks configenv apps_preconfig
menuconfig: do_menuconfig clean_context menuconfig: do_menuconfig clean_context
do_nconfig: dirlinks apps_preconfig
$(Q) set APPSDIR=$(patsubst "%",%,${CONFIG_APPS_DIR})& kconfig-nconf Kconfig
nconfig: do_nconfig clean_context
do_savedefconfig: dirlinks apps_preconfig do_savedefconfig: dirlinks apps_preconfig
savedefconfig: do_savedefconfig savedefconfig: do_savedefconfig