From 91ecd00cc83cf701fe7f73b1aa244c27174e8386 Mon Sep 17 00:00:00 2001 From: Kacper Date: Tue, 16 Dec 2025 00:36:30 +0100 Subject: Add init prog, chroot syscall and fix menuconfig build --- scripts/kconfig/makefile | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) (limited to 'scripts/kconfig/makefile') diff --git a/scripts/kconfig/makefile b/scripts/kconfig/makefile index 6bfd24a1..bab0ef36 100644 --- a/scripts/kconfig/makefile +++ b/scripts/kconfig/makefile @@ -2,10 +2,8 @@ CC ?= gcc LEX ?= flex YACC ?= bison -VPATH := $(srctree)/scripts/kconfig - -CFLAGS := -Iinclude -LDFLAGS := -lncurses +CFLAGS += -Iinclude +LDFLAGS += -lcurses common-obj := confdata.o expr.o lexer.lex.o menu.o parser.tab.o \ preprocess.o symbol.o util.o @@ -17,7 +15,7 @@ lxdl-obj := checklist.o inputbox.o menubox.o \ conf: conf.o $(common-obj) mconf: mconf.o $(common-obj) $(lxdl-obj) nconf: nconf.o nconf.gui.o mnconf-common.o $(common-obj) -lexer.lex.c: lexer.l +lexer.lex.c: lexer.l | parser.tab.h parser.tab.c parser.tab.h: parser.y %.lex.c: %.l @@ -27,13 +25,14 @@ parser.tab.c parser.tab.h: parser.y $(YACC) -d -o parser.tab.c $< syncconfig: conf - scripts/kconfig/conf --syncconfig Kconfig .config + ./conf --syncconfig Kconfig $(srctree)/.config menuconfig: mconf - scripts/kconfig/mconf Kconfig + ./mconf $(srctree)/Kconfig + [ -f .config ] && mv -f .config $(srctree) || true clean: - rm -f *.o lexer.lex.c parser.tab.c parser.tab.h conf mconf nconf + rm -f *.o *.lex.c parser.tab.c parser.tab.h conf mconf nconf %.o: %.c $(CC) $(CFLAGS) -c -o $@ $< -- cgit v1.2.3