coreboot/src/lib
Julius Werner b136f18772 UPSTREAM: Remove libverstage as separate library and source file class
In builds without CONFIG_VBOOT_SEPARATE_VERSTAGE, verstage files are
linked directly into the bootblock or the romstage. However, they're
still compiled with a separate "libverstage" source file class, linked
into an intermediate library and then linked into the final destination
stage.

There is no obvious benefit to doing it this way and it's unclear why it
was chosen in the first place... there are, however, obvious
disadvantages: it can result in code that is used by both libverstage
and the host stage to occur twice in the output binary. It also means
that libverstage files have their separate compiler flags that are not
necessarily aligned with the host stage, which can lead to weird effects
like <rules.h> macros not being set the way you would expect. In fact,
VBOOT_STARTS_IN_ROMSTAGE configurations are currently broken on x86
because their libverstage code that gets compiled into the romstage sets
ENV_VERSTAGE, but CAR migration code expects all ENV_VERSTAGE code to
run pre-migration.

This patch resolves these problems by removing the separate library.
There is no more difference between the 'verstage' and 'libverstage'
classes, and the source files added to them are just treated the same
way a bootblock or romstage source files in configurations where the
verstage is linked into either of these respective stages (allowing for
the normal object code deduplication and causing those files to be
compiled with the same flags as the host stage's files).

Tested this whole series by booting a Kevin, an Elm (both with and
without SEPARATE_VERSTAGE) and a Falco in normal and recovery mode.

Change-Id: I48be3be92c154c5c93e7696e39d1d65773fc6c5f
Original-Change-Id: I6bb84a9bf1cd54f2e02ca1f665740a9c88d88df4
Original-Reviewed-on: https://review.coreboot.org/18302
Original-Tested-by: build bot (Jenkins)
Original-Reviewed-by: Aaron Durbin <adurbin@chromium.org>
Original-Commit-Id: e91d170d21
Signed-off-by: Julius Werner <jwerner@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/462015
2017-03-29 13:43:09 -07:00
..
gnat UPSTREAM: Hook up libhwbase in ramstage 2016-12-21 03:12:47 -08:00
b64_decode.c UPSTREAM: src/lib: Add "int" following "unsigned" 2017-03-10 10:54:42 -08:00
boot_device.c UPSTREAM: lib/boot_device: add RW boot device construct 2016-08-19 14:20:23 -07:00
bootblock.c UPSTREAM: src/lib: Move asmlinkage before type 2017-03-14 07:25:28 -07:00
bootmem.c lib/bootmem: allow architecture specific bootmem ranges 2016-04-21 20:46:45 +02:00
bootmode.c UPSTREAM: bootmode: Get rid of CONFIG_BOOTMODE_STRAPS 2016-07-28 22:56:28 -07:00
cbfs.c UPSTREAM: src/lib: Fix space between type, * and variable name 2017-03-10 10:54:42 -08:00
cbmem_common.c UPSTREAM: src/lib: Wrap lines at 80 columns 2017-03-14 07:25:27 -07:00
cbmem_console.c UPSTREAM: cbmem_console: Remove "buffer_" prefix from all structure fields 2017-02-09 14:58:27 -08:00
cbmem_stage_cache.c tree: drop last paragraph of GPL copyright header 2015-10-31 21:37:39 +01:00
compute_ip_checksum.c UPSTREAM: src/lib: Wrap lines at 80 columns 2017-03-14 07:25:27 -07:00
coreboot_table.c UPSTREAM: src/lib: Wrap lines at 80 columns 2017-03-14 07:25:27 -07:00
debug.c UPSTREAM: src/lib: Add "int" following "unsigned" 2017-03-10 10:54:42 -08:00
delay.c UPSTREAM: src/lib: Add space before ( 2017-03-10 10:54:43 -08:00
edid.c UPSTREAM: src/lib: Clean up general issues found by checkpatch.pl 2017-03-16 11:25:34 -07:00
ext_stage_cache.c UPSTREAM: soc/intel/apollolake: Implement stage cache to improve resume time 2016-10-11 14:31:54 -07:00
fallback_boot.c UPSTREAM: pc80: Move set_boot_successful() 2016-12-16 01:49:05 -08:00
fmap.c UPSTREAM: lib/fmap: provide RW region device support 2016-08-22 00:11:45 -07:00
gcc.c UPSTREAM: src/lib: Move asmlinkage before type 2017-03-14 07:25:28 -07:00
gcov-glue.c UPSTREAM: src/lib: Clean up general issues found by checkpatch.pl 2017-03-16 11:25:34 -07:00
gcov-io.c UPSTREAM: src/lib: Use tabs instead of spaces 2017-03-13 13:07:57 -07:00
gcov-io.h UPSTREAM: src/lib: Fix brace positions 2017-03-14 07:25:28 -07:00
gcov-iov.h Implement GCC code coverage analysis 2013-01-12 19:09:55 +01:00
generic_dump_spd.c UPSTREAM: src/lib: Add space before ( 2017-03-10 10:54:43 -08:00
generic_sdram.c UPSTREAM: src/lib: Wrap lines at 80 columns 2017-03-14 07:25:27 -07:00
gpio.c UPSTREAM: src/lib: Add space before ( 2017-03-10 10:54:43 -08:00
halt.c UPSTREAM: src/lib: Fix brace positions 2017-03-14 07:25:28 -07:00
hardwaremain.c UPSTREAM: src/lib: Use tabs instead of spaces 2017-03-13 13:07:57 -07:00
hexdump.c lib/hexdump: Refactor to skip lines with all ones as well 2016-01-22 14:10:28 +01:00
hexstrtobin.c UPSTREAM: hexstrtobin: Add a library function to decode ASCII hex into binary 2016-05-26 03:21:43 -07:00
hw-time-timer.adb UPSTREAM: Hook up libhwbase in ramstage 2016-12-21 03:12:47 -08:00
imd.c UPSTREAM: src/lib: Remove unnecessary code 2017-03-14 07:25:37 -07:00
imd_cbmem.c UPSTREAM: src/lib: Use tabs instead of spaces 2017-03-13 13:07:57 -07:00
jpeg.c UPSTREAM: src/lib: Move assignment out of if condition 2017-03-16 11:25:33 -07:00
jpeg.h UPSTREAM: src/lib: Wrap lines at 80 columns 2017-03-14 07:25:27 -07:00
libgcc.c tree: drop last paragraph of GPL copyright header 2015-10-31 21:37:39 +01:00
libgcov.c UPSTREAM: src/lib: Move assignment out of if condition 2017-03-16 11:25:33 -07:00
lzma.c UPSTREAM: src/lib: Wrap lines at 80 columns 2017-03-14 07:25:27 -07:00
lzmadecode.c UPSTREAM: src/lib: Remove semicolon from end of macro 2017-03-14 07:25:37 -07:00
lzmadecode.h UPSTREAM: src/lib: Wrap lines at 80 columns 2017-03-14 07:25:27 -07:00
Makefile.inc UPSTREAM: Remove libverstage as separate library and source file class 2017-03-29 13:43:09 -07:00
malloc.c Remove leftover smi_get_tseg_base 2015-05-29 07:06:37 +02:00
memchr.c Add an implementation for the memchr library function 2012-03-09 20:00:53 +01:00
memcmp.c UPSTREAM: src/lib: Add space before ( 2017-03-10 10:54:43 -08:00
memcpy.c fix compiler warnings (trivial) 2009-01-20 21:40:16 +00:00
memmove.c UPSTREAM: src/lib: Add space before ( 2017-03-10 10:54:43 -08:00
memrange.c UPSTREAM: src/lib: Use tabs instead of spaces 2017-03-13 13:07:57 -07:00
memset.c fix compiler warnings (trivial) 2009-01-20 21:40:16 +00:00
nhlt.c UPSTREAM: lib/nhlt: add support for setting the oem_revision 2016-12-02 14:23:05 -08:00
primitive_memtest.c UPSTREAM: src/lib: Add space before ( 2017-03-10 10:54:43 -08:00
prog_loaders.c UPSTREAM: src/lib: Remove unnecessary code 2017-03-14 07:25:37 -07:00
prog_ops.c lib/prog_loading: introduce prog_segment_loaded() 2016-04-02 03:56:37 +02:00
program.ld UPSTREAM: lib/program.ld: add .sdata sections 2016-11-03 14:44:10 -07:00
ramtest.c UPSTREAM: src/lib: Remove unnecessary code 2017-03-14 07:25:37 -07:00
reg_script.c UPSTREAM: src/lib: Clean up general issues found by checkpatch.pl 2017-03-16 11:25:34 -07:00
region_file.c UPSTREAM: lib: add region file support 2016-12-09 03:29:43 -08:00
rmodule.c UPSTREAM: src/lib: Use tabs instead of spaces 2017-03-13 13:07:57 -07:00
rmodule.ld rmodule: use program.ld for linking 2015-09-09 19:35:30 +00:00
romstage_handoff.c UPSTREAM: lib: put romstage_handoff implementation in own compilation unit 2016-12-02 14:23:00 -08:00
romstage_stack.c UPSTREAM: intel post-car: Increase stacktop alignment 2016-11-21 11:53:20 -08:00
rtc.c UPSTREAM: lib: Add real-time-clock functions 2016-07-07 01:08:44 -07:00
selfboot.c UPSTREAM: src/lib: Wrap lines at 80 columns 2017-03-14 07:25:27 -07:00
spd_bin.c UPSTREAM: src/lib: Wrap lines at 80 columns 2017-03-14 07:25:27 -07:00
stack.c UPSTREAM: src/lib: Wrap lines at 80 columns 2017-03-14 07:25:27 -07:00
thread.c UPSTREAM: src/lib: Wrap lines at 80 columns 2017-03-14 07:25:27 -07:00
timer.c UPSTREAM: src/lib: Clean up general issues found by checkpatch.pl 2017-03-16 11:25:34 -07:00
timer_queue.c UPSTREAM: src/lib: Fix spacing 2017-03-14 07:25:24 -07:00
timestamp.c UPSTREAM: src/lib: Fix space between type, * and variable name 2017-03-10 10:54:42 -08:00
tlcl.c UPSTREAM: src/lib: Clean up general issues found by checkpatch.pl 2017-03-16 11:25:34 -07:00
tlcl_internal.h UPSTREAM: src/lib: Fix brace positions 2017-03-14 07:25:28 -07:00
tlcl_structures.h UPSTREAM: src/lib: Wrap lines at 80 columns 2017-03-14 07:25:27 -07:00
tpm2_marshaling.c UPSTREAM: cr50: add unmarshaling of vendor commands and process 'enable_update' 2017-03-25 13:37:59 -07:00
tpm2_marshaling.h tpm2: avoid comparison between signed and unsigned ints 2016-07-07 19:30:09 -07:00
tpm2_tlcl.c UPSTREAM: cr50: add unmarshaling of vendor commands and process 'enable_update' 2017-03-25 13:37:59 -07:00
tpm2_tlcl_structures.h UPSTREAM: cr50: add unmarshaling of vendor commands and process 'enable_update' 2017-03-25 13:37:59 -07:00
tpm_error_messages.h UPSTREAM: src/lib: Wrap lines at 80 columns 2017-03-14 07:25:27 -07:00
trace.c UPSTREAM: src/lib: Fix checkpatch warnings 2016-09-08 17:57:25 -07:00
version.c UPSTREAM: lib/version: Correct whitespace alignment 2016-07-15 08:39:33 -07:00
wrdd.c lib: Implement framework for retrieving WiFi regulatory domain 2016-03-08 18:41:33 +01:00