From 5c472fc895c32a189d574b338057164e95430825 Mon Sep 17 00:00:00 2001 From: nbd Date: Thu, 20 Apr 2006 20:17:34 +0000 Subject: add kconfig from linux 2.6 to scripts/config git-svn-id: svn://svn.openwrt.org/openwrt/branches/buildroot-ng/openwrt@3682 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- scripts/config/Makefile | 49 +++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 49 insertions(+) create mode 100644 scripts/config/Makefile (limited to 'scripts/config/Makefile') diff --git a/scripts/config/Makefile b/scripts/config/Makefile new file mode 100644 index 000000000..04e8330a0 --- /dev/null +++ b/scripts/config/Makefile @@ -0,0 +1,49 @@ +# =========================================================================== +# Kernel configuration targets +# These targets are used from top-level makefile + +# =========================================================================== +# Shared Makefile for the various kconfig executables: +# conf: Used for defconfig, oldconfig and related targets +# mconf: Used for the mconfig target. +# Utilizes the lxdialog package +# object files used by all kconfig flavours + +conf-objs := conf.o zconf.tab.o +mconf-objs := mconf.o zconf.tab.o + +clean-files := lkc_defs.h qconf.moc .tmp_qtcheck \ + .tmp_gtkcheck zconf.tab.c lex.zconf.c zconf.hash.c + +all: conf mconf lxdialog + +.PHONY: lxdialog +lxdialog: + $(MAKE) -C lxdialog + +conf: $(conf-objs) +mconf: $(mconf-objs) + +clean: + rm -f *.o $(clean-files) conf mconf + $(MAKE) -C lxdialog clean + +zconf.tab.o: lex.zconf.c zconf.hash.c + +kconfig_load.o: lkc_defs.h + +lkc_defs.h: $(src)/lkc_proto.h + sed < $< > $@ 's/P(\([^,]*\),.*/#define \1 (\*\1_p)/' + +zconf.tab.c: zconf.y +lex.zconf.c: zconf.l +zconf.hash.c: zconf.gperf + +%.tab.c: %.y + bison -l -b $* -p $(notdir $*) $< && cp $@ $@_shipped || cp $@_shipped $@ + +lex.%.c: %.l + flex -L -P$(notdir $*) -o$@ $< && cp $@ $@_shipped || cp $@_shipped $@ + +%.hash.c: %.gperf + gperf < $< > $@ && cp $@ $@_shipped || cp $@_shipped $@ -- cgit v1.2.3 From 451518eba5be299ae1ef004112a6ecdc3b2e26c0 Mon Sep 17 00:00:00 2001 From: nbd Date: Thu, 20 Apr 2006 21:00:14 +0000 Subject: modify the kconfig system for openwrt git-svn-id: svn://svn.openwrt.org/openwrt/branches/buildroot-ng/openwrt@3683 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- scripts/config/Makefile | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'scripts/config/Makefile') diff --git a/scripts/config/Makefile b/scripts/config/Makefile index 04e8330a0..a731a40e7 100644 --- a/scripts/config/Makefile +++ b/scripts/config/Makefile @@ -1,5 +1,5 @@ # =========================================================================== -# Kernel configuration targets +# OpenWrt configuration targets # These targets are used from top-level makefile # =========================================================================== @@ -40,10 +40,10 @@ lex.zconf.c: zconf.l zconf.hash.c: zconf.gperf %.tab.c: %.y - bison -l -b $* -p $(notdir $*) $< && cp $@ $@_shipped || cp $@_shipped $@ + cp $@_shipped $@ || bison -l -b $* -p $(notdir $*) $< lex.%.c: %.l - flex -L -P$(notdir $*) -o$@ $< && cp $@ $@_shipped || cp $@_shipped $@ + cp $@_shipped $@ || flex -L -P$(notdir $*) -o$@ $< %.hash.c: %.gperf - gperf < $< > $@ && cp $@ $@_shipped || cp $@_shipped $@ + cp $@_shipped $@ || gperf < $< > $@ -- cgit v1.2.3 From b3cdb08ef464853507b062ff976a284115606e30 Mon Sep 17 00:00:00 2001 From: florian Date: Wed, 2 Aug 2006 13:36:20 +0000 Subject: FreeBSD fix to generate the menuconfig properly git-svn-id: svn://svn.openwrt.org/openwrt/branches/buildroot-ng/openwrt@4396 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- scripts/config/Makefile | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'scripts/config/Makefile') diff --git a/scripts/config/Makefile b/scripts/config/Makefile index a731a40e7..6cdab2e0e 100644 --- a/scripts/config/Makefile +++ b/scripts/config/Makefile @@ -9,6 +9,15 @@ # Utilizes the lxdialog package # object files used by all kconfig flavours + +# Platform specific fixes +# +# FreeBSD +ifeq ($(shell uname -s),FreeBSD) +export CFLAGS+=-I/usr/local/include +export LDFLAGS+=-L/usr/local/lib -lintl +endif + conf-objs := conf.o zconf.tab.o mconf-objs := mconf.o zconf.tab.o -- cgit v1.2.3 From aa765b43a2b56a8e063a8eeb9952a429542ea5c7 Mon Sep 17 00:00:00 2001 From: nbd Date: Wed, 27 Sep 2006 12:09:30 +0000 Subject: disable gettext in menuconfig git-svn-id: svn://svn.openwrt.org/openwrt/branches/buildroot-ng/openwrt@4863 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- scripts/config/Makefile | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'scripts/config/Makefile') diff --git a/scripts/config/Makefile b/scripts/config/Makefile index 6cdab2e0e..5ef8b5488 100644 --- a/scripts/config/Makefile +++ b/scripts/config/Makefile @@ -13,10 +13,7 @@ # Platform specific fixes # # FreeBSD -ifeq ($(shell uname -s),FreeBSD) -export CFLAGS+=-I/usr/local/include -export LDFLAGS+=-L/usr/local/lib -lintl -endif +export CFLAGS+=-DKBUILD_NO_NLS conf-objs := conf.o zconf.tab.o mconf-objs := mconf.o zconf.tab.o -- cgit v1.2.3