1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

Merge pull request #12608 from aabadie/pr/pkg/hacl_arch_32bit

pkg: tests: handle arch requirements at pkg level, remove useless board blacklist
This commit is contained in:
Kaspar Schleiser 2019-11-04 15:20:03 +01:00 committed by GitHub
commit b8b7606a7c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
30 changed files with 49 additions and 116 deletions

View File

@ -7,13 +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
BOARD_BLACKLIST := arduino-duemilanove arduino-leonardo \
arduino-mega2560 arduino-nano arduino-uno atmega328p \
chronos mega-xplained microduino-corerf \
msb-430 msb-430h telosb waspmote-pro wsn430-v1_3b \
wsn430-v1_4 z1
# Include packages that pull up and auto-init the link layer.
# NOTE: 6LoWPAN will be included if IEEE802.15.4 devices are present
USEMODULE += gnrc_netdev_default

View File

@ -7,9 +7,6 @@ BOARD ?= native
# This has to be the absolute path to the RIOT base directory:
RIOTBASE ?= $(CURDIR)/../..
# wolfSSL supports 32-bit architectures only
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 += gnrc_netdev_default

View File

@ -7,12 +7,6 @@ BOARD ?= native
# This has to be the absolute path to the RIOT base directory:
RIOTBASE ?= $(CURDIR)/../..
BOARD_BLACKLIST := arduino-duemilanove arduino-leonardo arduino-mega2560 \
arduino-nano arduino-uno atmega328p chronos \
msb-430 msb-430h telosb waspmote-pro wsn430-v1_3b \
wsn430-v1_4 z1 pic32-wifire pic32-clicker \
mega-xplained microduino-corerf
# 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:

View File

@ -6,12 +6,6 @@ BOARD ?= native
# This has to be the absolute path to the RIOT base directory:
RIOTBASE ?= $(CURDIR)/../..
BOARD_BLACKLIST := arduino-duemilanove arduino-leonardo \
arduino-mega2560 arduino-nano arduino-uno atmega328p \
chronos hifive1 hifive1b mega-xplained microduino-corerf \
msb-430 msb-430h pic32-clicker pic32-wifire telosb \
waspmote-pro wsn430-v1_3b wsn430-v1_4 z1
# 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:

View File

@ -6,12 +6,6 @@ BOARD ?= native
# This has to be the absolute path to the RIOT base directory:
RIOTBASE ?= $(CURDIR)/../..
BOARD_BLACKLIST := arduino-duemilanove arduino-leonardo \
arduino-mega2560 arduino-nano \
arduino-uno atmega328p chronos hifive1 hifive1b \
mega-xplained microduino-corerf msb-430 msb-430h pic32-clicker \
pic32-wifire telosb waspmote-pro wsn430-v1_3b wsn430-v1_4 z1
# 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:

2
pkg/cifra/Makefile.dep Normal file
View File

@ -0,0 +1,2 @@
# Cifra is only supported by 32 bit architectures
FEATURES_REQUIRED += arch_32bit

View File

@ -1 +1,4 @@
USEMODULE += posix_headers
# CN-CBOR is only supported by 32 bit architectures
FEATURES_REQUIRED += arch_32bit

View File

@ -1 +1,4 @@
USEMODULE+=random
# HACL is only supported by 32 bit architectures
FEATURES_REQUIRED += arch_32bit

View File

@ -2,3 +2,9 @@ ifneq (,$(filter jerryscript,$(USEPKG)))
USEMODULE += jerryport-minimal
USEMODULE += jerryscript-ext
endif
# Jerryscript is only supported by 32-bit architectures
FEATURES_REQUIRED += arch_32bit
# Jerryscript is not supported on MIPS because of missing stdin over UART
FEATURES_BLACKLIST += arch_mips32r2

View File

@ -3,3 +3,6 @@ ifneq (,$(filter libcoap,$(USEPKG)))
USEMODULE += posix_headers
USEMODULE += gnrc_sock_udp
endif
# libcoap is only supported by 32 bit architectures
FEATURES_REQUIRED += arch_32bit

View File

@ -1 +1,6 @@
USEMODULE += random
# libhydrogen is only supported by 32 bit architectures
# AVR boards: require avr-gcc >= 7.0 (https://gcc.gnu.org/bugzilla/show_bug.cgi?id=60040)
# MSP430 boards: invalid alignment of 'hydro_random_context'
FEATURES_REQUIRED += arch_32bit

View File

@ -1,3 +1,14 @@
USEPKG += tlsf
USEMODULE += lua-contrib
USEMODULE += printf_float
# LUA is only supported by 32-bit architectures
FEATURES_REQUIRED += arch_32bit
# LUA is not supported on MIPS because of missing stdin over UART
FEATURES_BLACKLIST += arch_mips32r2
# LUA is not supported on RISCV because of build issues with the toolchain
# (undefined reference to _times, _unlink and _link functions in provided
# newlib nano).
FEATURES_BLACKLIST += arch_riscv

View File

@ -0,0 +1,2 @@
# micro-ecc is not 16 bit compatible
FEATURES_BLACKLIST += arch_16bit

View File

@ -1 +1,4 @@
USEMODULE += monocypher_sha512
# monocypher is only supported by 32 bit architectures
FEATURES_REQUIRED += arch_32bit

View File

@ -5,3 +5,6 @@ endif
ifneq (,$(filter atmega_common,$(USEMODULE)))
USEMODULE += qDSA_asm
endif
# qDsa is not 16 bit compatible
FEATURES_BLACKLIST += arch_16bit

View File

@ -0,0 +1,2 @@
# tinycbor is only supported by 32 bit architectures
FEATURES_REQUIRED += arch_32bit

View File

@ -8,3 +8,6 @@ ifneq (,$(filter tinydtls,$(USEMODULE)))
USEMODULE += tinydtls_aes
USEMODULE += tinydtls_ecc
endif
# TinyDTLS only has support for 32-bit architectures ATM
FEATURES_REQUIRED += arch_32bit

View File

@ -82,3 +82,6 @@ endif
ifneq (,$(filter wolfcrypt_random,$(USEMODULE)))
USEMODULE += random
endif
# wolfssl is only supported by 32 bit architectures
FEATURES_REQUIRED += arch_32bit

View File

@ -1,12 +1,5 @@
include ../Makefile.tests_common
# No 8 bit and 16 bit support
BOARD_BLACKLIST := arduino-duemilanove arduino-leonardo \
arduino-mega2560 arduino-nano arduino-uno \
atmega328p chronos mega-xplained microduino-corerf \
msb-430 msb-430h telosb waspmote-pro wsn430-v1_3b \
wsn430-v1_4 z1
USEMODULE += embunit
USEMODULE += random
USEPKG += cifra

View File

@ -1,23 +1,5 @@
include ../Makefile.tests_common
BOARD_BLACKLIST := arduino-duemilanove \
arduino-leonardo \
arduino-mega2560 \
arduino-nano \
arduino-uno \
atmega328p \
chronos \
mega-xplained \
microduino-corerf \
msb-430 \
msb-430h \
telosb \
waspmote-pro \
wsn430-v1_3b \
wsn430-v1_4 \
z1 \
#
USEPKG += cn-cbor
USEMODULE += embunit
USEMODULE += fmt

View File

@ -1,11 +1,5 @@
include ../Makefile.tests_common
BOARD_BLACKLIST := arduino-duemilanove arduino-leonardo \
arduino-mega2560 arduino-nano arduino-uno \
atmega328p chronos mega-xplained microduino-corerf \
msb-430 msb-430h telosb waspmote-pro wsn430-v1_3b \
wsn430-v1_4 z1
CFLAGS += -DTHREAD_STACKSIZE_MAIN=\(5*THREAD_STACKSIZE_DEFAULT\)
USEPKG += hacl
USEMODULE += random

View File

@ -1,11 +1,5 @@
include ../Makefile.tests_common
# msp430 and avr have problems with int width and libcoaps usage of :x notation in structs
BOARD_BLACKLIST := arduino-duemilanove arduino-leonardo \
arduino-mega2560 arduino-nano arduino-uno atmega328p \
chronos mega-xplained microduino-corerf msb-430 \
msb-430h telosb waspmote-pro wsn430-v1_3b wsn430-v1_4 z1
USEMODULE += gnrc_ipv6
USEMODULE += gnrc_sock_udp
USEPKG += libcoap

View File

@ -1,15 +1,7 @@
include ../Makefile.tests_common
# HACL* only compiles on 32bit platforms
BOARD_BLACKLIST := arduino-duemilanove arduino-leonardo \
arduino-mega2560 arduino-nano arduino-uno \
atmega328p chronos mega-xplained microduino-corerf \
msb-430 msb-430h telosb waspmote-pro wsn430-v1_3b \
wsn430-v1_4 z1
TEST_ON_CI_WHITELIST += native
USEPKG += libcose
# By default we use hacl as crypto backend, uncomment to use a different
# crypto backend.

View File

@ -1,12 +1,5 @@
include ../Makefile.tests_common
# AVR boards: require avr-gcc >= 7.0 (https://gcc.gnu.org/bugzilla/show_bug.cgi?id=60040)
# MSP430 boards: invalid alignment of 'hydro_random_context'
BOARD_BLACKLIST := arduino-duemilanove arduino-leonardo \
arduino-mega2560 arduino-uno atmega328p \
mega-xplained microduino-corerf waspmote-pro \
chronos msb-430 msb-430h telosb wsn430-v1_3b wsn430-v1_4 z1
USEPKG += libhydrogen
USEMODULE += embunit

View File

@ -1,8 +1,5 @@
include ../Makefile.tests_common
# micro-ecc is not 16 bit compatible
BOARD_BLACKLIST = chronos msb-430 msb-430h telosb wsn430-v1_3b wsn430-v1_4 z1
USEMODULE += hashes
USEPKG += micro-ecc

View File

@ -1,12 +1,5 @@
include ../Makefile.tests_common
# No 8 bit and 16 bit support
BOARD_BLACKLIST := arduino-duemilanove arduino-leonardo \
arduino-mega2560 arduino-nano arduino-uno \
atmega328p chronos mega-xplained microduino-corerf \
msb-430 msb-430h telosb waspmote-pro wsn430-v1_3b \
wsn430-v1_4 z1
# required for Monocypher (as described in the package documentation)
CFLAGS += "-DTHREAD_STACKSIZE_MAIN=(4096 + THREAD_STACKSIZE_DEFAULT + THREAD_EXTRA_STACKSIZE_PRINTF)"

View File

@ -1,8 +1,5 @@
include ../Makefile.tests_common
# qDSA is not 16 bit compatible
BOARD_BLACKLIST := chronos msb-430 msb-430h telosb wsn430-v1_3b wsn430-v1_4 z1
CFLAGS += -DTHREAD_STACKSIZE_MAIN=\(4*THREAD_STACKSIZE_DEFAULT\)
USEPKG += qDSA

View File

@ -1,12 +1,5 @@
include ../Makefile.tests_common
# No 8 bit and 16 bit support yet
BOARD_BLACKLIST := arduino-duemilanove arduino-leonardo \
arduino-mega2560 arduino-nano \
arduino-uno atmega328p chronos microduino-corerf \
mega-xplained msb-430 msb-430h telosb waspmote-pro \
wsn430-v1_3b wsn430-v1_4 z1 \
USEMODULE += embunit
USEMODULE += fmt
USEPKG += tinycbor

View File

@ -3,14 +3,6 @@ include ../Makefile.tests_common
# If no BOARD is found in the environment, use this default:
BOARD ?= native
# Only 32-bit targets
BOARD_BLACKLIST := arduino-duemilanove arduino-leonardo \
arduino-mega2560 arduino-nano arduino-uno atmega328p \
chronos esp8266-esp-12x esp8266-olimex-mod \
esp8266-sparkfun-thing mega-xplained microduino-corerf \
msb-430 msb-430h telosb waspmote-pro \
wsn430-v1_3b wsn430-v1_4 z1
# This has to be the absolute path to the RIOT base directory:
RIOTBASE ?= $(CURDIR)/../..

View File

@ -3,14 +3,6 @@ include ../Makefile.tests_common
# If no BOARD is found in the environment, use this default:
BOARD ?= native
# Only 32-bit targets
BOARD_BLACKLIST := arduino-duemilanove arduino-leonardo \
arduino-mega2560 arduino-nano arduino-uno \
atmega328p chronos esp8266-esp-12x esp8266-olimex-mod \
esp8266-sparkfun-thing mega-xplained microduino-corerf \
msb-430 msb-430h telosb waspmote-pro \
wsn430-v1_3b wsn430-v1_4 z1
# This has to be the absolute path to the RIOT base directory:
RIOTBASE ?= $(CURDIR)/../..