summaryrefslogtreecommitdiff
path: root/arch
diff options
context:
space:
mode:
authorSam Bingner <sam@bingner.com>2018-07-20 15:17:39 -1000
committerSam Bingner <sam@bingner.com>2018-07-20 15:17:39 -1000
commiteaf1dcfa630f57838c91af829fd1bea3467daece (patch)
tree50aa6191e2cb58478d280f463b9480bda3693f3b /arch
parent8315a8898c2b768534c3a3ec02e8eb5c59fc3e7b (diff)
Added arch...
Diffstat (limited to 'arch')
-rw-r--r--arch/iphoneos-arm64/environ.sh5
-rw-r--r--arch/iphoneos-arm64/firmware24
-rw-r--r--arch/iphoneos-arm64/prefix1
-rw-r--r--arch/iphoneos-arm64/strip18
-rw-r--r--arch/iphoneos-arm64/target1
5 files changed, 49 insertions, 0 deletions
diff --git a/arch/iphoneos-arm64/environ.sh b/arch/iphoneos-arm64/environ.sh
new file mode 100644
index 000000000..36d412804
--- /dev/null
+++ b/arch/iphoneos-arm64/environ.sh
@@ -0,0 +1,5 @@
+arm64-apple-darwin9-gcc() {
+ xcrun -sdk iphoneos gcc $@
+}
+export -f arm64-apple-darwin9-gcc
+export MACOSX_DEPLOYMENT_TARGET=10.5
diff --git a/arch/iphoneos-arm64/firmware b/arch/iphoneos-arm64/firmware
new file mode 100644
index 000000000..3618678d4
--- /dev/null
+++ b/arch/iphoneos-arm64/firmware
@@ -0,0 +1,24 @@
+iPhone1,1_2.0_5A347
+iPhone1,2_2.0_5A347
+iPod1,1_2.0_5A347
+iPhone1,1_2.0.1_5B108
+iPhone1,2_2.0.1_5B108
+iPod1,1_2.0.1_5B108
+iPhone1,1_2.0.2_5C1
+iPhone1,2_2.0.2_5C1
+iPod1,1_2.0.2_5C1
+iPhone1,1_2.1_5F136
+iPhone1,2_2.1_5F136
+iPod1,1_2.1_5F137
+iPhone1,1_2.2_5G77
+iPhone1,2_2.2_5G77
+iPod1,1_2.2_5G77
+iPhone1,1_2.2.1_5H11
+iPhone1,2_2.2.1_5H11
+iPod1,1_2.2.1_5H11
+iPod2,1_2.2.1_5H11a
+iPhone1,1_3.0_7A341
+iPhone1,2_3.0_7A341
+iPhone2,1_3.0_7A341
+iPod1,1_3.0_7A341
+iPod1,2_3.0_7A341
diff --git a/arch/iphoneos-arm64/prefix b/arch/iphoneos-arm64/prefix
new file mode 100644
index 000000000..74e4e23b0
--- /dev/null
+++ b/arch/iphoneos-arm64/prefix
@@ -0,0 +1 @@
+/usr
diff --git a/arch/iphoneos-arm64/strip b/arch/iphoneos-arm64/strip
new file mode 100644
index 000000000..c4801ca85
--- /dev/null
+++ b/arch/iphoneos-arm64/strip
@@ -0,0 +1,18 @@
+find "${PKG_DEST}" -type f \( -perm -0100 -o -name '*.dylib' -o -name '*.so' \) -print0 | while read -r -d $'\0' bin; do
+ case "$(file "${bin}")" in (\
+ *': Mach-O fat file with '*([0-9])' architecture' |\
+ *': '?(setuid )?(setgid )'Mach-O executable acorn' |\
+ *': Mach-O dynamically linked shared library acorn' |\
+ *': Mach-O bundle acorn'\
+ );; (*) continue;; esac
+
+ if arm64-apple-darwin9-otool -hv "${bin}" | grep DYLIB_STUB &>/dev/null; then
+ continue; fi
+ if grep $'\xfa\xde\x0c\x01' "${bin}" &>/dev/null; then
+ continue; fi
+
+ perms=$(stat --format=%a "${bin}")
+ chmod 755 "${bin}"
+ "${PKG_BASE}/util/ldid" -S"${PKG_BASE}/arch/iphoneos-arm/entitlement.xml" "${bin}"
+ chmod "${perms}" "${bin}"
+done
diff --git a/arch/iphoneos-arm64/target b/arch/iphoneos-arm64/target
new file mode 100644
index 000000000..3631f7228
--- /dev/null
+++ b/arch/iphoneos-arm64/target
@@ -0,0 +1 @@
+arm64-apple-darwin9