summaryrefslogtreecommitdiff
path: root/patches/uClibc/0.9.28/001-install_dev.patch
diff options
context:
space:
mode:
authorYann E. MORIN" <yann.morin.1998@anciens.enib.fr>2007-02-24 11:00:05 (GMT)
committerYann E. MORIN" <yann.morin.1998@anciens.enib.fr>2007-02-24 11:00:05 (GMT)
commit1906cf93f86d8d66f45f90380a8d3da25c087ee5 (patch)
tree90916c99abe1f1ec26709ee420e6c349eda4670a /patches/uClibc/0.9.28/001-install_dev.patch
parent2609573aede4ce198b3462976725b25eb1637d2e (diff)
Add the full crosstool-NG sources to the new repository of its own.
You might just say: 'Yeah! crosstool-NG's got its own repo!". Unfortunately, that's because the previous repo got damaged beyond repair and I had no backup. That means I'm putting backups in place in the afternoon. That also means we've lost history... :-(
Diffstat (limited to 'patches/uClibc/0.9.28/001-install_dev.patch')
-rw-r--r--patches/uClibc/0.9.28/001-install_dev.patch39
1 files changed, 39 insertions, 0 deletions
diff --git a/patches/uClibc/0.9.28/001-install_dev.patch b/patches/uClibc/0.9.28/001-install_dev.patch
new file mode 100644
index 0000000..476525b
--- /dev/null
+++ b/patches/uClibc/0.9.28/001-install_dev.patch
@@ -0,0 +1,39 @@
+There are at least three weird glitches in the Makefile:
+ - the test operator is a dual-equal sign (==) when it should be a single one (=);
+ - the exclude options are not accepted as is by GNU tar;
+ - how on earth could KERNEL_SOURCE possibly be equal to DEVEL_PREFIX ???
+
+We (Cedric DUVAL and I, Yann E. MORIN) are not quite sure why it is that way.
+We're not quite sure either on how to solve this.
+
+What we need is to built a toolchain; in no way we need to install the linux headers.
+ ==> systematically exclude them from the [s]tar command.
+
+This patch is inspired by the svn repository of uClibc as of 20060209.
+diff -dur /home/ymorin/dev/uClibc-0.9.28/Makefile uClibc-0.9.28/Makefile
+--- /home/ymorin/dev/uClibc-0.9.28/Makefile 2005-08-18 00:49:49.000000000 +0200
++++ uClibc-0.9.28/Makefile 2006-02-09 17:06:58.000000000 +0100
+@@ -158,12 +158,17 @@
+ $(INSTALL) -d $(PREFIX)$(DEVEL_PREFIX)lib
+ $(INSTALL) -d $(PREFIX)$(DEVEL_PREFIX)include
+ -$(INSTALL) -m 644 lib/*.[ao] $(PREFIX)$(DEVEL_PREFIX)lib/
+- if [ "$(KERNEL_SOURCE)" == "$(DEVEL_PREFIX)" ] ; then \
+- extra_exclude="--exclude include/linux --exclude include/asm'*'" ; \
+- else \
+- extra_exclude="" ; \
+- fi ; \
+- tar -chf - include --exclude .svn --exclude CVS $$extra_exclude \
++# if [ "$(KERNEL_SOURCE)" == "$(DEVEL_PREFIX)" ] ; then \
++# extra_exclude="--exclude include/linux --exclude include/asm'*'" ; \
++# else \
++# extra_exclude="" ; \
++# fi ; \
++# tar -chf - include --exclude .svn --exclude CVS $$extra_exclude \
++# | tar -xf - -C $(PREFIX)$(DEVEL_PREFIX)
++ printf ".svn\n.cvsignore\nCVS\n" > tar_exclude ; \
++ ls -1d include/linux include/asm* >> tar_exclude ; \
++ tar -chf - -X tar_exclude include \
+ | tar -xf - -C $(PREFIX)$(DEVEL_PREFIX)
++ rm -f tar_exclude
+ ifneq ($(strip $(UCLIBC_HAS_FLOATS)),y)
+ # Remove floating point related headers since float support is disabled.