1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00
RIOT/cpu/native/Makefile.features
Marian Buschsieweke 0ed7ead587
cpu/native: Workaround for libstdcpp for FreeBSD
On FreeBSD, libstdc++ is known to not work with -m32. Thus, we don't provide
it feature libstdcpp there.
2020-07-15 20:29:02 +02:00

24 lines
634 B
Makefile

ifeq (FreeBSD,$(OS))
DISABLE_LIBSTDCPP ?= 1
endif
FEATURES_PROVIDED += arch_32bit
FEATURES_PROVIDED += arch_native
FEATURES_PROVIDED += cpp
ifneq ($(DISABLE_LIBSTDCPP),1)
# libstdc++ on FreeBSD is broken (does not work with -m32)
# Override with "export DISABLE_LIBSTDCPP=0"
FEATURES_PROVIDED += libstdcpp
endif
FEATURES_PROVIDED += periph_cpuid
FEATURES_PROVIDED += periph_eeprom
FEATURES_PROVIDED += periph_hwrng
FEATURES_PROVIDED += periph_pm
FEATURES_PROVIDED += periph_pwm
FEATURES_PROVIDED += ssp
# Access to hardware SPI bus is only supported on Linux hosts
ifeq ($(OS),Linux)
FEATURES_PROVIDED += periph_spi
endif