| @@ -1,14 +1,14 @@ | | | @@ -1,14 +1,14 @@ |
1 | # $NetBSD: Makefile.common,v 1.1 2022/04/14 00:50:00 tnn Exp $ | | 1 | # $NetBSD: Makefile.common,v 1.2 2022/04/14 13:11:49 tnn Exp $ |
2 | | | 2 | |
3 | # used by cross/xtensa-esp32-elf-gcc/Makefile | | 3 | # used by cross/xtensa-esp32-elf-gcc/Makefile |
4 | # used by cross/xtensa-esp32s2-elf-gcc/Makefile | | 4 | # used by cross/xtensa-esp32s2-elf-gcc/Makefile |
5 | # used by cross/xtensa-esp32s3-elf-gcc/Makefile | | 5 | # used by cross/xtensa-esp32s3-elf-gcc/Makefile |
6 | | | 6 | |
7 | # We could use the upstream GCC distfile, but Espressif has important vendor | | 7 | # We could use the upstream GCC distfile, but Espressif has important vendor |
8 | # patches in their branch and it seems not worth the maintenance overhead to | | 8 | # patches in their branch and it seems not worth the maintenance overhead to |
9 | # extract them and put them in pkgsrc. | | 9 | # extract them and put them in pkgsrc. |
10 | #DISTNAME= gcc-8.3.0 | | 10 | #DISTNAME= gcc-8.3.0 |
11 | #MASTER_SITES= ${MASTER_SITE_GNU:=gcc/gcc-${PKGVERSION_NOREV}/} | | 11 | #MASTER_SITES= ${MASTER_SITE_GNU:=gcc/gcc-${PKGVERSION_NOREV}/} |
12 | #EXTRACT_SUFX= .tar.xz | | 12 | #EXTRACT_SUFX= .tar.xz |
13 | | | 13 | |
14 | DISTNAME= espressif-gcc-8.4.0 | | 14 | DISTNAME= espressif-gcc-8.4.0 |
| @@ -45,52 +45,55 @@ DISTINFO_FILE= ${.CURDIR}/../../cross/xt | | | @@ -45,52 +45,55 @@ DISTINFO_FILE= ${.CURDIR}/../../cross/xt |
45 | DESCR_SRC= ${.CURDIR}/../../cross/xtensa-esp32-elf-gcc/DESCR | | 45 | DESCR_SRC= ${.CURDIR}/../../cross/xtensa-esp32-elf-gcc/DESCR |
46 | | | 46 | |
47 | # for http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33549 | | 47 | # for http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33549 |
48 | # use makeinfo from pkgsrc/devel/gtexinfo. | | 48 | # use makeinfo from pkgsrc/devel/gtexinfo. |
49 | TOOL_DEPENDS+= gtexinfo>=5.1:../../devel/gtexinfo | | 49 | TOOL_DEPENDS+= gtexinfo>=5.1:../../devel/gtexinfo |
50 | _TOOLS_USE_PKGSRC.makeinfo= yes | | 50 | _TOOLS_USE_PKGSRC.makeinfo= yes |
51 | | | 51 | |
52 | OBJDIR= ../build | | 52 | OBJDIR= ../build |
53 | CONFIGURE_DIRS= ${OBJDIR} | | 53 | CONFIGURE_DIRS= ${OBJDIR} |
54 | CONFIGURE_SCRIPT= ${WRKSRC}/configure | | 54 | CONFIGURE_SCRIPT= ${WRKSRC}/configure |
55 | CONFIG_SHELL= ${TOOLS_PATH.bash} | | 55 | CONFIG_SHELL= ${TOOLS_PATH.bash} |
56 | WRAPPER_SHELL= ${TOOLS_PATH.bash} | | 56 | WRAPPER_SHELL= ${TOOLS_PATH.bash} |
57 | GNU_CONFIGURE_PREFIX= ${PREFIX}/xtensa-${ESP32_TYPE}-elf | | 57 | GNU_CONFIGURE_PREFIX= ${PREFIX}/xtensa-${ESP32_TYPE}-elf |
| | | 58 | MKPIE_SUPPORTED= no |
58 | | | 59 | |
59 | # This is based on "gcc -v" output from the binary release | | 60 | # This is based on "gcc -v" output from the binary release |
60 | # xtensa-esp32-elf-gcc8_4_0-esp-2021r2-patch3-linux-amd64.tar.gz | | 61 | # xtensa-esp32-elf-gcc8_4_0-esp-2021r2-patch3-linux-amd64.tar.gz |
61 | CONFIGURE_ARGS+= --target=xtensa-${ESP32_TYPE}-elf | | 62 | CONFIGURE_ARGS+= --target=xtensa-${ESP32_TYPE}-elf |
62 | CONFIGURE_ARGS+= --with-newlib | | 63 | CONFIGURE_ARGS+= --with-newlib |
63 | CONFIGURE_ARGS+= --enable-threads=no | | 64 | CONFIGURE_ARGS+= --enable-threads=no |
64 | CONFIGURE_ARGS+= --disable-shared | | 65 | CONFIGURE_ARGS+= --disable-shared |
65 | CONFIGURE_ARGS+= --disable-__cxa_atexit | | 66 | CONFIGURE_ARGS+= --disable-__cxa_atexit |
66 | CONFIGURE_ARGS+= --enable-cxx-flags="-ffunction-sections" | | 67 | CONFIGURE_ARGS+= --enable-cxx-flags="-ffunction-sections" |
67 | CONFIGURE_ARGS+= --disable-libgomp | | 68 | CONFIGURE_ARGS+= --disable-libgomp |
68 | CONFIGURE_ARGS+= --disable-libmudflap | | 69 | CONFIGURE_ARGS+= --disable-libmudflap |
69 | CONFIGURE_ARGS+= --disable-libmpx | | 70 | CONFIGURE_ARGS+= --disable-libmpx |
70 | CONFIGURE_ARGS+= --disable-libssp | | 71 | CONFIGURE_ARGS+= --disable-libssp |
71 | CONFIGURE_ARGS+= --disable-libquadmath | | 72 | CONFIGURE_ARGS+= --disable-libquadmath |
72 | CONFIGURE_ARGS+= --disable-libquadmath-support | | 73 | CONFIGURE_ARGS+= --disable-libquadmath-support |
73 | CONFIGURE_ARGS+= --enable-lto | | 74 | CONFIGURE_ARGS+= --enable-lto |
74 | CONFIGURE_ARGS+= --enable-target-optspace | | 75 | CONFIGURE_ARGS+= --enable-target-optspace |
75 | CONFIGURE_ARGS+= --without-long-double-128 | | 76 | CONFIGURE_ARGS+= --without-long-double-128 |
76 | CONFIGURE_ARGS+= --disable-nls | | 77 | CONFIGURE_ARGS+= --disable-nls |
77 | CONFIGURE_ARGS+= --enable-multiarch | | 78 | CONFIGURE_ARGS+= --enable-multiarch |
78 | CONFIGURE_ARGS+= --enable-languages=c,c++ | | 79 | CONFIGURE_ARGS+= --enable-languages=c,c++ |
79 | CONFIGURE_ARGS+= --disable-libstdcxx-verbose | | 80 | CONFIGURE_ARGS+= --disable-libstdcxx-verbose |
80 | CONFIGURE_ARGS+= --enable-threads=posix | | 81 | CONFIGURE_ARGS+= --enable-threads=posix |
81 | CONFIGURE_ARGS+= --enable-gcov-custom-rtio | | 82 | CONFIGURE_ARGS+= --enable-gcov-custom-rtio |
82 | CONFIGURE_ARGS+= --enable-libstdcxx-time=yes | | 83 | CONFIGURE_ARGS+= --enable-libstdcxx-time=yes |
83 | | | 84 | |
| | | 85 | CONFIGURE_ARGS+= --disable-bootstrap |
| | | 86 | |
84 | CHECK_PORTABILITY_SKIP+= contrib/* | | 87 | CHECK_PORTABILITY_SKIP+= contrib/* |
85 | | | 88 | |
86 | post-extract: | | 89 | post-extract: |
87 | mv ${WRKDIR}/newlib-*/newlib ${WRKSRC}/newlib | | 90 | mv ${WRKDIR}/newlib-*/newlib ${WRKSRC}/newlib |
88 | mv ${WRKDIR}/newlib-*/libgloss ${WRKSRC}/libgloss | | 91 | mv ${WRKDIR}/newlib-*/libgloss ${WRKSRC}/libgloss |
89 | ${CP} -r ${WRKDIR}/overlays/xtensa_${ESP32_TYPE}/gcc/. ${WRKSRC}/. | | 92 | ${CP} -r ${WRKDIR}/overlays/xtensa_${ESP32_TYPE}/gcc/. ${WRKSRC}/. |
90 | ${CP} -r ${WRKDIR}/overlays/xtensa_${ESP32_TYPE}/newlib/. ${WRKSRC}/. | | 93 | ${CP} -r ${WRKDIR}/overlays/xtensa_${ESP32_TYPE}/newlib/. ${WRKSRC}/. |
91 | | | 94 | |
92 | pre-configure: | | 95 | pre-configure: |
93 | ${RUN} cd ${WRKSRC} && ${MKDIR} ${OBJDIR} | | 96 | ${RUN} cd ${WRKSRC} && ${MKDIR} ${OBJDIR} |
94 | | | 97 | |
95 | .include "../../devel/gmp/buildlink3.mk" | | 98 | .include "../../devel/gmp/buildlink3.mk" |
96 | .include "../../math/mpfr/buildlink3.mk" | | 99 | .include "../../math/mpfr/buildlink3.mk" |