summaryrefslogtreecommitdiff
path: root/util/archive/Makefile
diff options
context:
space:
mode:
authorDaisuke Nojiri <dnojiri@chromium.org>2015-11-03 15:04:59 -0800
committerPatrick Georgi <pgeorgi@google.com>2016-03-08 17:39:38 +0100
commita5ae62e9d25a07538677dd9967bbe3208f324ef8 (patch)
tree13cc088a27706ddd812a539f8bbf1eb0f96d9107 /util/archive/Makefile
parent491c016d77fa56461e8669e45796da97bbab3c37 (diff)
downloadcoreboot-a5ae62e9d25a07538677dd9967bbe3208f324ef8.tar.xz
util: add archive tool
'archive' concatenates files into a single binary blob. Files are indexed by the base names. See archive.h for the format description. BUG=chromium:502066 BRANCH=tot TEST=Tested on Glados Change-Id: Iea108160e65c8c7bd34c02af824a77cb075ee64b Signed-off-by: Patrick Georgi <pgeorgi@chromium.org> Original-Commit-Id: 21a9ba860f29599ac029f8d49d32399c4e3a73a8 Original-Change-Id: I46b4efb339e3a1e05772ae752f2861026ca09cfc Original-Signed-off-by: Daisuke Nojiri <dnojiri@chromium.org> Original-Reviewed-on: https://chromium-review.googlesource.com/311200 Original-Reviewed-by: Aaron Durbin <adurbin@chromium.org> Original-Reviewed-by: Randall Spangler <rspangler@chromium.org> Reviewed-on: https://review.coreboot.org/12925 Tested-by: build bot (Jenkins) Reviewed-by: Stefan Reinauer <stefan.reinauer@coreboot.org> Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net>
Diffstat (limited to 'util/archive/Makefile')
-rw-r--r--util/archive/Makefile14
1 files changed, 14 insertions, 0 deletions
diff --git a/util/archive/Makefile b/util/archive/Makefile
new file mode 100644
index 0000000000..a592a627fa
--- /dev/null
+++ b/util/archive/Makefile
@@ -0,0 +1,14 @@
+PROGRAM = archive
+CC ?= gcc
+
+SRCS = $(PROGRAM).c
+
+all: $(PROGRAM)
+
+$(PROGRAM): $(SRCS)
+ $(CC) -o $@ $^
+
+clean:
+ rm -f $(PROGRAM) *.o
+
+.PHONY: all clean