mirror of
https://github.com/Telecominfraproject/OpenCellular.git
synced 2026-01-13 11:25:14 +00:00
test/build.mk: Allow boards to specify test lists
Some tests cannot be built on some boards (not enough SRAM, unusual configuration, etc.). Instead of the long list of exceptions in test/build.mk that we currently use, allow each board (or chip) build.mk to set test-list-y, and only use the default list if it is unset. BRANCH=poppy BUG=b:80167548 TEST=make buildalltests -j Change-Id: I803c691f419451aad4396529302a4805cbe3f9b5 Signed-off-by: Nicolas Boichat <drinkcat@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/1074572 Reviewed-by: Vincent Palatin <vpalatin@chromium.org>
This commit is contained in:
committed by
chrome-bot
parent
cadc0f2513
commit
fe70db8925
@@ -10,5 +10,8 @@ CHIP:=stm32
|
||||
CHIP_FAMILY:=stm32f0
|
||||
CHIP_VARIANT:=stm32f07x
|
||||
|
||||
# Not enough SRAM: Disable all tests
|
||||
test-list-y=
|
||||
|
||||
board-y=board.o
|
||||
board-$(CONFIG_USB_POWER_DELIVERY)+=usb_pd_policy.o
|
||||
|
||||
@@ -10,6 +10,9 @@ CHIP:=stm32
|
||||
CHIP_FAMILY:=stm32f0
|
||||
CHIP_VARIANT:=stm32f05x
|
||||
|
||||
# Not enough SRAM: Disable all tests
|
||||
test-list-y=
|
||||
|
||||
board-y=board.o
|
||||
|
||||
# This target builds RW only. Therefore, remove RO from dependencies.
|
||||
|
||||
@@ -10,4 +10,7 @@ CHIP:=nrf51
|
||||
CHIP_FAMILY:=nrf51x22
|
||||
CHIP_VARIANT:=nrf51822
|
||||
|
||||
# Hadoken does not support scratchpad
|
||||
test-list-y=
|
||||
|
||||
board-y=board.o
|
||||
|
||||
@@ -10,5 +10,8 @@ CHIP:=stm32
|
||||
CHIP_FAMILY:=stm32f0
|
||||
CHIP_VARIANT:=stm32f07x
|
||||
|
||||
# Build tests that we care about for hammer
|
||||
test-list-y=entropy rsa3 sha256 sha256_unrolled x25519
|
||||
|
||||
board-y=board.o
|
||||
board-$(CONFIG_BATTERY_SMART)+=battery.o
|
||||
|
||||
@@ -9,4 +9,8 @@
|
||||
# the IC is TI Stellaris LM4
|
||||
CHIP:=lm4
|
||||
|
||||
# Samus has board-specific chipset code, and the tests don't
|
||||
# compile with it. Disable them for now.
|
||||
test-list-y=
|
||||
|
||||
board-y=battery.o board.o power_sequence.o panel.o extpower.o
|
||||
|
||||
@@ -10,5 +10,8 @@ CHIP:=stm32
|
||||
CHIP_FAMILY:=stm32f0
|
||||
CHIP_VARIANT:=stm32f07x
|
||||
|
||||
# Not enough SRAM: Disable all tests
|
||||
test-list-y=
|
||||
|
||||
board-y=board.o
|
||||
board-$(CONFIG_USB_POWER_DELIVERY)+=usb_mux.o usb_pd_policy.o
|
||||
|
||||
@@ -10,6 +10,9 @@ CHIP:=stm32
|
||||
CHIP_FAMILY:=stm32f0
|
||||
CHIP_VARIANT:=stm32f07x
|
||||
|
||||
# Not enough SRAM: Disable all tests
|
||||
test-list-y=
|
||||
|
||||
board-y=board.o
|
||||
board-$(CONFIG_USB_POWER_DELIVERY)+=usb_pd_policy.o
|
||||
|
||||
|
||||
@@ -113,6 +113,9 @@ dirs-y += chip/g/dcrypto
|
||||
dirs-y += chip/g/loader
|
||||
endif
|
||||
|
||||
# Do not build any test on chip/g
|
||||
test-list-y=
|
||||
|
||||
%.hex: %.flat
|
||||
|
||||
ifneq ($(CONFIG_RW_B),)
|
||||
|
||||
@@ -6,33 +6,9 @@
|
||||
# on-board test binaries build
|
||||
#
|
||||
|
||||
test-list-y=pingpong timer_calib timer_dos timer_jump mutex utils utils_str
|
||||
test-list-y ?= pingpong timer_calib timer_dos timer_jump mutex utils utils_str
|
||||
#disable: powerdemo
|
||||
|
||||
test-list-$(BOARD_BDS)+=
|
||||
|
||||
test-list-$(BOARD_HAMMER)+=entropy rsa3
|
||||
|
||||
# Samus has board-specific chipset code, and the tests don't
|
||||
# compile with it. Disable them for now.
|
||||
test-list-$(BOARD_SAMUS)=
|
||||
|
||||
# So does anything that runs on chip/g
|
||||
ifneq ($(CHIP_G),)
|
||||
test-list-y=
|
||||
endif
|
||||
|
||||
# Hadoken does not support scratchpad
|
||||
test-list-$(BOARD_HADOKEN)=
|
||||
|
||||
# For some tests, we are running out of RAM. Disable them for now.
|
||||
test-list-$(BOARD_GLADOS_PD)=
|
||||
test-list-$(BOARD_CHELL_PD)=
|
||||
test-list-$(BOARD_OAK_PD)=
|
||||
test-list-$(BOARD_SAMUS_PD)=
|
||||
test-list-$(BOARD_COFFEECAKE)=
|
||||
test-list-$(BOARD_SERVO_V4)=
|
||||
|
||||
# Emulator tests
|
||||
ifneq ($(TEST_LIST_HOST),)
|
||||
test-list-host=$(TEST_LIST_HOST)
|
||||
|
||||
Reference in New Issue
Block a user