mirror of
https://git.proxmox.com/git/efi-boot-shim
synced 2025-07-27 05:02:29 +00:00
Add some convenience make targets.
Adds targets for "test-archive" and "archive"
This commit is contained in:
parent
3c2f1d6c3d
commit
07c21a109d
24
Makefile
24
Makefile
@ -26,6 +26,8 @@ endif
|
|||||||
|
|
||||||
LDFLAGS = -nostdlib -znocombreloc -T $(EFI_LDS) -shared -Bsymbolic -L$(EFI_PATH) -L$(LIB_PATH) -LCryptlib -LCryptlib/OpenSSL $(EFI_CRT_OBJS)
|
LDFLAGS = -nostdlib -znocombreloc -T $(EFI_LDS) -shared -Bsymbolic -L$(EFI_PATH) -L$(LIB_PATH) -LCryptlib -LCryptlib/OpenSSL $(EFI_CRT_OBJS)
|
||||||
|
|
||||||
|
VERSION = 0.1
|
||||||
|
|
||||||
TARGET = shim.efi
|
TARGET = shim.efi
|
||||||
OBJS = shim.o cert.o
|
OBJS = shim.o cert.o
|
||||||
SOURCES = shim.c shim.h signature.h PeImage.h
|
SOURCES = shim.c shim.h signature.h PeImage.h
|
||||||
@ -62,3 +64,25 @@ clean:
|
|||||||
$(MAKE) -C Cryptlib clean
|
$(MAKE) -C Cryptlib clean
|
||||||
$(MAKE) -C Cryptlib/OpenSSL clean
|
$(MAKE) -C Cryptlib/OpenSSL clean
|
||||||
rm -f $(TARGET) $(OBJS)
|
rm -f $(TARGET) $(OBJS)
|
||||||
|
|
||||||
|
GITTAG = $(VERSION)
|
||||||
|
|
||||||
|
test-archive:
|
||||||
|
@rm -rf /tmp/shim-$(VERSION) /tmp/shim-$(VERSION)-tmp
|
||||||
|
@mkdir -p /tmp/shim-$(VERSION)-tmp
|
||||||
|
@git archive --format=tar $(shell git branch | awk '/^*/ { print $$2 }') | ( cd /tmp/shim-$(VERSION)-tmp/ ; tar x )
|
||||||
|
@git diff | ( cd /tmp/shim-$(VERSION)-tmp/ ; patch -s -p1 -b -z .gitdiff )
|
||||||
|
@mv /tmp/shim-$(VERSION)-tmp/ /tmp/shim-$(VERSION)/
|
||||||
|
@dir=$$PWD; cd /tmp; tar -c --bzip2 -f $$dir/shim-$(VERSION).tar.bz2 shim-$(VERSION)
|
||||||
|
@rm -rf /tmp/shim-$(VERSION)
|
||||||
|
@echo "The archive is in shim-$(VERSION).tar.bz2"
|
||||||
|
|
||||||
|
archive:
|
||||||
|
git tag $(GITTAG) refs/heads/master
|
||||||
|
@rm -rf /tmp/shim-$(VERSION) /tmp/shim-$(VERSION)-tmp
|
||||||
|
@mkdir -p /tmp/shim-$(VERSION)-tmp
|
||||||
|
@git archive --format=tar $(GITTAG) | ( cd /tmp/shim-$(VERSION)-tmp/ ; tar x )
|
||||||
|
@mv /tmp/shim-$(VERSION)-tmp/ /tmp/shim-$(VERSION)/
|
||||||
|
@dir=$$PWD; cd /tmp; tar -c --bzip2 -f $$dir/shim-$(VERSION).tar.bz2 shim-$(VERSION)
|
||||||
|
@rm -rf /tmp/shim-$(VERSION)
|
||||||
|
@echo "The archive is in shim-$(VERSION).tar.bz2"
|
||||||
|
Loading…
Reference in New Issue
Block a user