From 1e113bc8783837fb8c2ad12d8984e33bbeab486f Mon Sep 17 00:00:00 2001 From: Julius Werner Date: Tue, 20 Feb 2024 13:42:17 -0800 Subject: libpayload: Remove legacy CBFS API It's been several years already since we announced the deprecation of the legacy CBFS API for payloads. It's time to remove it completely. Change-Id: I0ed157ac2d1376b8dff4537af9a63731064b45f6 Signed-off-by: Julius Werner Reviewed-on: https://review.coreboot.org/c/coreboot/+/80650 Reviewed-by: Nico Huber Reviewed-by: Jakub Czapiga Reviewed-by: Arthur Heymans Reviewed-by: Lean Sheng Tan Tested-by: build bot (Jenkins) Reviewed-by: Maximilian Brune --- payloads/libpayload/arch/mock/Makefile.mk | 2 -- payloads/libpayload/arch/mock/mock_media.c | 10 ---------- 2 files changed, 12 deletions(-) delete mode 100644 payloads/libpayload/arch/mock/mock_media.c (limited to 'payloads/libpayload/arch/mock') diff --git a/payloads/libpayload/arch/mock/Makefile.mk b/payloads/libpayload/arch/mock/Makefile.mk index 415886af60..e3f10a69ed 100644 --- a/payloads/libpayload/arch/mock/Makefile.mk +++ b/payloads/libpayload/arch/mock/Makefile.mk @@ -4,6 +4,4 @@ head.o-y += head.c libc-y += virtual.c -libcbfs-$(CONFIG_LP_CBFS) += mock_media.c - CFLAGS += -Wno-address-of-packed-member diff --git a/payloads/libpayload/arch/mock/mock_media.c b/payloads/libpayload/arch/mock/mock_media.c deleted file mode 100644 index 2bb06edc29..0000000000 --- a/payloads/libpayload/arch/mock/mock_media.c +++ /dev/null @@ -1,10 +0,0 @@ -/* SPDX-License-Identifier: GPL-2.0-only */ - -#include - -int libpayload_init_default_cbfs_media(struct cbfs_media *media); - -__attribute__((weak)) int libpayload_init_default_cbfs_media(struct cbfs_media *media) -{ - return -1; -} -- cgit v1.2.3