mirror of
https://github.com/palera1n/palera1n.git
synced 2026-10-27 11:39:48 +01:00
Add 'download-checkra1n' target
This commit is contained in:
1 parent
475864a249
commit
fa257dbb4b
2 files changed
+9
-2
No files matched your search
@@ -23,7 +23,7 @@ export SRC DEP CC CFLAGS LDFLAGS LIBS
|
|||||||
|
|
||||||
all: palera1n
|
all: palera1n
|
||||||
|
|
||||||
palera1n:
|
palera1n: download-checkra1n
|
||||||
$(MAKE) -C src
|
$(MAKE) -C src
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
@@ -48,7 +48,10 @@ macos-dist:
|
|||||||
$(STRIP) palera1n-macos
|
$(STRIP) palera1n-macos
|
||||||
codesign -s - --force palera1n-macos
|
codesign -s - --force palera1n-macos
|
||||||
|
|
||||||
|
download-checkra1n:
|
||||||
|
$(MAKE) -C src checkra1n-macos checkra1n-linux-arm64 checkra1n-linux-armel checkra1n-linux-x86 checkra1n-linux-x86_64
|
||||||
|
|
||||||
distclean: clean
|
distclean: clean
|
||||||
rm -rf palera1n-* palera1n*.dSYM
|
rm -rf palera1n-* palera1n*.dSYM src/checkra1n-*
|
||||||
|
|
||||||
.PHONY: all palera1n clean
|
.PHONY: all palera1n clean
|
||||||
@@ -3,6 +3,10 @@ all: palera1n
|
|||||||
OBJECTS = main.o dfuhelper.o lockdown_helper.o devhelper.o exec_checkra1n.o pongo_usb.o checkra1n.o
|
OBJECTS = main.o dfuhelper.o lockdown_helper.o devhelper.o exec_checkra1n.o pongo_usb.o checkra1n.o
|
||||||
LIPO = lipo
|
LIPO = lipo
|
||||||
|
|
||||||
|
checkra1n-%:
|
||||||
|
curl -LO https://assets.checkra.in/downloads/preview/0.1337.1/$@
|
||||||
|
chmod 755 $@
|
||||||
|
|
||||||
checkra1n: checkra1n-macos
|
checkra1n: checkra1n-macos
|
||||||
ifneq (,$(findstring arm64, $(CFLAGS)))
|
ifneq (,$(findstring arm64, $(CFLAGS)))
|
||||||
$(LIPO) -thin arm64 -output checkra1n checkra1n-macos
|
$(LIPO) -thin arm64 -output checkra1n checkra1n-macos
|
||||||
|
|||||||
Reference in new issue
Block a user