From 5d01ec0f80cc8379df17ed9a922de37b487770b4 Mon Sep 17 00:00:00 2001 From: "Ronald G. Minnich" Date: Tue, 31 Mar 2009 11:57:36 +0000 Subject: This patch adds Jordan's romtool support for v2. There are a few changes. The 20K bootblock size restriction is gone. ROMFS has been tested and works on v2 with qemu and kontron. Once this patch is in, those patches will follow. Signed-off-by: Ronald G. Minnich Acked-by: Patrick Georgi git-svn-id: svn://svn.coreboot.org/coreboot/trunk@4032 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1 --- util/romtool/tools/Makefile | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 util/romtool/tools/Makefile (limited to 'util/romtool/tools/Makefile') diff --git a/util/romtool/tools/Makefile b/util/romtool/tools/Makefile new file mode 100644 index 0000000000..1d1912a4f7 --- /dev/null +++ b/util/romtool/tools/Makefile @@ -0,0 +1,27 @@ +CC=gcc +CFLAGS=-Wall -Werror -g + +LZMA_OBJ := lzma/LZMAEncoder.o lzma/LZInWindow.o +LZMA_OBJ += lzma/RangeCoderBit.o lzma/StreamUtils.o +LZMA_OBJ += lzma/OutBuffer.o lzma/Alloc.o +LZMA_OBJ += lzma/CRC.o +LZMA_OBJ += lzma/lzma-compress.o + +COMMON= common.o compress.o $(LZMA_OBJ) + +all: rom-mkstage rom-mkpayload + +rom-mkstage: rom-mkstage.o $(COMMON) + $(CXX) -g -o $@ rom-mkstage.o $(COMMON) + +rom-mkpayload: rom-mkpayload.o $(COMMON) + $(CXX) -o $@ rom-mkpayload.o $(COMMON) + +include lzma/Makefile + +%.o: %.c + $(CC) -Wall -Werror -g -c -o $@ $< + +clean: + @ rm -f rom-mkpayload.o rom-mkstage.o $(COMMON) + @ rm -f rom-mkpayload rom-mkstage -- cgit v1.2.3