diff options
author | Ulf Samuelsson <ulf.samuelsson@atmel.com> | 2009-01-31 20:49:59 +0000 |
---|---|---|
committer | Ulf Samuelsson <ulf.samuelsson@atmel.com> | 2009-01-31 20:49:59 +0000 |
commit | 59f084017e1d72471dcf4af4122b743cf60cbccb (patch) | |
tree | fb0b259b4cc2f569b57c45fe2b89cf830a03f008 /toolchain/gcc | |
parent | c1bb025dffd1103a89fdee0debda4079015c4054 (diff) | |
download | buildroot-novena-59f084017e1d72471dcf4af4122b743cf60cbccb.tar.gz buildroot-novena-59f084017e1d72471dcf4af4122b743cf60cbccb.zip |
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.mk | 18 |
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 |