36b6f367c0
This adds a test case for using CBFS images that reside in RAM and a Makefile to run it (and maybe other tests in the future). The test concerns an issue in libcbfs when using x86 style CBFS images in non-canonical locations (eg. when loading CBFS images for processing). Use with "make run" inside the tests directory. Change-Id: I1af3792a1451728ff9594ba7f0410027cdecb59d Signed-off-by: Patrick Georgi <patrick@georgi-clan.de> Reviewed-on: http://review.coreboot.org/2623 Tested-by: build bot (Jenkins) Reviewed-by: Stefan Reinauer <stefan.reinauer@coreboot.org>
13 lines
271 B
Makefile
13 lines
271 B
Makefile
CC=gcc -g -m32
|
|
INCLUDES=-I. -I../include -I../include/x86
|
|
TARGETS=cbfs-x86-test
|
|
|
|
cbfs-x86-test: cbfs-x86-test.c ../arch/x86/rom_media.c ../libcbfs/ram_media.c ../libcbfs/cbfs.c
|
|
$(CC) -o $@ $^ $(INCLUDES)
|
|
|
|
|
|
all: $(TARGETS)
|
|
|
|
run: all
|
|
for i in $(TARGETS); do ./$$i; done
|
|
|