mirror of
https://github.com/palera1n/palera1n.git
synced 2026-10-21 01:37:02 +02:00
speed up build
This commit is contained in:
1 parent
5cc5d9c7cb
commit
07169da20e
6 files changed
+13
-12
No files matched your search
+2
-1
@@ -9,7 +9,8 @@ checkra1n*
|
||||
payload.c
|
||||
src/palera1n
|
||||
palera1n*
|
||||
!checkra1n.h
|
||||
!xxd-embedded.h
|
||||
src/binpack.dmg
|
||||
src/ramdisk.dmg
|
||||
src/xxd-*.c
|
||||
.DS_Store
|
||||
+6
-6
@@ -1,7 +1,10 @@
|
||||
all: palera1n
|
||||
|
||||
OBJECTS = main.o dfuhelper.o devhelper.o lockdown_helper.o exec_checkra1n.o
|
||||
OBJECTS += pongo_usb.o checkra1n.o optparse.o override_file.o pongo_helper.o log.o
|
||||
OBJECTS += pongo_usb.o optparse.o override_file.o pongo_helper.o log.o
|
||||
OBJECTS += xxd-checkra1n.o xxd-checkra1n-kpf-pongo.o xxd-ramdisk.dmg.o
|
||||
OBJECTS += xxd-binpack.dmg.o
|
||||
|
||||
CHECKRA1N_VERSION ?= 0.1337.1
|
||||
LIPO = lipo
|
||||
LDID = ldid
|
||||
@@ -32,11 +35,8 @@ else
|
||||
cp checkra1n-$(CHECKRA1N_NAME) checkra1n
|
||||
endif
|
||||
|
||||
checkra1n.c: checkra1n checkra1n-kpf-pongo ramdisk.dmg binpack.dmg
|
||||
xxd -iC checkra1n > checkra1n.c
|
||||
xxd -iC checkra1n-kpf-pongo >> checkra1n.c
|
||||
xxd -iC ramdisk.dmg >> checkra1n.c
|
||||
xxd -iC binpack.dmg >> checkra1n.c
|
||||
xxd-%.c: %
|
||||
xxd -iC $< > $@
|
||||
|
||||
%.o: %.c
|
||||
$(CC) -c $(CFLAGS) $<
|
||||
|
||||
+1
-1
@@ -2,7 +2,7 @@
|
||||
#define COMMON_H
|
||||
|
||||
#include "lockdown_helper.h"
|
||||
#include "checkra1n.h"
|
||||
#include "xxd-embedded.h"
|
||||
#include "kerninfo.h"
|
||||
#include <stdbool.h>
|
||||
#include <stdint.h>
|
||||
|
||||
@@ -18,7 +18,7 @@
|
||||
extern char **environ;
|
||||
|
||||
#include "common.h"
|
||||
#include "checkra1n.h"
|
||||
#include "xxd-embedded.h"
|
||||
char* pongo_path = NULL;
|
||||
|
||||
void exec_checkra1n() {
|
||||
|
||||
+1
-1
@@ -26,7 +26,7 @@
|
||||
|
||||
#include "ANSI-color-codes.h"
|
||||
#include "common.h"
|
||||
#include "checkra1n.h"
|
||||
#include "xxd-embedded.h"
|
||||
#include "kerninfo.h"
|
||||
|
||||
#define CMD_LEN_MAX 512
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
#ifndef CHECKRAIN_H
|
||||
#define CHECKRAIN_H
|
||||
#ifndef XXD_EMBEDDED_H
|
||||
#define XXD_EMBEDDED_H
|
||||
|
||||
extern unsigned char checkra1n[];
|
||||
extern unsigned int checkra1n_len;
|
||||
Reference in new issue
Block a user