Update all samples to the latest set of options.
Update some samples to use newer features.
Add patches for the uClibc-20080801 snapshot to be able to build with gcc-4.3.
Add a patch against glibc-2.7 to allow building PPC with latest kernel headers.
Add a patch to gcc to use an alternate unwinding when built against uClibc (after a private explanation/request by Daniel Egger <daniel@eggers-club.de>)
/trunk/patches/glibc/2.7/230-powerpc-private_futex.patch | 15 15 0 0 +
/trunk/patches/uClibc/20080801/300-fix-asm.patch | 175 175 0 0 +++++++++
/trunk/patches/uClibc/20080801/100-ifaddrs.patch | 190 190 0 0 +++++++++
/trunk/patches/uClibc/20080801/200-mips-typeof.patch | 112 112 0 0 ++++++
/trunk/patches/gcc/4.3.1/330-unwind-for-uClibc.patch | 25 25 0 0 +
/trunk/samples/x86_64-unknown-linux-gnu/crosstool.config | 17 10 7 0 +
/trunk/samples/armeb-unknown-linux-uclibc/crosstool.config | 7 5 2 0 +
/trunk/samples/arm-unknown-linux-gnueabi/crosstool.config | 7 5 2 0 +
/trunk/samples/ia64-unknown-linux-gnu/crosstool.config | 14 11 3 0 +
/trunk/samples/x86_64-unknown-linux-uclibc/uClibc-20080801.config | 232 232 0 0 ++++++++++++
/trunk/samples/x86_64-unknown-linux-uclibc/crosstool.config | 34 21 13 0 +-
/trunk/samples/i686-nptl-linux-gnu/crosstool.config | 10 7 3 0 +
/trunk/samples/powerpc-unknown-linux-gnu/crosstool.config | 12 9 3 0 +
/trunk/samples/mips-unknown-linux-uclibc/uClibc-20080801.config | 249 249 0 0 ++++++++++++
/trunk/samples/mips-unknown-linux-uclibc/crosstool.config | 38 23 15 0 +-
/trunk/samples/arm-unknown-linux-uclibcgnueabi/crosstool.config | 14 10 4 0 +
/trunk/samples/armeb-unknown-linux-gnu/crosstool.config | 7 5 2 0 +
/trunk/samples/powerpc-unknown_nofpu-linux-gnu/crosstool.config | 12 9 3 0 +
/trunk/samples/arm-unknown-linux-uclibc/crosstool.config | 7 5 2 0 +
/trunk/samples/i586-geode-linux-uclibc/uClibc-20080801.config | 261 261 0 0 +++++++++++++
/trunk/samples/i586-geode-linux-uclibc/crosstool.config | 32 20 12 0 ++
/trunk/samples/powerpc-unknown-linux-uclibc/crosstool.config | 12 9 3 0 +
/trunk/samples/mipsel-unknown-linux-gnu/crosstool.config | 7 5 2 0 +
/trunk/samples/armeb-unknown-linux-uclibcgnueabi/crosstool.config | 7 5 2 0 +
/trunk/samples/alphaev56-unknown-linux-gnu/crosstool.config | 16 10 6 0 +
25 files changed, 1428 insertions(+), 84 deletions(-)
1 # Makefile.in for building crosstool-NG
2 # This file serves as source for the ./configure operation
4 MAKEFLAGS += --no-print-directory --no-builtin-rules
8 # Check if Makefile is up to date:
10 @echo "$< did changed: you must re-run './configure'"
13 ###############################################################################
14 # Configuration variables
23 MAKE := $(shell which $(MAKE) || type -p $(MAKE) || echo /usr/bin/make)
25 ###############################################################################
28 TARGETS := bin lib doc man
30 build: $(patsubst %,build-%,$(TARGETS))
32 install: local-test build $(patsubst %,install-%,$(TARGETS))
34 clean: $(patsubst %,clean-%,$(TARGETS))
37 @echo " RM 'Makefile'"
40 uninstall: local-test $(patsubst %,uninstall-%,$(TARGETS))
42 ###############################################################################
45 #--------------------------------------
56 build-man: docs/ct-ng.1.gz
58 docs/ct-ng.1.gz: docs/ct-ng.1
64 @sed -r -e 's,@@CT_MAKE@@,$(MAKE),g;' \
65 -e 's,@@CT_BINDIR@@,$(BINDIR),g;' \
66 -e 's,@@CT_LIBDIR@@,$(LIBDIR),g;' \
67 -e 's,@@CT_DOCDIR@@,$(DOCDIR),g;' \
68 -e 's,@@CT_MANDIR@@,$(MANDIR),g;' \
69 -e 's,@@CT_VERSION@@,$(VERSION),g;' \
70 -e 's,@@CT_DATE@@,$(DATE),g;' \
73 #--------------------------------------
85 @echo " RM 'docs/ct-ng.1'"
87 @echo " RM 'docs/ct-ng.1.gz'"
88 @rm -f docs/ct-ng.1.gz
90 #--------------------------------------
91 # Check for --local setup
93 # If using locally, don't install
95 @if [ "$(LOCAL)" = "1" ]; then \
96 echo "You're using local copy as runtime. You can't (un)install."; \
100 #--------------------------------------
103 install-bin: $(BINDIR)
104 @echo " INST 'ct-ng'"
105 @install -m 755 ct-ng "$(BINDIR)/ct-ng"
107 # If one is hacking crosstool-NG, the patch set might change between any two
108 # installations of the same VERSION, thus the patches must be removed prior
109 # to being installed. It is simpler to remove the whole lib/ directory, as it
110 # is the goal of the install-lib rule to install the lib/ directory...
111 install-lib: uninstall-lib $(LIBDIR) install-lib-main install-lib-samples
113 install-lib-main: $(LIBDIR)
114 @for src_dir in arch config kconfig patches scripts tools; do \
115 echo " INST '$${src_dir}/'"; \
116 tar cf - --exclude=.svn $${src_dir} |(cd "$(LIBDIR)"; tar xf -); \
118 @rm -f "$(LIBDIR)/tools/addToolVersion.sh"
119 @echo " INST 'steps.mk'"
120 @install -m 644 steps.mk "$(LIBDIR)/steps.mk"
122 # Samples need a little love:
123 # - change every occurrence of CT_TOP_DIR to CT_LIB_DIR
124 install-lib-samples: $(LIBDIR) install-lib-main
125 @echo " INST 'samples/'"
126 @tar cf - --exclude=.svn samples |(cd "$(LIBDIR)"; tar xf -)
127 @for samp_file in "$(LIBDIR)/samples/"*"/crosstool.config"; do \
128 sed -r -i -e 's,\$$\{CT_TOP_DIR\},\$$\{CT_LIB_DIR\},g;' $${samp_file}; \
129 sed -r -i -e 's,^(CT_WORK_DIR)=.*,\1="\$${CT_TOP_DIR}/targets",;' $${samp_file}; \
132 install-doc: $(DOCDIR)
133 @for doc_file in docs/CREDITS docs/overview.txt; do \
134 echo " INST '$${doc_file}'"; \
135 install -m 644 "$${doc_file}" "$(DOCDIR)"; \
138 install-man: $(MANDIR)
139 @echo " INST 'ct-ng.1.gz'"
140 @install -m 644 docs/ct-ng.1.gz "$(MANDIR)"
142 $(sort $(BINDIR) $(LIBDIR) $(DOCDIR) $(MANDIR)):
144 @install -m 755 -d "$@"
147 #--------------------------------------
151 @echo " RM '$(BINDIR)/ct-ng'"
152 @rm -f "$(BINDIR)/ct-ng"
155 @echo " RMDIR '$(LIBDIR)/'"
159 @echo " RMDIR '$(DOCDIR)/'"
163 @echo " RM '$(MANDIR)/ct-ng.1.gz'"
164 @rm -f "$(MANDIR)/ct-ng.1"{,.gz}