1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00
RIOT/tests/gnrc_ndp/Makefile
Martine Lenders 455a607405
tests/gnrc_ndp: don't guess size of gnrc_pktsnip_t in pktbuf
24 bytes is only the right size for `gnrc_pktsnip_t` on 32-bit systems
(and only if the struct does not change), on AVR e.g. it 9 bytes.
By using the internal alignment function of `pktbuf` we are able to
precisely tell the internal size of `gnrc_pktsnip_t` using the `sizeof`
operator.
2021-02-19 12:23:22 +01:00

22 lines
538 B
Makefile

include ../Makefile.tests_common
USEMODULE += gnrc_ipv6_nib_router
USEMODULE += gnrc_ndp
USEMODULE += gnrc_netif
USEMODULE += gnrc_nettype_ipv6
USEMODULE += embunit
USEMODULE += netdev_ieee802154
USEMODULE += netdev_test
CFLAGS += -DGNRC_NETTYPE_NDP=GNRC_NETTYPE_TEST
CFLAGS += -DTEST_SUITES
INCLUDES += -I$(RIOTBASE)/sys/net/gnrc/pktbuf_static/include
include $(RIOTBASE)/Makefile.include
# Set GNRC_PKTBUF_SIZE via CFLAGS if not being set via Kconfig.
ifndef CONFIG_GNRC_PKTBUF_SIZE
CFLAGS += -DCONFIG_GNRC_PKTBUF_SIZE=512
endif