openap-cvs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[openap-cvs] : openap-main/make tools.mk,1.2,1.3


From: David Kimdon <address@hidden>
Subject: [openap-cvs] : openap-main/make tools.mk,1.2,1.3
Date: Mon, 29 Jul 2002 18:20:09 -0400

Update of /cvsroot/openap/openap-main/make
In directory subversions:/tmp/cvs-serv2473

Modified Files:
        tools.mk 
Log Message:
- patch from Sergio M. Ammirata <address@hidden>,
break tools and uclibc build up into two stages

- unexport CC, LD, CONFIG_SITE etc. when building the toolchain.  For
  everything else we want to use the cross toolchain, but here we want to use
  the native one.



Index: tools.mk
===================================================================
RCS file: /cvsroot/openap/openap-main/make/tools.mk,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- tools.mk    19 Jul 2002 00:38:15 -0000      1.2
+++ tools.mk    29 Jul 2002 22:20:06 -0000      1.3
@@ -1,17 +1,27 @@
 
 
-tools: $(STAMPDIR)/.tools
-$(STAMPDIR)/.tools :
+uclibc: $(STAMPDIR)/.uclibc
+$(STAMPDIR)/.uclibc :
+
        mkdir -p $(CONFIG_PREFIX) || \
                (echo "failed to create $(CONFIG_PREFIX)"; exit 1)
        mkdir -p build/
        -cd build/gcc-2.95 && $(MAKE) clean
        cd build && tar -xzf ../misc/gcc-2.95-uclibc-20020711.src.tar.gz
        patch -p0 < misc/uclibc-build.diff
+       # For the tool build we don't want these variables defined 
+       # since we need to use the native host toolchain.
+       export -n CC LD AS AR STRIP CONFIG_SITE; \
        cd build/gcc-2.95 && make \
                TARGET_PATH=$(TARGET_PATH) \
-               ARCH=$(ARCH) | \
-               tee build.log
+               ARCH=$(ARCH)
+       @echo
+       @echo "Put $(TARGET_PATH)/bin/ in your path."
+       @echo
+       touch $(STAMPDIR)/.uclibc
+
+tools: $(STAMPDIR)/.tools
+$(STAMPDIR)/.tools :
        $(MAKE) CC=gcc -C $(KERNEL_DIR)/scripts/cramfs/
        touch $(STAMPDIR)/.tools
 




reply via email to

[Prev in Thread] Current Thread [Next in Thread]