summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMathieu Trudel-Lapierre <mathieu.trudel-lapierre@canonical.com>2017-09-29 11:18:56 -0400
committerMathieu Trudel-Lapierre <mathieu.trudel-lapierre@canonical.com>2017-09-29 11:18:56 -0400
commit81250bb1a15d59c6486f6b07f52760677aa6b650 (patch)
tree3c669baa8589cc70ee338e0fa03e4af552d77bfa
parenta9cd148a1ee45beb601867a7f0584ea4918d1bf7 (diff)
parent6025103c2532223a018683a5a3f4bf225c4b6a21 (diff)
downloadefi-boot-shim-81250bb1a15d59c6486f6b07f52760677aa6b650.tar.gz
efi-boot-shim-81250bb1a15d59c6486f6b07f52760677aa6b650.zip
Updated version 13~z1 from 'upstream/13_z1'
with Debian dir e38346a2eec5376ccf228af4ba0e2d170f07448f
-rw-r--r--Makefile6
-rw-r--r--buildid.c13
-rw-r--r--commit2
3 files changed, 13 insertions, 8 deletions
diff --git a/Makefile b/Makefile
index c3860710..03287373 100644
--- a/Makefile
+++ b/Makefile
@@ -1,4 +1,4 @@
-VERSION = 12
+VERSION = 13
ifneq ($(origin RELEASE),undefined)
DASHRELEASE ?= -$(RELEASE)
else
@@ -171,7 +171,7 @@ shim.cer: shim.crt
.NOTPARALLEL: shim_cert.h
shim_cert.h: shim.cer
- echo "static UINT8 shim_cert[] = {" > $@
+ echo "static UINT8 shim_cert[] __attribute__((__unused__)) = {" > $@
$(HEXDUMP) -v -e '1/1 "0x%02x, "' $< >> $@
echo "};" >> $@
@@ -337,7 +337,7 @@ clean:
$(MAKE) -C Cryptlib/OpenSSL -f $(TOPDIR)/Cryptlib/OpenSSL/Makefile clean
$(MAKE) -C lib -f $(TOPDIR)/lib/Makefile clean
rm -rf $(TARGET) $(OBJS) $(MOK_OBJS) $(FALLBACK_OBJS) $(KEYS) certdb $(BOOTCSVNAME)
- rm -f *.debug *.so *.efi *.efi.* *.tar.* version.c
+ rm -f *.debug *.so *.efi *.efi.* *.tar.* version.c buildid
GITTAG = $(VERSION)
diff --git a/buildid.c b/buildid.c
index b27aa1fe..f213f3bc 100644
--- a/buildid.c
+++ b/buildid.c
@@ -113,6 +113,7 @@ static void handle_one(char *f)
char *b = NULL;
size_t sz;
uint8_t *data;
+ ssize_t written;
if (!strcmp(f, "-")) {
fd = STDIN_FILENO;
@@ -132,10 +133,14 @@ static void handle_one(char *f)
b = alloca(sz * 2 + 1);
data2hex(data, sz, b);
if (b) {
- write(1, f, strlen(f));
- write(1, " ", 1);
- write(1, b, strlen(b));
- write(1, "\n", 1);
+ written = write(1, f, strlen(f));
+ if (written < 0)
+ errx(1, "Error writing build id");
+ written = write(1, " ", 1);
+ written = write(1, b, strlen(b));
+ if (written < 0)
+ errx(1, "Error writing build id");
+ written = write(1, "\n", 1);
}
}
elf_end(elf);
diff --git a/commit b/commit
index 14a907cc..fc0d353e 100644
--- a/commit
+++ b/commit
@@ -1 +1 @@
-23ce039c434d164a3848c829b237899cc17c1d21 \ No newline at end of file
+5e827007b3d95c4ce999422462248f5e7d3f270f \ No newline at end of file