uclibc: Fix for improper copying of kernel headers
authorWill Wagner <willw@carallon.com>
Tue, 26 Jan 2010 15:31:37 +0000 (15:31 +0000)
committerPeter Korsgaard <jacmet@sunsite.dk>
Sat, 3 Apr 2010 08:30:53 +0000 (10:30 +0200)
Closes #1219

Signed-off-by: Will Wagner <will_wagner@carallon.com>
Acked-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
CHANGES
toolchain/uClibc/uclibc.mk

diff --git a/CHANGES b/CHANGES
index c6ab12b60582b5140c9c4415470994e9edb82f8d..69867e93a00eb8512bbfcb4a20dfd0119fc2b005 100644 (file)
--- a/CHANGES
+++ b/CHANGES
@@ -25,6 +25,7 @@
        #1117: Bump nano to 2.2.3 and migrate to Makefile.autotools.in
        #1123: Bump less to 436 and migrate to Makefile.autotools.in
        #1129: Bump memstat to 0.8 and migrate to Makefile.package.in
+       #1219: kernel headers not correctly installed into toolchain/staging
        #1273: BR2_INET_IPV6 does not enable IPv6 in pppd
        #1303: Add librsync package
        #1327: mtd-utils compile failure due to lack of --sysroot in CFLAGS
index 765a684da649b247f201247be816b60ef6d5c477..db346f0b77bc9d9031dd12cbc8430bf36e039c17 100644 (file)
@@ -419,23 +419,10 @@ $(UCLIBC_DIR)/.configured: $(LINUX_HEADERS_DIR)/.configured $(UCLIBC_DIR)/.confi
                $(if $(BR2_UCLIBC_VERSION_0_9_28_3),install_dev,install_headers)
        # Install the kernel headers to the first stage gcc include dir
        # if necessary
-ifeq ($(LINUX_HEADERS_IS_KERNEL),y)
        if [ ! -f $(TOOLCHAIN_DIR)/uClibc_dev/usr/include/linux/version.h ]; then \
                cp -pLR $(LINUX_HEADERS_DIR)/include/* \
                        $(TOOLCHAIN_DIR)/uClibc_dev/usr/include/; \
        fi
-else
-       if [ ! -f $(STAGING_DIR)/usr/include/linux/version.h ]; then \
-               cp -pLR $(LINUX_HEADERS_DIR)/include/asm \
-                       $(TOOLCHAIN_DIR)/uClibc_dev/usr/include/; \
-               cp -pLR $(LINUX_HEADERS_DIR)/include/linux \
-                       $(TOOLCHAIN_DIR)/uClibc_dev/usr/include/; \
-               if [ -d $(LINUX_HEADERS_DIR)/include/asm-generic ]; then \
-                       cp -pLR $(LINUX_HEADERS_DIR)/include/asm-generic \
-                               $(TOOLCHAIN_DIR)/uClibc_dev/usr/include/; \
-               fi; \
-       fi
-endif
        touch $@
 
 $(UCLIBC_DIR)/lib/libc.a: $(UCLIBC_DIR)/.configured $(gcc_initial) $(LIBFLOAT_TARGET)
@@ -476,23 +463,10 @@ else
                install_runtime install_dev
 endif
        # Install the kernel headers to the staging dir if necessary
-ifeq ($(LINUX_HEADERS_IS_KERNEL),y)
        if [ ! -f $(STAGING_DIR)/usr/include/linux/version.h ]; then \
                cp -pLR $(LINUX_HEADERS_DIR)/include/* \
                        $(STAGING_DIR)/usr/include/; \
        fi
-else
-       if [ ! -f $(STAGING_DIR)/usr/include/linux/version.h ]; then \
-               cp -pLR $(LINUX_HEADERS_DIR)/include/asm \
-                       $(STAGING_DIR)/usr/include/; \
-               cp -pLR $(LINUX_HEADERS_DIR)/include/linux \
-                       $(STAGING_DIR)/usr/include/; \
-               if [ -d $(LINUX_HEADERS_DIR)/include/asm-generic ]; then \
-                       cp -pLR $(LINUX_HEADERS_DIR)/include/asm-generic \
-                               $(STAGING_DIR)/usr/include/; \
-               fi; \
-       fi
-endif
        # Build the host utils. Need to add an install target...
        $(MAKE1) -C $(UCLIBC_DIR)/utils \
                PREFIX=$(STAGING_DIR) \
@@ -607,23 +581,10 @@ $(TARGET_DIR)/usr/lib/libc.a: $(STAGING_DIR)/usr/lib/libc.a
                RUNTIME_PREFIX=/ \
                install_dev
        # Install the kernel headers to the target dir if necessary
-ifeq ($(LINUX_HEADERS_IS_KERNEL),y)
        if [ ! -f $(TARGET_DIR)/usr/include/linux/version.h ]; then \
                cp -pLR $(LINUX_HEADERS_DIR)/include/* \
                        $(TARGET_DIR)/usr/include/; \
        fi
-else
-       if [ ! -f $(TARGET_DIR)/usr/include/linux/version.h ]; then \
-               cp -pLR $(LINUX_HEADERS_DIR)/include/asm \
-                       $(TARGET_DIR)/usr/include/; \
-               cp -pLR $(LINUX_HEADERS_DIR)/include/linux \
-                       $(TARGET_DIR)/usr/include/; \
-               if [ -d $(LINUX_HEADERS_DIR)/include/asm-generic ]; then \
-                       cp -pLR $(LINUX_HEADERS_DIR)/include/asm-generic \
-                               $(TARGET_DIR)/usr/include/; \
-               fi; \
-       fi
-endif
        touch -c $@
 
 uclibc_target: cross_compiler uclibc $(TARGET_DIR)/usr/lib/libc.a $(TARGET_DIR)/usr/bin/ldd