patches/uClibc/0.9.28/001-install_dev.patch
changeset 747 d3e603e7c17c
parent 746 b150d6f590fc
child 748 61cd4eb6034d
     1.1 --- a/patches/uClibc/0.9.28/001-install_dev.patch	Mon Jul 28 21:08:01 2008 +0000
     1.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.3 @@ -1,39 +0,0 @@
     1.4 -There are at least three weird glitches in the Makefile:
     1.5 - - the test operator is a dual-equal sign (==) when it should be a single one (=);
     1.6 - - the exclude options are not accepted as is by GNU tar;
     1.7 - - how on earth could KERNEL_SOURCE possibly be equal to DEVEL_PREFIX ???
     1.8 -
     1.9 -We (Cedric DUVAL and I, Yann E. MORIN) are not quite sure why it is that way.
    1.10 -We're not quite sure either on how to solve this.
    1.11 -
    1.12 -What we need is to built a toolchain; in no way we need to install the linux headers.
    1.13 -  ==> systematically exclude them from the [s]tar command.
    1.14 -
    1.15 -This patch is inspired by the svn repository of uClibc as of 20060209.
    1.16 -diff -dur /home/ymorin/dev/uClibc-0.9.28/Makefile uClibc-0.9.28/Makefile
    1.17 ---- /home/ymorin/dev/uClibc-0.9.28/Makefile	2005-08-18 00:49:49.000000000 +0200
    1.18 -+++ uClibc-0.9.28/Makefile	2006-02-09 17:06:58.000000000 +0100
    1.19 -@@ -158,12 +158,17 @@
    1.20 - 	$(INSTALL) -d $(PREFIX)$(DEVEL_PREFIX)lib
    1.21 - 	$(INSTALL) -d $(PREFIX)$(DEVEL_PREFIX)include
    1.22 - 	-$(INSTALL) -m 644 lib/*.[ao] $(PREFIX)$(DEVEL_PREFIX)lib/
    1.23 --	if [ "$(KERNEL_SOURCE)" == "$(DEVEL_PREFIX)" ] ; then \
    1.24 --		extra_exclude="--exclude include/linux --exclude include/asm'*'" ; \
    1.25 --	else \
    1.26 --		extra_exclude="" ; \
    1.27 --	fi ; \
    1.28 --	tar -chf - include --exclude .svn --exclude CVS $$extra_exclude \
    1.29 -+#	if [ "$(KERNEL_SOURCE)" == "$(DEVEL_PREFIX)" ] ; then \
    1.30 -+#		extra_exclude="--exclude include/linux --exclude include/asm'*'" ; \
    1.31 -+#	else \
    1.32 -+#		extra_exclude="" ; \
    1.33 -+#	fi ; \
    1.34 -+#	tar -chf - include --exclude .svn --exclude CVS $$extra_exclude \
    1.35 -+#		| tar -xf - -C $(PREFIX)$(DEVEL_PREFIX)
    1.36 -+	printf ".svn\n.cvsignore\nCVS\n" > tar_exclude ; \
    1.37 -+	ls -1d include/linux include/asm* >> tar_exclude ; \
    1.38 -+	tar -chf - -X tar_exclude include \
    1.39 - 		| tar -xf - -C $(PREFIX)$(DEVEL_PREFIX)
    1.40 -+	rm -f tar_exclude
    1.41 - ifneq ($(strip $(UCLIBC_HAS_FLOATS)),y)
    1.42 - 	# Remove floating point related headers since float support is disabled.