libpayload/arch/mock: Select ARCH_HAS_NDELAY for ARCH_MOCK

Unit tests should always use a mock ndelay() defined within each test.
Therefore, select ARCH_HAS_NDELAY for ARCH_MOCK.

Change-Id: I2680e37034d4d13058b3e778d72e63fc6ed18313
Signed-off-by: Yu-Ping Wu <yupingso@chromium.org>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/87855
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Julius Werner <jwerner@chromium.org>
This commit is contained in:
Yu-Ping Wu 2025-05-27 14:40:24 +08:00 committed by Yu-Ping Wu
commit 508d910ed4
2 changed files with 1 additions and 1 deletions

View file

@ -3,6 +3,7 @@
config ARCH_MOCK
select LITTLE_ENDIAN if !ARCH_MOCK_BIG_ENDIAN
select BIG_ENDIAN if ARCH_MOCK_BIG_ENDIAN
select ARCH_HAS_NDELAY
if ARCH_MOCK

View file

@ -8,4 +8,3 @@ graphics-test-srcs += libc/fpmath.c
speaker-test-srcs += tests/drivers/speaker-test.c
speaker-test-mocks += inb
speaker-test-mocks += outb
speaker-test-mocks += ndelay