Skip to content

Commit

Permalink
Merge pull request #20196 from fzi-haxel/pr/enable_dtls_sock_example_…
Browse files Browse the repository at this point in the history
…for_non_32

examples/dtls-sock: Enable non 32-bit architectures
  • Loading branch information
maribu authored Dec 30, 2023
2 parents 034fd09 + 181f965 commit 75512d5
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 6 deletions.
13 changes: 7 additions & 6 deletions examples/dtls-sock/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,6 @@ BOARD ?= native
# This has to be the absolute path to the RIOT base directory:
RIOTBASE ?= $(CURDIR)/../..

# TinyDTLS only has support for 32-bit architectures ATM
FEATURES_REQUIRED += arch_32bit

# Include packages that pull up and auto-init the link layer.
# NOTE: 6LoWPAN will be included if IEEE802.15.4 devices are present
USEMODULE += netdev_default
Expand Down Expand Up @@ -48,9 +45,6 @@ CFLAGS += -DDTLS_DEFAULT_PORT=$(DTLS_PORT)
# Uncomment to enable debug logs
# CFLAGS += -DCONFIG_DTLS_DEBUG

# FIXME: This is a temporary patch
CFLAGS += -DTHREAD_STACKSIZE_MAIN=\(2*THREAD_STACKSIZE_LARGE\)

# Comment this out to disable code in RIOT that does safety checking
# which is not needed in a production environment but helps in the
# development process:
Expand All @@ -59,3 +53,10 @@ DEVELHELP ?= 1
QUIET ?= 1

include $(RIOTBASE)/Makefile.include

# FIXME: This is a temporary patch
ifeq (,$(filter arch_avr8,$(FEATURES_USED)))
CFLAGS += -DTHREAD_STACKSIZE_MAIN=\(2*THREAD_STACKSIZE_LARGE\)
else
CFLAGS += -DTHREAD_STACKSIZE_MAIN=\(4*THREAD_STACKSIZE_LARGE\)
endif
22 changes: 22 additions & 0 deletions examples/dtls-sock/Makefile.ci
Original file line number Diff line number Diff line change
@@ -1,18 +1,34 @@
BOARD_INSUFFICIENT_MEMORY := \
airfy-beacon \
arduino-duemilanove \
arduino-leonardo \
arduino-mega2560 \
arduino-nano \
arduino-uno \
atmega1284p \
atmega328p \
atmega328p-xplained-mini \
atmega8 \
atxmega-a3bu-xplained \
b-l072z-lrwan1 \
blackpill-stm32f103c8 \
blackpill-stm32f103cb \
bluepill-stm32f030c8 \
bluepill-stm32f103c8 \
bluepill-stm32f103cb \
calliope-mini \
derfmega12 \
derfmega128 \
hifive1 \
hifive1b \
i-nucleo-lrwan1 \
im880b \
lsn50 \
mega-xplained \
microbit \
microduino-corerf \
msb-430 \
msb-430h \
nrf51dongle \
nrf6310 \
nucleo-f030r8 \
Expand All @@ -26,6 +42,8 @@ BOARD_INSUFFICIENT_MEMORY := \
nucleo-l011k4 \
nucleo-l031k6 \
nucleo-l053r8 \
olimex-msp430-h1611 \
olimex-msp430-h2618 \
samd10-xmini \
saml10-xpro \
saml11-xpro \
Expand All @@ -37,5 +55,9 @@ BOARD_INSUFFICIENT_MEMORY := \
stm32g0316-disco \
stm32l0538-disco \
stm32mp157c-dk2 \
telosb \
waspmote-pro \
yunjia-nrf51822 \
z1 \
zigduino \
#

0 comments on commit 75512d5

Please sign in to comment.