Commit 3301add3 authored by Adam Wujek's avatar Adam Wujek 💬

userspace/dot-config: add nconf to target

Another tool like menuconfig for changing the dot-config on the target.
Signed-off-by: Adam Wujek's avatarAdam Wujek <adam.wujek@cern.ch>
parent 75453d8f
......@@ -16,7 +16,7 @@ CFLAGS = -D KBUILD_NO_NLS
# most of this is just copying stuff in
RFILES = Kconfig dot-config wrs_release_defconfig
XFILES = conf mconf
XFILES = conf mconf nconf
FILES = $(RFILES) $(XFILES)
all: $(FILES)
......@@ -58,6 +58,13 @@ mconf:
-DCURSES_LOC="<curses.h>" -I$(CURSES_BUILD)/include \
-L$(CURSES_BUILD)/lib -lncurses
nconf:
$(CC) $(CFLAGS) -o $@ $(CONF_LOC)/nconf.c $(CONF_LOC)/zconf.tab.c \
$(CONF_LOC)/nconf.gui.c \
-DCURSES_LOC="<curses.h>" -I$(CURSES_BUILD)/include \
-L$(CURSES_BUILD)/lib -lncurses -lmenu -lpanel
# nconf.o zconf.tab.o nconf.gui.o
wrs_release_defconfig: $(WRS_BASE_DIR)/../configs/wrs_release_defconfig
cp $^ $@
......@@ -22,3 +22,10 @@ menuconfig:
./mconf Kconfig
mv .config.old dot-config.old
mv .config dot-config
nconfig:
cp dot-config .config
./nconf Kconfig
mv .config.old dot-config.old
mv .config dot-config
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment