From 61b0556a800f5df9a0997f80c0e2316efec6e17e Mon Sep 17 00:00:00 2001 From: AceVest Date: Wed, 20 Jun 2018 23:52:48 +0800 Subject: [PATCH] ... --- rtos/components/Makefile.projbuild | 7 + rtos/make/makefile | 14 +- rtos/make/project.mk | 8 + rtos/make/sdkconfig | 4 + rtos/tools/kconfig/Kconfig | 1 + rtos/tools/kconfig/Makefile | 333 +++ rtos/tools/kconfig/POTFILES.in | 12 + rtos/tools/kconfig/check.sh | 13 + rtos/tools/kconfig/conf | Bin 0 -> 137456 bytes rtos/tools/kconfig/conf.c | 723 +++++ rtos/tools/kconfig/conf.d | 130 + rtos/tools/kconfig/confdata.c | 1246 ++++++++ rtos/tools/kconfig/expr.c | 1206 ++++++++ rtos/tools/kconfig/expr.h | 238 ++ rtos/tools/kconfig/gconf.c | 1521 ++++++++++ rtos/tools/kconfig/gconf.glade | 661 +++++ rtos/tools/kconfig/images.c | 326 +++ rtos/tools/kconfig/kconfig-language.txt | 556 ++++ rtos/tools/kconfig/kxgettext.c | 235 ++ rtos/tools/kconfig/list.h | 131 + rtos/tools/kconfig/lkc.h | 187 ++ rtos/tools/kconfig/lkc_proto.h | 52 + rtos/tools/kconfig/lxdialog/.gitignore | 4 + rtos/tools/kconfig/lxdialog/BIG.FAT.WARNING | 4 + rtos/tools/kconfig/lxdialog/check-lxdialog.sh | 99 + rtos/tools/kconfig/lxdialog/checklist.c | 332 +++ rtos/tools/kconfig/lxdialog/checklist.d | 137 + rtos/tools/kconfig/lxdialog/dialog.h | 257 ++ rtos/tools/kconfig/lxdialog/inputbox.c | 301 ++ rtos/tools/kconfig/lxdialog/inputbox.d | 137 + rtos/tools/kconfig/lxdialog/menubox.c | 437 +++ rtos/tools/kconfig/lxdialog/menubox.d | 137 + rtos/tools/kconfig/lxdialog/textbox.c | 408 +++ rtos/tools/kconfig/lxdialog/textbox.d | 137 + rtos/tools/kconfig/lxdialog/util.c | 713 +++++ rtos/tools/kconfig/lxdialog/util.d | 138 + rtos/tools/kconfig/lxdialog/yesno.c | 114 + rtos/tools/kconfig/lxdialog/yesno.d | 137 + rtos/tools/kconfig/mconf | Bin 0 -> 183944 bytes rtos/tools/kconfig/mconf.c | 1047 +++++++ rtos/tools/kconfig/mconf.d | 152 + rtos/tools/kconfig/menu.c | 697 +++++ rtos/tools/kconfig/merge_config.sh | 170 ++ rtos/tools/kconfig/nconf.c | 1561 ++++++++++ rtos/tools/kconfig/nconf.gui.c | 656 +++++ rtos/tools/kconfig/nconf.h | 96 + rtos/tools/kconfig/qconf.cc | 1870 ++++++++++++ rtos/tools/kconfig/qconf.h | 330 +++ rtos/tools/kconfig/streamline_config.pl | 647 +++++ rtos/tools/kconfig/symbol.c | 1378 +++++++++ rtos/tools/kconfig/util.c | 147 + rtos/tools/kconfig/zconf.gperf | 47 + rtos/tools/kconfig/zconf.hash.c | 249 ++ rtos/tools/kconfig/zconf.l | 390 +++ rtos/tools/kconfig/zconf.lex.c | 2556 ++++++++++++++++ rtos/tools/kconfig/zconf.tab.c | 2564 +++++++++++++++++ rtos/tools/kconfig/zconf.tab.d | 137 + rtos/tools/kconfig/zconf.y | 745 +++++ 58 files changed, 26534 insertions(+), 1 deletion(-) create mode 100644 rtos/components/Makefile.projbuild create mode 100644 rtos/make/sdkconfig create mode 100644 rtos/tools/kconfig/Kconfig create mode 100644 rtos/tools/kconfig/Makefile create mode 100644 rtos/tools/kconfig/POTFILES.in create mode 100755 rtos/tools/kconfig/check.sh create mode 100755 rtos/tools/kconfig/conf create mode 100644 rtos/tools/kconfig/conf.c create mode 100644 rtos/tools/kconfig/conf.d create mode 100644 rtos/tools/kconfig/confdata.c create mode 100644 rtos/tools/kconfig/expr.c create mode 100644 rtos/tools/kconfig/expr.h create mode 100644 rtos/tools/kconfig/gconf.c create mode 100644 rtos/tools/kconfig/gconf.glade create mode 100644 rtos/tools/kconfig/images.c create mode 100644 rtos/tools/kconfig/kconfig-language.txt create mode 100644 rtos/tools/kconfig/kxgettext.c create mode 100644 rtos/tools/kconfig/list.h create mode 100644 rtos/tools/kconfig/lkc.h create mode 100644 rtos/tools/kconfig/lkc_proto.h create mode 100644 rtos/tools/kconfig/lxdialog/.gitignore create mode 100644 rtos/tools/kconfig/lxdialog/BIG.FAT.WARNING create mode 100755 rtos/tools/kconfig/lxdialog/check-lxdialog.sh create mode 100644 rtos/tools/kconfig/lxdialog/checklist.c create mode 100644 rtos/tools/kconfig/lxdialog/checklist.d create mode 100644 rtos/tools/kconfig/lxdialog/dialog.h create mode 100644 rtos/tools/kconfig/lxdialog/inputbox.c create mode 100644 rtos/tools/kconfig/lxdialog/inputbox.d create mode 100644 rtos/tools/kconfig/lxdialog/menubox.c create mode 100644 rtos/tools/kconfig/lxdialog/menubox.d create mode 100644 rtos/tools/kconfig/lxdialog/textbox.c create mode 100644 rtos/tools/kconfig/lxdialog/textbox.d create mode 100644 rtos/tools/kconfig/lxdialog/util.c create mode 100644 rtos/tools/kconfig/lxdialog/util.d create mode 100644 rtos/tools/kconfig/lxdialog/yesno.c create mode 100644 rtos/tools/kconfig/lxdialog/yesno.d create mode 100755 rtos/tools/kconfig/mconf create mode 100644 rtos/tools/kconfig/mconf.c create mode 100644 rtos/tools/kconfig/mconf.d create mode 100644 rtos/tools/kconfig/menu.c create mode 100755 rtos/tools/kconfig/merge_config.sh create mode 100644 rtos/tools/kconfig/nconf.c create mode 100644 rtos/tools/kconfig/nconf.gui.c create mode 100644 rtos/tools/kconfig/nconf.h create mode 100644 rtos/tools/kconfig/qconf.cc create mode 100644 rtos/tools/kconfig/qconf.h create mode 100755 rtos/tools/kconfig/streamline_config.pl create mode 100644 rtos/tools/kconfig/symbol.c create mode 100644 rtos/tools/kconfig/util.c create mode 100644 rtos/tools/kconfig/zconf.gperf create mode 100644 rtos/tools/kconfig/zconf.hash.c create mode 100644 rtos/tools/kconfig/zconf.l create mode 100644 rtos/tools/kconfig/zconf.lex.c create mode 100644 rtos/tools/kconfig/zconf.tab.c create mode 100644 rtos/tools/kconfig/zconf.tab.d create mode 100644 rtos/tools/kconfig/zconf.y diff --git a/rtos/components/Makefile.projbuild b/rtos/components/Makefile.projbuild new file mode 100644 index 0000000..ee62930 --- /dev/null +++ b/rtos/components/Makefile.projbuild @@ -0,0 +1,7 @@ +$(SECURE_BOOT_SIGNING_KEY): + @echo "Need to generate secure boot signing key." + @echo "One way is to run this command:" + @echo "$(ESPSECUREPY) generate_signing_key $@" + @echo "Keep key file safe after generating." + @echo "(See secure boot documentation for risks & alternatives.)" + @exit 1 diff --git a/rtos/make/makefile b/rtos/make/makefile index a3388c7..350cb35 100644 --- a/rtos/make/makefile +++ b/rtos/make/makefile @@ -2,11 +2,23 @@ include project.mk .PHONY: test +COMPONENT_PATHS := $(foreach comp,$(COMPONENTS),$(firstword $(foreach cd,$(COMPONENT_DIRS),$(wildcard $(dir $(cd))$(comp) $(cd)/$(comp))))) test: - echo $(OS) + @echo $(fuck) + @echo $(COMPONENT_PATHS) @echo $(wildcard $(RTOS_PATH)) @echo $(realpath $(wildcard $(RTOS_PATH))) @echo $(COMPONENTS) @echo $(COMPONENT_DIRS) @echo $(foreach cd,$(COMPONENT_DIRS), $(wildcard $(cd)/*/component.mk)) +define RunConf + mkdir -p $(BUILD_DIR_BASE)/include/config + cd $(BUILD_DIR_BASE); KCONFIG_AUTOHEADER=$(abspath $(BUILD_DIR_BASE)/include/sdkconfig.h) \ + COMPONENT_KCONFIGS="$(COMPONENT_KCONFIGS)" KCONFIG_CONFIG=$(SDKCONFIG) \ + COMPONENT_KCONFIGS_PROJBUILD="$(COMPONENT_KCONFIGS_PROJBUILD)" \ + $(KCONFIG_TOOL_DIR)/$1 $(RTOS_PATH)/Kconfig +endef + +menuconfig: $(KCONFIG_TOOL_DIR)/mconf + $(call RunConf,mconf) diff --git a/rtos/make/project.mk b/rtos/make/project.mk index 7423e9f..350c0d9 100644 --- a/rtos/make/project.mk +++ b/rtos/make/project.mk @@ -41,3 +41,11 @@ COMPONENTS := $(dir $(foreach cd,$(COMPONENT_DIRS), \ export COMPONENTS #endif + +COMPONENT_PATHS := $(foreach comp,$(COMPONENTS),$(firstword $(foreach cd,$(COMPONENT_DIRS),$(wildcard $(dir $(cd))$(comp) $(cd)/$(comp))))) +COMPONENT_KCONFIGS := $(foreach component,$(COMPONENT_PATHS),$(wildcard $(component)/Kconfig)) +COMPONENT_KCONFIGS_PROJBUILD := $(foreach component,$(COMPONENT_PATHS),$(wildcard $(component)/Kconfig.projbuild)) + +SDKCONFIG ?= $(PROJECT_PATH)/sdkconfig + +KCONFIG_TOOL_DIR=$(RTOS_PATH)/tools/kconfig diff --git a/rtos/make/sdkconfig b/rtos/make/sdkconfig new file mode 100644 index 0000000..818afe4 --- /dev/null +++ b/rtos/make/sdkconfig @@ -0,0 +1,4 @@ +# +# Automatically generated file; DO NOT EDIT. +# Linux Kernel Configuration +# diff --git a/rtos/tools/kconfig/Kconfig b/rtos/tools/kconfig/Kconfig new file mode 100644 index 0000000..8b13789 --- /dev/null +++ b/rtos/tools/kconfig/Kconfig @@ -0,0 +1 @@ + diff --git a/rtos/tools/kconfig/Makefile b/rtos/tools/kconfig/Makefile new file mode 100644 index 0000000..2454e47 --- /dev/null +++ b/rtos/tools/kconfig/Makefile @@ -0,0 +1,333 @@ +# =========================================================================== +# Kernel configuration targets +# These targets are used from top-level makefile + +PHONY += xconfig gconfig menuconfig config silentoldconfig \ + localmodconfig localyesconfig clean + +ifdef KBUILD_KCONFIG +Kconfig := $(KBUILD_KCONFIG) +else +Kconfig := Kconfig +endif + +ifeq ($(quiet),silent_) +silent := -s +endif + +# We need this, in case the user has it in its environment +unexport CONFIG_ + +# Unset some environment variables set in the project environment +CFLAGS := +CPPFLAGS := +LDFLAGS := + +# Workaround for a bug on Windows if the mingw32 host compilers +# are installed in addition to the MSYS ones. The kconfig tools +# need to be compiled using the MSYS compiler. +# +# See https://github.com/espressif/esp-idf/issues/1296 +ifdef MSYSTEM +ifeq ("$(MSYSTEM)", "MINGW32") +ifeq ("$(CC)", "cc") +CC := /usr/bin/gcc +endif +ifeq ("$(LD)", "ld") +LD := /usr/bin/ld +endif +endif # MING32 +endif # MSYSTEM + +default: mconf conf + +xconfig: qconf + $< $(silent) $(Kconfig) + +gconfig: gconf + $< $(silent) $(Kconfig) + +menuconfig: mconf + $< $(silent) $(Kconfig) + +config: conf + $< $(silent) --oldaskconfig $(Kconfig) + +nconfig: nconf + $< $(silent) $(Kconfig) + +silentoldconfig: conf + mkdir -p include/config include/generated + $< $(silent) --$@ $(Kconfig) + +localyesconfig localmodconfig: streamline_config.pl conf + mkdir -p include/config include/generated + perl $< --$@ . $(Kconfig) > .tmp.config + if [ -f .config ]; then \ + cmp -s .tmp.config .config || \ + (mv -f .config .config.old.1; \ + mv -f .tmp.config .config; \ + conf $(silent) --silentoldconfig $(Kconfig); \ + mv -f .config.old.1 .config.old) \ + else \ + mv -f .tmp.config .config; \ + conf $(silent) --silentoldconfig $(Kconfig); \ + fi + rm -f .tmp.config + + +# These targets map 1:1 to the commandline options of 'conf' +simple-targets := oldconfig allnoconfig allyesconfig allmodconfig \ + alldefconfig randconfig listnewconfig olddefconfig +PHONY += $(simple-targets) + +$(simple-targets): conf + $< $(silent) --$@ $(Kconfig) + +PHONY += oldnoconfig savedefconfig defconfig + +# oldnoconfig is an alias of olddefconfig, because people already are dependent +# on its behavior (sets new symbols to their default value but not 'n') with the +# counter-intuitive name. +oldnoconfig: olddefconfig + +savedefconfig: conf + $< $(silent) --$@=defconfig $(Kconfig) + +defconfig: conf +ifeq ($(KBUILD_DEFCONFIG),) + $< $(silent) --defconfig $(Kconfig) +else +ifneq ($(wildcard $(srctree)/arch/$(SRCARCH)/configs/$(KBUILD_DEFCONFIG)),) + @$(kecho) "*** Default configuration is based on '$(KBUILD_DEFCONFIG)'" + $< $(silent) --defconfig=arch/$(SRCARCH)/configs/$(KBUILD_DEFCONFIG) $(Kconfig) +else + @$(kecho) "*** Default configuration is based on target '$(KBUILD_DEFCONFIG)'" + $(MAKE) -f $(srctree)/Makefile $(KBUILD_DEFCONFIG) +endif +endif + +%_defconfig: conf + $< $(silent) --defconfig=arch/$(SRCARCH)/configs/$@ $(Kconfig) + +configfiles=$(wildcard $(srctree)/kernel/configs/$@ $(srctree)/arch/$(SRCARCH)/configs/$@) + +%.config: conf + $(if $(call configfiles),, $(error No configuration exists for this target on this architecture)) + $(CONFIG_SHELL) $(srctree)/scripts/kconfig/merge_config.sh -m .config $(configfiles) + +yes "" | $(MAKE) -f $(srctree)/Makefile oldconfig + +PHONY += kvmconfig +kvmconfig: kvm_guest.config + @: + +PHONY += xenconfig +xenconfig: xen.config + @: + +PHONY += tinyconfig +tinyconfig: + $(MAKE) -f $(srctree)/Makefile allnoconfig tiny.config + +# Help text used by make help +help: + @echo ' config - Update current config utilising a line-oriented program' + @echo ' nconfig - Update current config utilising a ncurses menu based' + @echo ' program' + @echo ' menuconfig - Update current config utilising a menu based program' + @echo ' xconfig - Update current config utilising a Qt based front-end' + @echo ' gconfig - Update current config utilising a GTK+ based front-end' + @echo ' oldconfig - Update current config utilising a provided .config as base' + @echo ' localmodconfig - Update current config disabling modules not loaded' + @echo ' localyesconfig - Update current config converting local mods to core' + @echo ' silentoldconfig - Same as oldconfig, but quietly, additionally update deps' + @echo ' defconfig - New config with default from ARCH supplied defconfig' + @echo ' savedefconfig - Save current config as ./defconfig (minimal config)' + @echo ' allnoconfig - New config where all options are answered with no' + @echo ' allyesconfig - New config where all options are accepted with yes' + @echo ' allmodconfig - New config selecting modules when possible' + @echo ' alldefconfig - New config with all symbols set to default' + @echo ' randconfig - New config with random answer to all options' + @echo ' listnewconfig - List new options' + @echo ' olddefconfig - Same as silentoldconfig but sets new symbols to their' + @echo ' default value' + @echo ' kvmconfig - Enable additional options for kvm guest kernel support' + @echo ' xenconfig - Enable additional options for xen dom0 and guest kernel support' + @echo ' tinyconfig - Configure the tiniest possible kernel' + +# lxdialog stuff +check-lxdialog := lxdialog/check-lxdialog.sh + +# Use recursively expanded variables so we do not call gcc unless +# we really need to do so. (Do not call gcc as part of make mrproper) +CFLAGS += $(shell $(CONFIG_SHELL) $(check-lxdialog) -ccflags) \ + -DLOCALE -MD + +# =========================================================================== +# Shared Makefile for the various kconfig executables: +# conf: Used for defconfig, oldconfig and related targets +# nconf: Used for the nconfig target. +# Utilizes ncurses +# mconf: Used for the menuconfig target +# Utilizes the lxdialog package +# qconf: Used for the xconfig target +# Based on Qt which needs to be installed to compile it +# gconf: Used for the gconfig target +# Based on GTK+ which needs to be installed to compile it +# object files used by all kconfig flavours + +lxdialog := lxdialog/checklist.o lxdialog/util.o lxdialog/inputbox.o +lxdialog += lxdialog/textbox.o lxdialog/yesno.o lxdialog/menubox.o + +conf-objs := conf.o zconf.tab.o +mconf-objs := mconf.o zconf.tab.o $(lxdialog) +nconf-objs := nconf.o zconf.tab.o nconf.gui.o +kxgettext-objs := kxgettext.o zconf.tab.o +qconf-cxxobjs := qconf.o +qconf-objs := zconf.tab.o +gconf-objs := gconf.o zconf.tab.o + +hostprogs-y := conf nconf mconf kxgettext qconf gconf + +all-objs := $(conf-objs) $(mconf-objs) $(lxdialog) +all-deps := $(all-objs:.o=.d) + +clean-files := qconf.moc .tmp_qtcheck .tmp_gtkcheck +clean-files += zconf.tab.c zconf.lex.c zconf.hash.c gconf.glade.h +clean-files += $(all-objs) $(all-deps) conf mconf + +# Check that we have the required ncurses stuff installed for lxdialog (menuconfig) +PHONY += dochecklxdialog +$(addprefix ,$(lxdialog)): dochecklxdialog +dochecklxdialog: + $(CONFIG_SHELL) $(check-lxdialog) -check $(CC) $(CFLAGS) $(LOADLIBES_mconf) + +always := dochecklxdialog + +# Add environment specific flags +EXTRACFLAGS += $(shell $(CONFIG_SHELL) $(srctree)/$(src)/check.sh $(CC) $(CFLAGS)) + +# generated files seem to need this to find local include files +CFLAGS_zconf.lex.o := -I$(src) +CFLAGS_zconf.tab.o := -I$(src) + +LEX_PREFIX_zconf := zconf +YACC_PREFIX_zconf := zconf + +LOADLIBES_qconf = $(KC_QT_LIBS) +CXXFLAGS_qconf.o = $(KC_QT_CFLAGS) + +LOADLIBES_gconf = `pkg-config --libs gtk+-2.0 gmodule-2.0 libglade-2.0` +CFLAGS_gconf.o = `pkg-config --cflags gtk+-2.0 gmodule-2.0 libglade-2.0` \ + -Wno-missing-prototypes + +LOADLIBES_mconf = $(shell $(CONFIG_SHELL) $(check-lxdialog) -ldflags $(CC)) + +LOADLIBES_conf = $(LOADLIBES_mconf) + +LOADLIBES_nconf = $(shell \ + pkg-config --libs menuw panelw ncursesw 2>/dev/null \ + || pkg-config --libs menu panel ncurses 2>/dev/null \ + || echo "-lmenu -lpanel -lncurses" ) + +ifeq ("$(OS)","Windows_NT") +# Windows toolchains don't seem to count libintl +# as a system library +LOADLIBES_mconf += -lintl +LOADLIBES_nconf += -lintl +endif + +qconf.o: .tmp_qtcheck + +ifeq ($(MAKECMDGOALS),xconfig) +.tmp_qtcheck: $(src)/Makefile +-include .tmp_qtcheck + +# Qt needs some extra effort... +.tmp_qtcheck: + @set -e; $(kecho) " CHECK qt"; \ + if pkg-config --exists Qt5Core; then \ + cflags="-std=c++11 -fPIC `pkg-config --cflags Qt5Core Qt5Gui Qt5Widgets`"; \ + libs=`pkg-config --libs Qt5Core Qt5Gui Qt5Widgets`; \ + moc=`pkg-config --variable=host_bins Qt5Core`/moc; \ + elif pkg-config --exists QtCore; then \ + cflags=`pkg-config --cflags QtCore QtGui`; \ + libs=`pkg-config --libs QtCore QtGui`; \ + moc=`pkg-config --variable=moc_location QtCore`; \ + else \ + echo >&2 "*"; \ + echo >&2 "* Could not find Qt via pkg-config."; \ + echo >&2 "* Please install either Qt 4.8 or 5.x. and make sure it's in PKG_CONFIG_PATH"; \ + echo >&2 "*"; \ + exit 1; \ + fi; \ + echo "KC_QT_CFLAGS=$$cflags" > $@; \ + echo "KC_QT_LIBS=$$libs" >> $@; \ + echo "KC_QT_MOC=$$moc" >> $@ +endif + +gconf.o: .tmp_gtkcheck + +ifeq ($(MAKECMDGOALS),gconfig) +-include .tmp_gtkcheck + +# GTK+ needs some extra effort, too... +.tmp_gtkcheck: + @if `pkg-config --exists gtk+-2.0 gmodule-2.0 libglade-2.0`; then \ + if `pkg-config --atleast-version=2.0.0 gtk+-2.0`; then \ + touch $@; \ + else \ + echo >&2 "*"; \ + echo >&2 "* GTK+ is present but version >= 2.0.0 is required."; \ + echo >&2 "*"; \ + false; \ + fi \ + else \ + echo >&2 "*"; \ + echo >&2 "* Unable to find the GTK+ installation. Please make sure that"; \ + echo >&2 "* the GTK+ 2.0 development package is correctly installed..."; \ + echo >&2 "* You need gtk+-2.0, glib-2.0 and libglade-2.0."; \ + echo >&2 "*"; \ + false; \ + fi +endif + +zconf.tab.o: zconf.lex.c zconf.hash.c + +qconf.o: qconf.moc + +quiet_cmd_moc = MOC $@ + cmd_moc = $(KC_QT_MOC) -i $< -o $@ + +%.moc: $(src)/%.h .tmp_qtcheck + $(call cmd,moc) + +# Extract gconf menu items for i18n support +gconf.glade.h: gconf.glade + intltool-extract --type=gettext/glade --srcdir=$(srctree) \ + gconf.glade + + +mconf: $(mconf-objs) + $(CC) -o $@ $(mconf-objs) $(LOADLIBES_mconf) + +conf: $(conf-objs) + $(CC) -o $@ $(conf-objs) $(LOADLIBES_conf) + +zconf.tab.c: zconf.lex.c + +zconf.lex.c: zconf.l + flex -L -P zconf -o zconf.lex.c zconf.l + +zconf.hash.c: zconf.gperf +# strip CRs on Windows systems where gperf will otherwise barf on them + sed -E "s/\\x0D$$//" zconf.gperf | gperf -t --output-file zconf.hash.c -a -C -E -g -k '1,3,$$' -p -t + +zconf.tab.c: zconf.y + bison -t -l -p zconf -o zconf.tab.c zconf.y + +clean: + rm -f $(clean-files) + +-include $(all-deps) + diff --git a/rtos/tools/kconfig/POTFILES.in b/rtos/tools/kconfig/POTFILES.in new file mode 100644 index 0000000..9674573 --- /dev/null +++ b/rtos/tools/kconfig/POTFILES.in @@ -0,0 +1,12 @@ +scripts/kconfig/lxdialog/checklist.c +scripts/kconfig/lxdialog/inputbox.c +scripts/kconfig/lxdialog/menubox.c +scripts/kconfig/lxdialog/textbox.c +scripts/kconfig/lxdialog/util.c +scripts/kconfig/lxdialog/yesno.c +scripts/kconfig/mconf.c +scripts/kconfig/conf.c +scripts/kconfig/confdata.c +scripts/kconfig/gconf.c +scripts/kconfig/gconf.glade.h +scripts/kconfig/qconf.cc diff --git a/rtos/tools/kconfig/check.sh b/rtos/tools/kconfig/check.sh new file mode 100755 index 0000000..55b79ba --- /dev/null +++ b/rtos/tools/kconfig/check.sh @@ -0,0 +1,13 @@ +#!/bin/sh +# Needed for systems without gettext +$* -x c -o /dev/null - > /dev/null 2>&1 << EOF +#include +int main() +{ + gettext(""); + return 0; +} +EOF +if [ ! "$?" -eq "0" ]; then + echo -DKBUILD_NO_NLS; +fi diff --git a/rtos/tools/kconfig/conf b/rtos/tools/kconfig/conf new file mode 100755 index 0000000000000000000000000000000000000000..71aa412945be61f2ee6e558b7fefd37085f71e65 GIT binary patch literal 137456 zcmeFadwf*Y_5VEqj>b!zcu9-*c!z2gEKw9jgEBf=qIii~Z>V?|6@^r+je?Vr9FC(@ zOQqHe)>^gRXe$=2Ku{zBZHX0YT4@`Vwr48Z=+|nrD$o0~_Bk_?fd0O(=k+}QJdb(3 zPR`kTuf5jVYp=cb+Sgh2$vdBKnn+X(OeCfcNF)-~JRO@P61hYzUx~!_JQTj#N!p)_phRFaHApN83KU`6HZQ_c5+`3%iq=yOB9B;gvSF*_BUa|)C;CfjRL&- z`sU8!o3_8h5N{_9J%3Zy5gEkt~h_fC0AT{rG@*}@7yI0-#Jk} zh5PdqCD}`QGR^d4?3k0sl%=2#R%#pAGtm{w7Sg=*p7RgugGo>WIH#5xm0v@s&572@@ur`(^yq zNBAy|gr#sfK9#dEW{&rU_1c%e`Oi7|bw&6T{_=V~|J+o)=XCow+4)9E7(*fXykT!((Gyz6`^9XlSu<5T> zBzm?;SX&rOTIX98iJyUJE-|MOK~jyI){S3cR<@;}iT$)hw=xj|TQo+54NUoo-i>M0jY*}rc85&Of+CFcR#Ki{AO z*CMToKKV|%cFNQXF5mx%VkYwK%_BZ1zfqBxjf{py;RJH+0kg9q*o%@qKU6eV3Eni zmD!Jp8e_y33?et2PV-AaP6>Wa;_F0E7c{9=*j5>X<}mb;kgL`-(1i&SV&J|0b8<@pEg1e{>O9@0m*QZU;{$Xz0mIfVrm7D4e(U@e*B~S>rW_~b}Ur-O{MW~0tE>&td!tpQ_9zeQ_A(eo;MD(9l z$BiIfq;SSx4r6yg--_kuRtxB2!X~Z2Ykxv|lPwJNbDbpl`Iq>gyzy~pI0%c*wtbcj zJwMlBi4XKk3@iQIGNrWa-Y=!?qihJ~Hp_Op5^E@ACfnRe{UN?Yc+K5}Q8fh78Ghq8 z2tq~F)FiF&8xnJkm8hxH$+)pplxM*j-hBo|VZz$AiNaH~{oFzl3bY5I*ik6j05Umd zo4X*aMX16LOxv5gP?%R~XyGX!Hri7~n`$AU2Qv|-;)F9u82+Kv*txX5^14_ddlGoJ zG3{$jCpTZboxzN9Ca}6t*wsZfyhL^JsDRd-P5}nNOyG@r92VL>qdLMtG~sz9`?