diff options
author | Arthur Heymans <arthur@aheymans.xyz> | 2017-01-24 20:27:43 +0100 |
---|---|---|
committer | Patrick Georgi <pgeorgi@google.com> | 2018-11-19 08:19:16 +0000 |
commit | a29498f59952e89e858affde52c3f7565ab7f210 (patch) | |
tree | 81af272ff0495a00f15d94ff01232b5c28b6a7a6 /util/bucts/Makefile | |
parent | 0ce41f1a116a816e774ebbd1130d27d7ee70e7e9 (diff) | |
download | coreboot-a29498f59952e89e858affde52c3f7565ab7f210.tar.xz |
util/bucts: Add tool to manipulate BUC.TS bit on Intel targets
The purpose of this tool is to manipulate and get information about the
`Back Up Control, Top Swap` mechanism present on most Intel Southbridges.
This tool is initially written by Peter Stuge.
This tool makes it possible to have a backup mechanism for the
bootblock by using the southbridges Back Up Control Top Swap.
Sometimes it is also possible to circumvent vendor write protection mechanisms
in order to flash coreboot. An example of where this would be useful would be
the Lenovo Thinkpad X60 and T60.
Change-Id: I12cc2e91396f096fc979e23848e1929cb6c44fc5
Signed-off-by: Arthur Heymans <arthur@aheymans.xyz>
Reviewed-on: https://review.coreboot.org/18224
Reviewed-by: Patrick Georgi <pgeorgi@google.com>
Reviewed-by: Felix Held <felix-coreboot@felixheld.de>
Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'util/bucts/Makefile')
-rw-r--r-- | util/bucts/Makefile | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/util/bucts/Makefile b/util/bucts/Makefile new file mode 100644 index 0000000000..3bc73ee3d6 --- /dev/null +++ b/util/bucts/Makefile @@ -0,0 +1,21 @@ +CC:=gcc +OBJ:=bucts.o +VERSION:=$(shell git describe) +CFLAGS+=-Wall + +ifeq ($(shell uname), FreeBSD) + CFLAGS += -I/usr/local/include + LDFLAGS += -L/usr/local/lib +endif + +all: bucts + +bucts: $(OBJ) + $(CC) -o $@ $(OBJ) $(LDFLAGS) -lpci + +%.o: %.c + $(CC) $(CFLAGS) -DVERSION='"$(VERSION)"' -c $< + +.PHONY: clean +clean: + rm -f bucts $(OBJ) |