-
Notifications
You must be signed in to change notification settings - Fork 28
/
crosstool-config.patch
42 lines (42 loc) · 1.5 KB
/
crosstool-config.patch
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
--- crosstool.config 2021-04-29 12:35:01.042648997 +0200
+++ crosstool.config 2021-04-29 12:41:31.550091088 +0200
@@ -24,14 +24,18 @@
CT_XTENSA_CUSTOM=y
CT_TARGET_USE_OVERLAY=y
CT_TARGET_VENDOR="lx106"
-CT_TARGET_CFLAGS="-mlongcalls"
+CT_TARGET_CFLAGS="-mlongcalls -mno-target-align -mno-serialize-volatile"
+CT_TARGET_LDFLAGS="-Wl,--size-opt"
CT_OVERLAY_NAME="lx106"
CT_OVERLAY_LOCATION="${CT_TOP_DIR}/overlays"
CT_TOOLCHAIN_PKGVERSION="lx106"
CT_NEWLIB_V_2_0=y
CT_NEWLIB_VERSION="2.0.0"
CT_LIBC_NEWLIB_V_2_0_0=y
-CT_LIBC_NEWLIB_TARGET_CFLAGS="-DMALLOC_PROVIDED"
+CT_LIBC_NEWLIB_TARGET_CFLAGS="-DMALLOC_PROVIDED -ffunction-sections -fdata-sections -Wl,--size-opt"
+CT_LIBC_NEWLIB_IO_LL=y
+CT_LIBC_NEWLIB_IO_FLOAT=y
+CT_LIBC_NEWLIB_IO_LDBL=y
CT_LIBC_NEWLIB_DISABLE_SUPPLIED_SYSCALLS=y
# CT_LIBC_NEWLIB_FVWRITE_IN_STREAMIO is not set
# CT_LIBC_NEWLIB_UNBUF_STREAM_OPT is not set
@@ -40,7 +44,17 @@
CT_LIBC_NEWLIB_REENT_SMALL=y
# CT_LIBC_NEWLIB_WIDE_ORIENT is not set
# CT_LIBC_NEWLIB_LTO is not set
# CT_CC_GCC_USE_GRAPHITE is not set
CT_CC_GCC_DISABLE_PCH=y
-CT_CC_LANG_CXX=y
+CT_CC_GCC_LDBL_128=y
+# CT_CC_LANG_CXX is not set
+CT_CC_GCC_DEC_FLOATS_NO=y
+CT_CC_GCC_DEC_FLOATS="no"
+# CT_CC_GCC_DEC_FLOATS_AUTO is not set
+# CT_CC_GCC_DEC_FLOATS_BID is not set
+# CT_CC_GCC_DEC_FLOATS_DPD is not set
# CT_COMP_LIBS_ISL is not set
+CT_LOCAL_TARBALLS_DIR="${CT_TOP_DIR}/sources"
+CT_PREFIX_DIR="${CT_TOP_DIR}/xtensa-lx106-elf"
+# CT_INSTALL_LICENSES is not set
+CT_DOWNLOAD_WGET_OPTIONS="--tries=3 -nc --progress=dot:binary"