summaryrefslogtreecommitdiff
path: root/toolchain/gcc
diff options
context:
space:
mode:
authorUlf Samuelsson <ulf.samuelsson@atmel.com>2009-01-31 20:49:59 +0000
committerUlf Samuelsson <ulf.samuelsson@atmel.com>2009-01-31 20:49:59 +0000
commit59f084017e1d72471dcf4af4122b743cf60cbccb (patch)
treefb0b259b4cc2f569b57c45fe2b89cf830a03f008 /toolchain/gcc
parentc1bb025dffd1103a89fdee0debda4079015c4054 (diff)
Change binary toolchain configuration, so
that the options become visible just below the config, instead of at bottom of screen Create a more useful default as toolchain path. Allow generation of a script which sets up paths to a binary toolchain generated by buildroot.
Diffstat (limited to 'toolchain/gcc')
-rw-r--r--toolchain/gcc/gcc-uclibc-4.x.mk18
1 files changed, 18 insertions, 0 deletions
diff --git a/toolchain/gcc/gcc-uclibc-4.x.mk b/toolchain/gcc/gcc-uclibc-4.x.mk
index c4ef41a9d..fe1002f41 100644
--- a/toolchain/gcc/gcc-uclibc-4.x.mk
+++ b/toolchain/gcc/gcc-uclibc-4.x.mk
@@ -498,5 +498,23 @@ gcc-status:
@echo GCC_PATCH_DIR=$(GCC_PATCH_DIR)
@echo GCC_SITE=$(GCC_SITE)
+GCCSCRIPT=$(ARCH)-uclibc-gcc-$(BR2_GCC_VERSION).sh
+
+gccscript:
+ @rm -f $(GCCSCRIPT)
+ @rm -f gcc.sh
+ @echo "#!/bin/sh" > $(GCCSCRIPT)
+ @echo "# $(ARCH) cross compiler toolchain created $(DATE)" >> $(GCCSCRIPT)
+ @echo "# gcc-$(BR2_GCC_VERSION)" >> $(GCCSCRIPT)
+ @echo "# binutils-$(BR2_BINUTILS_VERSION)" >> $(GCCSCRIPT)
+ @echo "# uClibc-$(UCLIBC_VER)" >> $(GCCSCRIPT)
+ @echo "export GCCROOT=$(BR2_STAGING_DIR)/usr" >> $(GCCSCRIPT)
+ @echo "export PATH=\$$GCCROOT/bin:\$$PATH" >> $(GCCSCRIPT)
+ @echo "export GCCPREFIX=$(ARCH)-linux" >> $(GCCSCRIPT)
+ @echo "export CROSS_COMPILE=\$$GCCPREFIX-" >> $(GCCSCRIPT)
+ @chmod a+x $(GCCSCRIPT)
+ @ln -s $(GCCSCRIPT) gcc.sh
+ @echo "$(GCCSCRIPT) created"
+ @more $(GCCSCRIPT)
endif
# gcc-4.x only