summaryrefslogtreecommitdiff
path: root/mk/eglibc-options-parse.mk
blob: 78df89bcf5ca9bd3f4ef8467d4996b0991d9daa3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
#########################################################################################
# GAYE Abdoulaye Walsimou, <walsimou@walsimou.com>
# 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, <walsimou@walsimou.com>
# \date         May 2009
#########################################################################################

ifeq ($(CONFIG_EMBTK_EGLIBC_VERSION_2_10),y)
include $(EMBTK_ROOT)/mk/eglibc-2.10-options.mk
endif

ifeq ($(CONFIG_EMBTK_EGLIBC_VERSION_2_9),y)
include $(EMBTK_ROOT)/mk/eglibc-2.9-options.mk
endif

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