mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
6b766c3cd3
The build system contains several instances of INCLUDES += -I$(RIOTBASE)/sys/posix/include This is bypassing the module management system, by directly accesing headers without depending on a module. The module is the posix module. That line is also added when one of the posix_* modules is requested. According to the docs, the posix module provides headers only, but in reality there is also inet.c. This patch: - Moves `inet.c` into `posix_inet`, leaving `posix` as a headers-only module. - Rename `posix` as `posix_headers` to make it clear the module only includes headers. - Makes `posix_*` modules depend on `posix_headers`, thus removing the explicit `INCLUDES+=...` in `sys/Makefile.include`. - Ocurrences of `INCLUDES+=...` are replaced by an explicit dependency on `posix_headers`.
30 lines
939 B
Makefile
30 lines
939 B
Makefile
include ../Makefile.tests_common
|
|
|
|
RIOTBASE ?= $(CURDIR)/../..
|
|
|
|
BOARD_INSUFFICIENT_MEMORY := arduino-duemilanove arduino-mega2560 arduino-uno \
|
|
chronos telosb nucleo-f042k6 nucleo-f031k6 \
|
|
nucleo-f030r8 nucleo-f303k8 nucleo-l053r8 \
|
|
nucleo-l031k6 stm32f0discovery waspmote-pro z1
|
|
|
|
USEMODULE += sock_dns
|
|
USEMODULE += gnrc_sock_udp
|
|
USEMODULE += gnrc_ipv6_default
|
|
USEMODULE += gnrc_ipv6_nib_dns
|
|
USEMODULE += gnrc_netdev_default
|
|
USEMODULE += auto_init_gnrc_netif
|
|
|
|
USEMODULE += shell_commands
|
|
|
|
USEMODULE += posix_inet
|
|
|
|
LOW_MEMORY_BOARDS := nucleo-f334r8 msb-430 msb-430h
|
|
|
|
ifeq ($(BOARD),$(filter $(BOARD),$(LOW_MEMORY_BOARDS)))
|
|
CFLAGS += -DGNRC_PKTBUF_SIZE=512 -DGNRC_NETIF_IPV6_ADDRS_NUMOF=2 \
|
|
-DGNRC_NETIF_IPV6_GROUPS_NUMOF=2 -DGNRC_IPV6_NIB_NUMOF=1 \
|
|
-DNRC_IPV6_NIB_OFFL_NUMOF=1
|
|
endif
|
|
|
|
include $(RIOTBASE)/Makefile.include
|