svn commit: trunk/uClibc: extra/Configs extra/scripts

vapier at uclibc.org vapier at uclibc.org
Tue Dec 12 03:30:02 UTC 2006


Author: vapier
Date: 2006-12-11 19:30:02 -0800 (Mon, 11 Dec 2006)
New Revision: 16846

Log:
we just want the kernel headers, not the whole kernel source ... so people may need to update their paths slightly

Modified:
   trunk/uClibc/Makefile.in
   trunk/uClibc/Rules.mak
   trunk/uClibc/extra/Configs/Config.in.arch
   trunk/uClibc/extra/scripts/gen_bits_syscall_h.sh


Changeset:
Modified: trunk/uClibc/Makefile.in
===================================================================
--- trunk/uClibc/Makefile.in	2006-12-11 05:28:24 UTC (rev 16845)
+++ trunk/uClibc/Makefile.in	2006-12-12 03:30:02 UTC (rev 16846)
@@ -90,7 +90,7 @@
 	cd $(top_builddir); \
 	tmp=`mktemp include/bits/sysnum.h.XXXXXX 2>/dev/null`; \
 	[ -z "$$tmp" ] && tmp='include/bits/sysnum.h.new'; \
-	KERNEL_SOURCE="${KERNEL_SOURCE}" top_builddir=. CC="$(CC) $(CPU_CFLAGS)" $(SHELL) extra/scripts/gen_bits_syscall_h.sh > $$tmp; \
+	KERNEL_HEADERS="${KERNEL_HEADERS}" top_builddir=. CC="$(CC) $(CPU_CFLAGS)" $(SHELL) extra/scripts/gen_bits_syscall_h.sh > $$tmp; \
 	if cmp include/bits/sysnum.h $$tmp >/dev/null 2>&1; then \
 		$(RM) $$tmp; \
 	else \
@@ -111,7 +111,7 @@
 install_headers:
 	$(INSTALL) -d $(PREFIX)$(DEVEL_PREFIX)include
 	printf ".svn\n.cvsignore\nCVS\n" > tar_exclude ; \
-	if [ "$(KERNEL_SOURCE)" = "$(PREFIX)$(DEVEL_PREFIX)" ] ; then \
+	if [ "$(KERNEL_HEADERS)" = "$(PREFIX)$(DEVEL_PREFIX)" ] ; then \
 		ls -1d include/linux include/asm* >> tar_exclude ; \
 	fi ; \
 	$(TAR) -chf - -X tar_exclude include \

Modified: trunk/uClibc/Rules.mak
===================================================================
--- trunk/uClibc/Rules.mak	2006-12-11 05:28:24 UTC (rev 16845)
+++ trunk/uClibc/Rules.mak	2006-12-12 03:30:02 UTC (rev 16846)
@@ -64,8 +64,8 @@
 TARGET_ARCH:=$(strip $(subst ",, $(strip $(TARGET_ARCH))))
 RUNTIME_PREFIX:=$(strip $(subst //,/, $(subst ,/, $(subst ",, $(strip $(RUNTIME_PREFIX))))))
 DEVEL_PREFIX:=$(strip $(subst //,/, $(subst ,/, $(subst ",, $(strip $(DEVEL_PREFIX))))))
-KERNEL_SOURCE:=$(strip $(subst //,/, $(subst ,/, $(subst ",, $(strip $(KERNEL_SOURCE))))))
-export RUNTIME_PREFIX DEVEL_PREFIX KERNEL_SOURCE
+KERNEL_HEADERS:=$(strip $(subst //,/, $(subst ,/, $(subst ",, $(strip $(KERNEL_HEADERS))))))
+export RUNTIME_PREFIX DEVEL_PREFIX KERNEL_HEADERS
 
 
 # Now config hard core
@@ -471,7 +471,7 @@
 	PTNAME :=
 	PTINC  :=
 endif
-CFLAGS += -I$(KERNEL_SOURCE)
+CFLAGS += -I$(KERNEL_HEADERS)
 
 # Sigh, some stupid versions of gcc can't seem to cope with '-iwithprefix include'
 #CFLAGS+=-iwithprefix include

Modified: trunk/uClibc/extra/Configs/Config.in.arch
===================================================================
--- trunk/uClibc/extra/Configs/Config.in.arch	2006-12-11 05:28:24 UTC (rev 16845)
+++ trunk/uClibc/extra/Configs/Config.in.arch	2006-12-12 03:30:02 UTC (rev 16846)
@@ -154,9 +154,9 @@
 	  If your applications require the newer C99 math library functions, 
 	  then answer Y.
 
-config KERNEL_SOURCE
+config KERNEL_HEADERS
 	string "Linux kernel header location"
-	default "/usr/src/linux"
+	default "/usr/src/linux/include"
 	help
 	  The kernel source you use to compile with should be the same as the
 	  Linux kernel you run your apps on.  uClibc doesn't even try to achieve binary

Modified: trunk/uClibc/extra/scripts/gen_bits_syscall_h.sh
===================================================================
--- trunk/uClibc/extra/scripts/gen_bits_syscall_h.sh	2006-12-11 05:28:24 UTC (rev 16845)
+++ trunk/uClibc/extra/scripts/gen_bits_syscall_h.sh	2006-12-12 03:30:02 UTC (rev 16846)
@@ -14,7 +14,7 @@
 #
 # Warning!!! This does _no_ error checking!!!
 
-INCLUDE_OPTS="-nostdinc -I${KERNEL_SOURCE}"
+INCLUDE_OPTS="-nostdinc -I${KERNEL_HEADERS}"
 
 case $CC in
 *icc*) CC_SYSNUM_ARGS="-dM" ;;




More information about the uClibc-cvs mailing list