aboutsummaryrefslogtreecommitdiff
path: root/util/intelvbttool/Makefile
diff options
context:
space:
mode:
authorPatrick Rudolph <siro@das-labor.org>2017-11-11 10:17:53 +0100
committerPhilipp Deppenwiese <zaolin.daisuki@gmail.com>2018-10-08 02:33:06 +0000
commit17856b720b2224a376ccacbfe8d4ae096387257d (patch)
tree44fce82442dc6162ed381b056b6fb276318f27bd /util/intelvbttool/Makefile
parentfd29ff35555b45d0c8a6b3ccee6825e84f0d1812 (diff)
util/intelvbttool: Rewrite tool
* Add Makefile dependency to source file * Add argument support * Add help support * Print usage on wrong arguments * Add support for parsing VBT binary file * Add support for parsing PCI Option ROM * Add support for writing VBT binary file * Add support for patching PCI Option ROM * Keep support for accessing legacy VGA area Option ROM * Keep support for dumping VBT contents to stdout Allows to extract VBT, analyse VBT and patch PCI Option ROMs as needed. The required arguments have been changed: ./intelvbttool --<SOURCECMD> [filename] --<DESTCMD> [filename] SOURCECMD set the VBT source. Supported: inlegacy : Legacy BIOS area at phys. memory 0xc0000 invbt : Read raw Intel VBT file inoprom : Read VBT from Intel Option ROM file DESTCMD set the VBT destination. Supported: outdump : Print VBT in human readable form outvbt : Write raw Intel VBT file patchoprom: Patch existing Intel Option ROM Any combination of SOURCECMD and DESTCMD is possible. Change-Id: I8cbde042c7f5632f36648419becd23e248ba6f76 Signed-off-by: Patrick Rudolph <siro@das-labor.org> Reviewed-on: https://review.coreboot.org/18902 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Philipp Deppenwiese <zaolin.daisuki@gmail.com>
Diffstat (limited to 'util/intelvbttool/Makefile')
-rw-r--r--util/intelvbttool/Makefile5
1 files changed, 3 insertions, 2 deletions
diff --git a/util/intelvbttool/Makefile b/util/intelvbttool/Makefile
index 7d50d30e1a..fb9aadefda 100644
--- a/util/intelvbttool/Makefile
+++ b/util/intelvbttool/Makefile
@@ -15,12 +15,13 @@
PROGRAM = intelvbttool
CC ?= gcc
-CFLAGS ?= -O2
+CFLAGS ?= -O2 -g
CFLAGS += -Wall -Werror
+CFLAGS += -I../../src/commonlib/include
all: $(PROGRAM)
-$(PROGRAM):
+$(PROGRAM): $(PROGRAM).c
$(CC) $(CFLAGS) $(CPPFLAGS) $(PROGRAM).c -o $(PROGRAM)
clean: