From ea619425eebd17d9a850792cda598432cb139689 Mon Sep 17 00:00:00 2001 From: Jakub Czapiga Date: Tue, 23 Nov 2021 08:43:25 +0000 Subject: [PATCH] commonlib: Move commonlib/cbmem_id.h to commonlib/bsd/ Libpayload requires cbmem_id.h file to support extracting values from CBMEM IMD entries of coreboot tables. Libpayload use BSD-3-Clause license, and all of its files used to compile a static library have to use it too. Change-Id: I97c080e34ebdbcdf14fe3a3c9515b1dea8ede179 Signed-off-by: Jakub Czapiga Reviewed-on: https://review.coreboot.org/c/coreboot/+/59696 Tested-by: build bot (Jenkins) Reviewed-by: Patrick Georgi --- .../{include/commonlib => bsd/include/commonlib/bsd}/cbmem_id.h | 2 +- src/include/cbmem.h | 2 +- tests/lib/cbmem_stage_cache-test.c | 2 +- util/cbmem/cbmem.c | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) rename src/commonlib/{include/commonlib => bsd/include/commonlib/bsd}/cbmem_id.h (99%) diff --git a/src/commonlib/include/commonlib/cbmem_id.h b/src/commonlib/bsd/include/commonlib/bsd/cbmem_id.h similarity index 99% rename from src/commonlib/include/commonlib/cbmem_id.h rename to src/commonlib/bsd/include/commonlib/bsd/cbmem_id.h index d1508110c0..4c13535fb7 100644 --- a/src/commonlib/include/commonlib/cbmem_id.h +++ b/src/commonlib/bsd/include/commonlib/bsd/cbmem_id.h @@ -1,4 +1,4 @@ -/* SPDX-License-Identifier: GPL-2.0-only */ +/* SPDX-License-Identifier: BSD-3-Clause */ #ifndef _CBMEM_ID_H_ #define _CBMEM_ID_H_ diff --git a/src/include/cbmem.h b/src/include/cbmem.h index ec2b928ff8..cd7751cab1 100644 --- a/src/include/cbmem.h +++ b/src/include/cbmem.h @@ -3,7 +3,7 @@ #ifndef _CBMEM_H_ #define _CBMEM_H_ -#include +#include #include #include #include diff --git a/tests/lib/cbmem_stage_cache-test.c b/tests/lib/cbmem_stage_cache-test.c index 8a07e6fabe..070f4318ca 100644 --- a/tests/lib/cbmem_stage_cache-test.c +++ b/tests/lib/cbmem_stage_cache-test.c @@ -2,7 +2,7 @@ #include #include -#include +#include #include #define CBMEM_SIZE (32 * KiB) diff --git a/util/cbmem/cbmem.c b/util/cbmem/cbmem.c index 085e004606..bff863f3b8 100644 --- a/util/cbmem/cbmem.c +++ b/util/cbmem/cbmem.c @@ -17,7 +17,7 @@ #include #include #include -#include +#include #include #include #include