coreboot/util
Damien Zammit 0685322f4a util/blobtool: Add new tool for compiling/decompiling data blobs
Given a specification of bitfields defined e.g. as follows:

	specfile:
		{
			"field1" : 8,
			"field2" : 4,
			"field3" : 4
		}
and a set of values for setting defaults:
	setterfile:
		{
			"field1" = 0xff,
			"field2" = 0xf,
			"field3" = 0xf
		}

You can generate a binary packed blob as follows:
	./blobtool specfile setterfile binaryoutput
	binaryoutput:	ff ff

The reverse is also possible, i.e. you can regenerate the setter:
	./blobtool -d specfile binaryoutput setterorig
	setterorig:
		# AUTOGENERATED SETTER BY BLOBTOOL
		{
			"field1" = 0xff,
			"field2" = 0xf,
			"field3" = 0xf
		}

This tool comes with spec/set files for X200 flash descriptor
and ICH9M GbE region, and can be extended or used to decompile
other data blobs with known specs.

Change-Id: I744d6b421003feb4fc460133603af7e6bd80b1d6
Signed-off-by: Damien Zammit <damien@zamaudio.com>
Reviewed-on: https://review.coreboot.org/17445
Tested-by: build bot (Jenkins)
Reviewed-by: Jonathan Neuschäfer <j.neuschaefer@gmx.net>
Reviewed-by: Martin Roth <martinroth@google.com>
2017-02-04 23:18:35 +01:00
..
abuild util/abuild: Print list of failed boards at the end of the abuild 2017-01-09 18:26:38 +01:00
acpi
amdfwtool
amdtools
archive
arm_boot_tools/mksunxiboot
autoport autoport: add missing parameter for pc_keyboard_init() 2017-01-29 00:36:24 +01:00
bimgtool
blobtool util/blobtool: Add new tool for compiling/decompiling data blobs 2017-02-04 23:18:35 +01:00
board_status board_status/towiki.sh: Add socket LGA775 2017-01-27 19:42:36 +01:00
broadcom
cbfstool cbfs-compression-tool: catch compression failures 2017-01-24 09:35:49 +01:00
cbmem
checklist
chromeos
crossgcc buildgcc: try curl if wget is not present 2017-01-10 14:43:49 +01:00
docker util/docker: Update makefile target names 2017-01-27 19:41:05 +01:00
dtd_parser
ectool ectool: Support OpenBSD 2017-02-02 15:29:10 +01:00
exynos
futility
fuzz-tests
genbuild_h
genprof
gitconfig
ifdfake
ifdtool util/ifdtool: Fix ICH Gbe unlock 2017-02-04 17:36:21 +01:00
intelmetool util/intelmetool: Try to activate the ME before scanning PCIe for it 2017-01-20 17:22:54 +01:00
inteltool
intelvbttool
ipqheader
k8resdump
kconfig
lint util/lint: Add check for the signed-off-by line 2017-01-09 18:14:10 +01:00
marvell
me_cleaner util: Add me_cleaner 2017-01-25 18:19:58 +01:00
mma
msrtool
mtkheader
nvidia
nvramtool
optionlist
post
release
riscvtools
rockchip
romcc util/romcc: avoid shifting more than the variable's width 2017-01-06 18:40:04 +01:00
sconfig
scripts util/scripts: extend cross-repo-cherrypick 2017-01-17 18:01:10 +01:00
showdevicetree
spkmodem_recv
superiotool
uio_usbdebug
vgabios
viatool
xcompile util/xcompile: parallelize compiler checks 2017-01-31 18:51:47 +01:00