98eeb96135
This patch creates a new commonlib/bsd subdirectory with a similar purpose to the existing commonlib, with the difference that all files under this subdirectory shall be licensed under the BSD-3-Clause license (or compatible permissive license). The goal is to allow more code to be shared with libpayload in the future. Initially, I'm going to move a few files there that have already been BSD-licensed in the existing commonlib. I am also exracting most contents of the often-needed <commonlib/helpers.h> as long as they have either been written by me (and are hereby relicensed) or have an existing equivalent in BSD-licensed libpayload code. I am also relicensing <commonlib/compression.h> (written by me) and <commonlib/compiler.h> (same stuff exists in libpayload). Finally, I am extracting the cb_err error code definitions from <types.h> into a new BSD-licensed header so that future commonlib/bsd code can build upon a common set of error values. I am making the assumption here that the enum constants and the half-sentence fragments of documentation next to them by themselves do not meet the threshold of copyrightability. Change-Id: I316cea70930f131e8e93d4218542ddb5ae4b63a2 Signed-off-by: Julius Werner <jwerner@chromium.org> Reviewed-on: https://review.coreboot.org/c/coreboot/+/38420 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Patrick Rudolph <siro@das-labor.org>
40 lines
867 B
Makefile
40 lines
867 B
Makefile
subdirs-y += storage
|
|
|
|
bootblock-y += mem_pool.c
|
|
verstage-y += mem_pool.c
|
|
romstage-y += mem_pool.c
|
|
ramstage-y += mem_pool.c
|
|
postcar-y += mem_pool.c
|
|
|
|
bootblock-y += iobuf.c
|
|
verstage-y += iobuf.c
|
|
romstage-y += iobuf.c
|
|
ramstage-y += iobuf.c
|
|
smm-y += iobuf.c
|
|
postcar-y += iobuf.c
|
|
|
|
bootblock-y += region.c
|
|
verstage-y += region.c
|
|
romstage-y += region.c
|
|
ramstage-y += region.c
|
|
smm-y += region.c
|
|
postcar-y += region.c
|
|
|
|
ramstage-$(CONFIG_PLATFORM_USES_FSP1_1) += fsp_relocate.c
|
|
ramstage-$(CONFIG_PLATFORM_USES_FSP2_0) += fsp_relocate.c
|
|
|
|
bootblock-y += cbfs.c
|
|
verstage-y += cbfs.c
|
|
romstage-y += cbfs.c
|
|
ramstage-y += cbfs.c
|
|
smm-y += cbfs.c
|
|
postcar-y += cbfs.c
|
|
|
|
decompressor-y += bsd/lz4_wrapper.c
|
|
bootblock-y += bsd/lz4_wrapper.c
|
|
verstage-y += bsd/lz4_wrapper.c
|
|
romstage-y += bsd/lz4_wrapper.c
|
|
ramstage-y += bsd/lz4_wrapper.c
|
|
postcar-y += bsd/lz4_wrapper.c
|
|
|
|
ramstage-y += sort.c
|