Move config files around, and clean up the mess in the config/ directory.
config/kernel/kernel_linux.in | 12 6 6 0 +-
config/paths.in | 89 0 89 0 ----------------
config/kernel_linux_headers_install.in | 168 0 168 0 ------------------------------
config/kernel.in | 2 1 1 0
config/kernel_linux_headers_copy.in | 42 0 42 0 --------
config/cc.in | 2 1 1 0
config/logging.in | 110 0 110 0 --------------------
config/build-behave.in | 45 0 45 0 --------
config/libc_uClibc.in | 101 0 101 0 ------------------
config/kernel_linux_headers_sanitised.in | 62 0 62 0 -----------
config/ct-behave.in | 82 0 82 0 ---------------
config/kernel_linux.in | 134 0 134 0 ------------------------
config/global.in | 10 5 5 0 +-
config/download_extract.in | 171 0 171 0 -------------------------------
config/cc_gcc.in | 130 0 130 0 ------------------------
config/libc_glibc.in | 124 0 124 0 ----------------------
config/libc.in | 4 2 2 0
17 files changed, 15 insertions(+), 1273 deletions(-)
2 # Makefile for crosstool-NG.
3 # Copyright 2006 Yann E. MORIN <yann.morin.1998@anciens.enib.fr>
5 # Don't print directory as we descend into them
6 # Don't use built-in rules, we know what we're doing
7 MAKEFLAGS += --no-print-directory --no-builtin-rules
9 # Some distributions (eg. Ubuntu) thought it wise to point /bin/sh to
10 # a truly POSIX-conforming shell, ash in this case. This is not so good
11 # as we, smart (haha!) developers (as smart we ourselves think we are),
12 # got used to bashisms, and are enclined to easiness... So force use of
13 # bash. (Note: this is ugly, but ./configure checks for it).
14 export SHELL=/bin/bash
16 # This is where ct-ng is.
17 # Don't bother to change it other than with a new ./configure!
18 CT_NG:=@@CT_BINDIR@@/ct-ng
20 export CT_TOP_DIR:=$(shell pwd)
21 export CT_LIB_DIR:=@@CT_LIBDIR@@
22 export CT_DOC_DIR:=@@CT_DOCDIR@@
24 # This is crosstool-NG version string
25 export CT_VERSION:=$(shell cat $(CT_LIB_DIR)/.version)
27 export CT_STOP:=$(STOP)
28 export CT_RESTART:=$(RESTART)
34 HOST_CC := gcc -funsigned-char
37 help:: help-head help-config help-samples help-build help-clean help-distrib help-env help-tail
40 @echo 'Available actions:'
44 @echo 'Configuration actions:'
48 @echo 'Preconfigured toolchains:'
52 @echo 'Build actions (#: force number of // jobs):'
56 @echo 'Clean actions:'
60 @echo 'Distribution actions:'
64 @echo 'Environement variables (see @@CT_DOCDIR@@/overview.txt):'
68 @echo 'Execute "$(CT_NG) config" or "$(CT_NG) menuconfig" to configure crosstool-NG'
69 @echo 'Execute "$(CT_NG) build" to build your toolchain'
70 @echo 'Execute "$(CT_NG) version" to see the version'
71 @echo 'See "man 1 ct-ng" for some help as well'
76 @echo ' build[.#] - Build the toolchain'
79 @echo ' clean - Remove generated files'
80 @echo ' distclean - Remove generated files, configuration and build directories'
82 include $(CT_LIB_DIR)/kconfig/kconfig.mk
83 include $(CT_LIB_DIR)/steps.mk
84 include $(CT_LIB_DIR)/samples/samples.mk
85 include $(CT_LIB_DIR)/tools/tools.mk
88 @echo ' tarball - Build a tarball of the configured toolchain'
91 @echo ' STOP - Stop the build just after this step'
92 @echo ' RESTART - Restart the build just before this step'
95 @echo 'You must run either one of "$(CT_NG) config" or "$(CT_NG) menuconfig" first'
100 @$(CT_LIB_DIR)/scripts/crosstool.sh
103 @$(CT_NG) $(shell echo "$(@)" |sed -r -e 's|^([^.]+)\.([[:digit:]]+)$$|\1 CT_JOBS=\2|;')
107 # @$(CT_LIB_DIR)/scripts/tarball.sh
109 @echo 'Tarbal creation disabled for now... Sorry.'
114 @echo 'This is crosstool-NG version $(CT_VERSION)'
118 @rm -f $(CT_TOP_DIR)/.config.*
122 @rm -f $(CT_TOP_DIR)/.config* $(CT_TOP_DIR)/..config.tmp
123 @rm -f $(CT_TOP_DIR)/log.*
124 @[ ! -d "$(CT_TOP_DIR)/targets" ] || chmod -R u+w "$(CT_TOP_DIR)/targets"
125 @rm -rf "$(CT_TOP_DIR)/targets"