patches/uClibc/0.9.28/110-install_dev.patch
author "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
Sat Jan 03 21:11:41 2009 +0000 (2009-01-03)
changeset 1112 c72aecd1a9ef
parent 1 eeea35fbf182
permissions -rw-r--r--
Get rid of all stuff related to building a /delivery' traball:
- building a delivery tarball has long been broken (since crostool-Ng is installable)
- get rid of implied do_print_filename, that can be mis-leading now tarballs can not be built

/trunk/scripts/build/kernel/bare-metal.sh | 4 0 4 0 ----
/trunk/scripts/build/kernel/linux.sh | 4 0 4 0 ----
/trunk/scripts/build/tools/000-template.sh | 11 0 11 0 -----------
/trunk/scripts/build/tools/100-libelf.sh | 4 0 4 0 ----
/trunk/scripts/build/tools/200-sstrip.sh | 11 1 10 0 +----------
/trunk/scripts/build/binutils.sh | 4 0 4 0 ----
/trunk/scripts/build/cc/gcc.sh | 5 0 5 0 -----
/trunk/scripts/build/debug/000-template.sh | 11 0 11 0 -----------
/trunk/scripts/build/debug/100-dmalloc.sh | 4 0 4 0 ----
/trunk/scripts/build/debug/400-ltrace.sh | 4 0 4 0 ----
/trunk/scripts/build/debug/300-gdb.sh | 7 0 7 0 -------
/trunk/scripts/build/debug/500-strace.sh | 4 0 4 0 ----
/trunk/scripts/build/debug/200-duma.sh | 4 0 4 0 ----
/trunk/scripts/build/libc/none.sh | 5 0 5 0 -----
/trunk/scripts/build/libc/glibc.sh | 10 0 10 0 ----------
/trunk/scripts/build/libc/uClibc.sh | 6 0 6 0 ------
/trunk/scripts/build/libc/eglibc.sh | 10 0 10 0 ----------
/trunk/scripts/build/gmp.sh | 6 0 6 0 ------
/trunk/scripts/build/mpfr.sh | 6 0 6 0 ------
/trunk/docs/overview.txt | 9 0 9 0 ---------
20 files changed, 1 insertion(+), 128 deletions(-)
     1 There are at least three weird glitches in the Makefile:
     2  - the test operator is a dual-equal sign (==) when it should be a single one (=);
     3  - the exclude options are not accepted as is by GNU tar;
     4  - how on earth could KERNEL_SOURCE possibly be equal to DEVEL_PREFIX ???
     5 
     6 We (Cedric DUVAL and I, Yann E. MORIN) are not quite sure why it is that way.
     7 We're not quite sure either on how to solve this.
     8 
     9 What we need is to built a toolchain; in no way we need to install the linux headers.
    10   ==> systematically exclude them from the [s]tar command.
    11 
    12 This patch is inspired by the svn repository of uClibc as of 20060209.
    13 diff -dur /home/ymorin/dev/uClibc-0.9.28/Makefile uClibc-0.9.28/Makefile
    14 --- /home/ymorin/dev/uClibc-0.9.28/Makefile	2005-08-18 00:49:49.000000000 +0200
    15 +++ uClibc-0.9.28/Makefile	2006-02-09 17:06:58.000000000 +0100
    16 @@ -158,12 +158,17 @@
    17  	$(INSTALL) -d $(PREFIX)$(DEVEL_PREFIX)lib
    18  	$(INSTALL) -d $(PREFIX)$(DEVEL_PREFIX)include
    19  	-$(INSTALL) -m 644 lib/*.[ao] $(PREFIX)$(DEVEL_PREFIX)lib/
    20 -	if [ "$(KERNEL_SOURCE)" == "$(DEVEL_PREFIX)" ] ; then \
    21 -		extra_exclude="--exclude include/linux --exclude include/asm'*'" ; \
    22 -	else \
    23 -		extra_exclude="" ; \
    24 -	fi ; \
    25 -	tar -chf - include --exclude .svn --exclude CVS $$extra_exclude \
    26 +#	if [ "$(KERNEL_SOURCE)" == "$(DEVEL_PREFIX)" ] ; then \
    27 +#		extra_exclude="--exclude include/linux --exclude include/asm'*'" ; \
    28 +#	else \
    29 +#		extra_exclude="" ; \
    30 +#	fi ; \
    31 +#	tar -chf - include --exclude .svn --exclude CVS $$extra_exclude \
    32 +#		| tar -xf - -C $(PREFIX)$(DEVEL_PREFIX)
    33 +	printf ".svn\n.cvsignore\nCVS\n" > tar_exclude ; \
    34 +	ls -1d include/linux include/asm* >> tar_exclude ; \
    35 +	tar -chf - -X tar_exclude include \
    36  		| tar -xf - -C $(PREFIX)$(DEVEL_PREFIX)
    37 +	rm -f tar_exclude
    38  ifneq ($(strip $(UCLIBC_HAS_FLOATS)),y)
    39  	# Remove floating point related headers since float support is disabled.