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 <jacz@semihalf.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/59696
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Patrick Georgi <patrick@coreboot.org>
This commit is contained in:
Jakub Czapiga 2021-11-23 08:43:25 +00:00 committed by Patrick Georgi
parent 6ba7bee1aa
commit ea619425ee
4 changed files with 4 additions and 4 deletions

View File

@ -1,4 +1,4 @@
/* SPDX-License-Identifier: GPL-2.0-only */ /* SPDX-License-Identifier: BSD-3-Clause */
#ifndef _CBMEM_ID_H_ #ifndef _CBMEM_ID_H_
#define _CBMEM_ID_H_ #define _CBMEM_ID_H_

View File

@ -3,7 +3,7 @@
#ifndef _CBMEM_H_ #ifndef _CBMEM_H_
#define _CBMEM_H_ #define _CBMEM_H_
#include <commonlib/cbmem_id.h> #include <commonlib/bsd/cbmem_id.h>
#include <stddef.h> #include <stddef.h>
#include <stdint.h> #include <stdint.h>
#include <boot/coreboot_tables.h> #include <boot/coreboot_tables.h>

View File

@ -2,7 +2,7 @@
#include <tests/test.h> #include <tests/test.h>
#include <cbmem.h> #include <cbmem.h>
#include <commonlib/cbmem_id.h> #include <commonlib/bsd/cbmem_id.h>
#include <stage_cache.h> #include <stage_cache.h>
#define CBMEM_SIZE (32 * KiB) #define CBMEM_SIZE (32 * KiB)

View File

@ -17,7 +17,7 @@
#include <libgen.h> #include <libgen.h>
#include <assert.h> #include <assert.h>
#include <regex.h> #include <regex.h>
#include <commonlib/cbmem_id.h> #include <commonlib/bsd/cbmem_id.h>
#include <commonlib/timestamp_serialized.h> #include <commonlib/timestamp_serialized.h>
#include <commonlib/tcpa_log_serialized.h> #include <commonlib/tcpa_log_serialized.h>
#include <commonlib/coreboot_tables.h> #include <commonlib/coreboot_tables.h>