mirror of
https://git.proxmox.com/git/efi-boot-shim
synced 2025-07-26 23:22:07 +00:00
commit
81250bb1a1
6
Makefile
6
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)
|
||||
|
||||
|
13
buildid.c
13
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);
|
||||
|
Loading…
Reference in New Issue
Block a user