coreboot/payloads/libpayload/tests
Julius Werner 4ccb4a78c4 libpayload: Use Kconfig instead of weak symbol for arch_ndelay()
Weak symbols don't work as expected when you want to override them from
within the same static library. This patch changes the arch_ndelay()
function so that instead of having a weak generic implementation, the
choice between generic implementation and an arch-specific override is
explicitly made by Kconfig. Let's also drop the "arch_" prefix and just
call this ndelay().

Change-Id: Ie4fe2734e0683fa3537e2ebcabfe067e7499463a
Signed-off-by: Julius Werner <jwerner@chromium.org>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/87776
Reviewed-by: Yu-Ping Wu <yupingso@google.com>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Subrata Banik <subratabanik@google.com>
Reviewed-by: Jakub "Kuba" Czapiga <czapiga@google.com>
2025-05-22 19:27:30 +00:00
..
data libpayload: initial test case + tiny "framework" 2013-03-22 00:35:32 +01:00
drivers libpayload: Use Kconfig instead of weak symbol for arch_ndelay() 2025-05-22 19:27:30 +00:00
include libpayload: Implement new CBFS access API 2022-01-10 14:30:04 +00:00
libc payloads: Rename Makefiles from .inc to .mk 2024-01-24 10:15:10 +00:00
libcbfs Treewide: Fix incorrect SPDX license strings 2024-02-18 01:55:57 +00:00
mocks treewide: Move stdlib.h to commonlib 2024-03-15 10:09:43 +00:00
libpayload-config.h libpayload: Change CONFIG_X86_SERIAL_CONSOLE to CONFIG_8250_SERIAL_CONSOLE 2014-08-28 01:40:48 +02:00
Makefile.mk payloads/libpayload: Add Wno-address-of-packed-member flag 2024-10-15 18:55:32 +00:00