58 lines
1.4 KiB
Makefile
58 lines
1.4 KiB
Makefile
CONFIG = riscv32-esp-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
|
|
|
|
SEPARATE_BUILD = Yes
|
|
USE_GMAKE = Yes
|
|
YACC = bison -y
|
|
|
|
CE_VARS = "-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-arch=rv32imc \
|
|
--with-abi=ilp32 \
|
|
--with-newlib \
|
|
--enable-threads=no \
|
|
--disable-__cxa_atexit \
|
|
--enable-cxx-flags=-ffunction-sections \
|
|
--disable-libgomp \
|
|
--disable-libmudflap \
|
|
--disable-libmpx \
|
|
--disable-libssp \
|
|
--disable-libquadmath \
|
|
--disable-libquadmath-support \
|
|
--disable-nls \
|
|
--enable-multiarch \
|
|
--enable-languages=c,c++ \
|
|
--disable-lto \
|
|
--disable-libstdcxx-verbose \
|
|
--disable-option-checking \
|
|
--without-long-double-128 \
|
|
--with-system-zlib \
|
|
--enable-gcov-custom-rtio \
|
|
--enable-libstdcxx-time=yes
|
|
|
|
NO_TEST = Yes
|