Re: New Working GCC for ESP8266
Posted: Wed Oct 01, 2014 8:29 pm
Can you put them in 2 directories? under the one.... if not I can do a crosstools also
Richard.
Richard.
-->
Open Community Forum for ESP8266, Come share Arduino and IoT (Internet of Things)
https://www.esp8266.com/
admin wrote:Can you put them in 2 directories? under the one.... if not I can do a crosstools also
jcmvbkbc wrote:Build crosstool-NG:
$ ./bootstrap && ./configure --prefix=`pwd` && make && make install
Configure it for lx106:
$ ./ct-ng xtensa-lx106-elf
And build the toolchain:
$ ./ct-ng build
diff --git a/scripts/build/arch/xtensa.sh b/scripts/build/arch/xtensa.sh
index e4adae8..7e49312 100644
--- a/scripts/build/arch/xtensa.sh
+++ b/scripts/build/arch/xtensa.sh
@@ -51,9 +51,9 @@ CT_ConfigureXtensa() {
CT_Abort
fi
- CT_DoLog EXTRA "Using '${custom_config}' from ${custom_location}"
- CT_DoExecLog DEBUG ln -sf "${custom_location}/${custom_config}" \
- "${CT_TARBALLS_DIR}/${custom_config}"
+ CT_DoLog EXTRA "Using '${custom_overlay}' from ${custom_location}"
+ CT_DoExecLog DEBUG ln -sf "${custom_location}/${custom_overlay}" \
+ "${CT_TARBALLS_DIR}/${custom_overlay}"
CT_DoExecLog DEBUG touch "${CT_SRC_DIR}/.${basename}.configuring"
igrr wrote:I had to make a few changes to get it working though.
First, 'custom_config' variable in scripts/arc/xtensa.sh was not defined, changed that to custom_overlay
igrr wrote:Before doing ct-ng build, run menuconfig ($ ./ct-ng menuconfig), go into "C compiler" and disable "Link libstdc++ statically into the gcc binary". Otherwise crosstool-NG will feed '-static' option to gcc, but on OS X gcc doesn't have it.