summaryrefslogtreecommitdiffstats
path: root/toolchain/gcc/gcc-uclibc-4.x.mk
diff options
context:
space:
mode:
Diffstat (limited to 'toolchain/gcc/gcc-uclibc-4.x.mk')
-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