######################################################################################### # GAYE Abdoulaye Walsimou, # Copyright(C) 2009 GAYE Abdoulaye Walsimou. All rights reserved. # # This program is free software; you can distribute it and/or modify it # under the terms of the GNU General Public License # (Version 2 or later) published by the Free Software Foundation. # # This program is distributed in the hope it will be useful, but WITHOUT # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License # for more details. # # You should have received a copy of the GNU General Public License along # with this program; if not, write to the Free Software Foundation, Inc., # 59 Temple Place - Suite 330, Boston MA 02111-1307, USA. ######################################################################################### # # \file eglibc-options-parse.mk # \brief eglibc-options-parse.mk. Here we define a target which parses eglibc # \brief options from .config. # \author GAYE Abdoulaye Walsimou, # \date May 2009 ######################################################################################### EGLIBC_OPTIONS := OPTION_EGLIBC_BACKTRACE OPTION_EGLIBC_BSD OPTION_EGLIBC_CXX_TESTS \ OPTION_EGLIBC_LIBM OPTION_EGLIBC_CHARSETS OPTION_EGLIBC_DB_ALIASES \ OPTION_EGLIBC_ENVZ OPTION_EGLIBC_FCVT OPTION_EGLIBC_FMTMSG \ OPTION_EGLIBC_FSTAB OPTION_EGLIBC_FTRAVERSE OPTION_EGLIBC_INET \ OPTION_EGLIBC_ADVANCED_INET6 OPTION_EGLIBC_SUNRPC OPTION_EGLIBC_NIS \ OPTION_EGLIBC_RCMD OPTION_EGLIBC_LOCALES OPTION_EGLIBC_NSSWITCH \ OPTION_EGLIBC_SPAWN OPTION_EGLIBC_STREAMS OPTION_EGLIBC_UTMP \ OPTION_EGLIBC_GETLOGIN OPTION_EGLIBC_UTMPX OPTION_EGLIBC_WORDEXP \ OPTION_POSIX_C_LANG_WIDE_CHAR OPTION_EGLIBC_LOCALE_CODE \ OPTION_EGLIBC_CATGETS OPTION_POSIX_WIDE_CHAR_DEVICE_IO \ OPTION_POSIX_REGEXP OPTION_POSIX_REGEXP_GLIBC EGLIBC_OPTIONS_PARSE: @echo "####################################### EmbToolkit ######################################" @echo "# Parsing eglibc options ... #" @echo "#########################################################################################" @for i in $(EGLIBC_OPTIONS); \ do \ echo "Does eglibc will support $$i?"; \ if grep -q CONFIG_$$i=y $(EMBTK_ROOT)/.config ; \ then \ echo "You said yes"; \ echo "$$i = y" >> $(EGLIBC_HEADERS_BUILD_DIR)/option-groups.config; \ echo "$$i = y" >> $(EGLIBC_BUILD_DIR)/option-groups.config; \ else \ echo "You said no"; \ echo "$$i = n" >> $(EGLIBC_HEADERS_BUILD_DIR)/option-groups.config; \ echo "$$i = n" >> $(EGLIBC_BUILD_DIR)/option-groups.config; \ fi \ done