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:
parent
96ac0224ab
commit
508d910ed4
2 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue