1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-12-20 03:53:49 +01:00
RIOT/pkg/libsocketcan/Makefile
Marian Buschsieweke 66ea4f7828
pkg/libsocketcan: fix compilation with posix_headers used
This simply strips the include path to the posix compat headers from
the includes, but at the level of the local `Makefile` (so without
side effects on other modules/packages). Since libsocketcan is only
ever used on native, this should be fine.
2025-04-09 13:10:05 +02:00

17 lines
574 B
Makefile

PKG_NAME=libsocketcan
PKG_URL=https://git.pengutronix.de/git/tools/libsocketcan
PKG_VERSION=077def398ad303043d73339112968e5112d8d7c8
PKG_LICENSE=LGPL-2.1
include $(RIOTBASE)/pkg/pkg.mk
CFLAGS += -Wno-cast-align
# HACK: Ignore `posix_headers` module here: libsocketcan needs to use the
# host's OS's socket implementation rather than the RIOT one, as we
# rely on the host's CAN implementation to provide CAN on native
INCLUDES := $(filter-out -I%/sys/posix/include,$(INCLUDES))
all:
$(QQ)"$(MAKE)" -C $(PKG_SOURCE_DIR)/src -f $(CURDIR)/Makefile.$(PKG_NAME)