binutils/binutils: do not fwd declare struct stat (2.22).
For canadian cross to host i686-mingw32 fwd declaring
struct stat is not possible.
Instead #include <sys/stat.h>
Signed-off-by: Titus von Boxberg <titus@v9g.de>
Message-Id: <417a15d4277913841ddd.1353100974@tschetwerikow.boxberg.lan>
Patchwork-Id: 199733
1 # ===========================================================================
2 # crosstool-NG configuration targets
3 # These targets are used from top-level makefile
5 #-----------------------------------------------------------
6 # The configurators rules
8 configurators = menuconfig nconfig oldconfig defconfig olddefconfig
9 PHONY += $(configurators)
11 $(configurators): config_files
13 # We need CONF for savedefconfig in scripts/saveSample.sh
14 export CONF := $(CT_LIB_DIR)/kconfig/conf
15 MCONF := $(CT_LIB_DIR)/kconfig/mconf
16 NCONF := $(CT_LIB_DIR)/kconfig/nconf
19 @$(ECHO) " CONF $(KCONFIG_TOP)"
20 $(SILENT)$(MCONF) $(KCONFIG_TOP)
23 @$(ECHO) " CONF $(KCONFIG_TOP)"
24 $(SILENT)$(NCONF) $(KCONFIG_TOP)
27 @$(ECHO) " CONF $(KCONFIG_TOP)"
28 $(SILENT)$(CONF) --silent$@ $(KCONFIG_TOP)
32 $(SILENT)$(CONF) --savedefconfig=$${CONFIG-defconfig} $(KCONFIG_TOP)
36 $(SILENT)$(CONF) --defconfig=$${CONFIG-defconfig} $(KCONFIG_TOP)
38 # Always be silent, the stdout an be >.config
40 @$(awk) 'BEGIN { dump=0; } \
41 dump==1 && $$0~/^\[.....\][[:space:]]+(# |)CT_/ { \
43 gsub("^[[:space:]]",""); \
46 $$0~/Dumping user-supplied crosstool-NG configuration: done in/ { \
49 $$0~/Dumping user-supplied crosstool-NG configuration$$/ { \
53 #-----------------------------------------------------------
54 # Help text used by make help
57 @echo ' menuconfig - Update current config using a menu based program'
58 @echo ' oldconfig - Update current config using a provided .config as base'
59 @echo ' extractconfig - Extract to stdout the configuration items from a'
60 @echo ' build.log file piped to stdin'
61 @echo ' defconfig - Save current config as a mini-defconfig to $${CONFIG}'
62 @echo ' olddefconfig - Update config from a mini-defconfig $${CONFIG}'
63 @echo ' (default: $${CONFIG}=./defconfig)'