summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2006-12-13 13:07:47 +0000
committerEric Andersen <andersen@codepoet.org>2006-12-13 13:07:47 +0000
commit4f45ebcca386f0f5e272f50939baab2957fcc58e (patch)
tree3902fe39955d093a642f3a6ccd2be0d62befe6d2
parent9295a204fac2300d07425ebe21b16459bc281351 (diff)
install include/asm-generic if it is present
-rw-r--r--toolchain/uClibc/uclibc.mk6
1 files changed, 6 insertions, 0 deletions
diff --git a/toolchain/uClibc/uclibc.mk b/toolchain/uClibc/uclibc.mk
index 18d000cf6..b42bc861d 100644
--- a/toolchain/uClibc/uclibc.mk
+++ b/toolchain/uClibc/uclibc.mk
@@ -178,6 +178,8 @@ $(UCLIBC_DIR)/.configured: $(UCLIBC_DIR)/.config
if [ ! -f $(STAGING_DIR)/include/linux/version.h ] ; then \
cp -pLR $(LINUX_HEADERS_DIR)/include/asm $(TOOL_BUILD_DIR)/uClibc_dev/usr/include/ ; \
cp -pLR $(LINUX_HEADERS_DIR)/include/linux $(TOOL_BUILD_DIR)/uClibc_dev/usr/include/ ; \
+ [ -d $(LINUX_HEADERS_DIR)/include/asm-generic ] && \
+ cp -pLR $(LINUX_HEADERS_DIR)/include/asm-generic $(TOOL_BUILD_DIR)/uClibc_dev/usr/include/ ; \
fi;
touch $(UCLIBC_DIR)/.configured
@@ -210,6 +212,8 @@ $(STAGING_DIR)/lib/libc.a: $(UCLIBC_DIR)/lib/libc.a
if [ ! -f $(STAGING_DIR)/include/linux/version.h ] ; then \
cp -pLR $(LINUX_HEADERS_DIR)/include/asm $(STAGING_DIR)/include/ ; \
cp -pLR $(LINUX_HEADERS_DIR)/include/linux $(STAGING_DIR)/include/ ; \
+ [ -d $(LINUX_HEADERS_DIR)/include/asm-generic ] && \
+ cp -pLR $(LINUX_HEADERS_DIR)/include/asm-generic $(STAGING_DIR)/include/ ; \
fi;
# Build the host utils. Need to add an install target...
$(MAKE1) -C $(UCLIBC_DIR)/utils \
@@ -276,6 +280,8 @@ $(TARGET_DIR)/usr/lib/libc.a: $(STAGING_DIR)/$(REAL_GNU_TARGET_NAME)/lib/libc.a
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/ ; \
+ [ -d $(LINUX_HEADERS_DIR)/include/asm-generic ] && \
+ cp -pLR $(LINUX_HEADERS_DIR)/include/asm-generic $(TARGET_DIR)/usr/include/ ; \
fi;
touch -c $(TARGET_DIR)/usr/lib/libc.a