51 lines
1.2 KiB
Makefile
51 lines
1.2 KiB
Makefile
CONFIG = xtensa-esp32s2-elf
|
|
CATEGORIES += devel
|
|
HOMEPAGE = https://www.espressif.com/en/products/software/esp-sdk/overview
|
|
|
|
# DEBUG_PACKAGES = ${BUILD_PACKAGES}
|
|
|
|
# GPLv3
|
|
# For newlib: multiple copyrights, but basically BSD.
|
|
# See: ${PREFIX}/share/doc/newlib
|
|
PERMIT_PACKAGE = Yes
|
|
|
|
# permits build on sparc64
|
|
COMPILER = base-clang ports-clang
|
|
|
|
BUILD_DEPENDS += devel/bison \
|
|
lang/gawk \
|
|
sysutils/coreutils \
|
|
textproc/gsed
|
|
|
|
USE_NOEXECONLY = Yes
|
|
SEPARATE_BUILD = Yes
|
|
USE_GMAKE = Yes
|
|
YACC = bison -y
|
|
|
|
CE_VARS = "-mlongcalls -Os -g -free -fipa-pta"
|
|
|
|
INSTALLDIR = "${LOCALBASE}/${CONFIG}"
|
|
CONFIGURE_STYLE ?= simple
|
|
CONFIGURE_ENV += CFLAGS_FOR_TARGET=${CE_VARS} \
|
|
CXXFLAGS_FOR_TARGET=${CE_VARS} \
|
|
CFLAGS="-I${INSTALLDIR}/include -pipe -g" \
|
|
LDFLAGS="-L${INSTALLDIR}/lib -g"
|
|
CONFIGURE_ARGS += --target="${CONFIG}" \
|
|
--prefix="${INSTALLDIR}" \
|
|
--disable-shared \
|
|
--with-newlib \
|
|
--enable-threads=no \
|
|
--disable-__cxa_atexit \
|
|
--disable-libgomp \
|
|
--disable-libmudflap \
|
|
--disable-nls \
|
|
--disable-bootstrap \
|
|
--enable-languages=c,c++ \
|
|
--disable-lto \
|
|
--disable-libstdcxx-verbose \
|
|
--disable-option-checking \
|
|
--without-long-double-128 \
|
|
--with-system-zlib \
|
|
--enable-static=yes
|
|
|
|
NO_TEST = Yes
|