diff options
author | Will Drewry <wad@chromium.org> | 2010-06-25 13:40:43 -0500 |
---|---|---|
committer | Will Drewry <wad@chromium.org> | 2010-06-25 13:40:43 -0500 |
commit | 46186faf4620c9775836bf8ad703fb6c481e68cd (patch) | |
tree | 80134c8652be89fbacca2ee09d53795b0ea3bd33 /utility/Makefile | |
parent | e548e85d3a13e8b7310610eec8d5a760fb9e4008 (diff) | |
download | vboot-46186faf4620c9775836bf8ad703fb6c481e68cd.tar.gz |
utility: add a simple tool for dumping the kernel config
Adds dump_kernel_config.c which takes in a file, reads it
all in to memory, then walks the blob until it can determine
the location of the kernel command line.
This is needed to allow the kernel config to inform legacy bootloader
configuration during autoupdates without packaging up dm-verity specific
options in some additional update metadata.
TEST=manual run over build_kernel_image.sh output
BUG=chromium-os:327
Review URL: http://codereview.chromium.org/2811029
Diffstat (limited to 'utility/Makefile')
-rw-r--r-- | utility/Makefile | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/utility/Makefile b/utility/Makefile index 2f686492..cc3f5513 100644 --- a/utility/Makefile +++ b/utility/Makefile @@ -16,6 +16,7 @@ BUILD_ROOT = ${BUILD}/utility DESTDIR ?= /usr/bin TARGET_NAMES = dumpRSAPublicKey \ + dump_kernel_config \ gbb_utility \ load_kernel_test \ signature_digest_utility \ @@ -33,6 +34,9 @@ all: $(TARGET_BINS) ${BUILD_ROOT}/dumpRSAPublicKey: dumpRSAPublicKey.c $(CC) $(CFLAGS) $(INCLUDES) $< -o $@ -lcrypto +${BUILD_ROOT}/dump_kernel_config: dump_kernel_config.c $(LIBS) + $(CC) $(CFLAGS) $(INCLUDES) $< -o $@ $(LIBS) -lcrypto + ${BUILD_ROOT}/gbb_utility: gbb_utility.cc $(CXX) -DWITH_UTIL_MAIN $(CFLAGS) $< -o $@ |