From 539236acc86d297580c30018090f2edef010c8a1 Mon Sep 17 00:00:00 2001 From: pancake Date: Sat, 18 Jan 2014 01:45:28 +0100 Subject: [PATCH] Update iPhone build documentation for ARM7 (coolstar's clang toolchain) --- doc/iphone | 45 ++++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 44 insertions(+), 1 deletion(-) diff --git a/doc/iphone b/doc/iphone index fb72cbed8d..2f91974e13 100644 --- a/doc/iphone +++ b/doc/iphone @@ -4,7 +4,7 @@ Setup SDK Extras: apt-get install wget inetutils rsync Mercurial: - apt-get install python setuptools + apt-get install git expat curl 2) Download missing packages from lolcathost: wget http://lolcathost.org/b/libgcc_4.2-20080410-1-6_iphoneos-arm.deb @@ -38,3 +38,46 @@ Usage export PATH=${R2DIR}/bin:$PATH export DYLD_LIBRARY_PATH=${R2DIR}/lib r2 ... + +ARM7 SDK +======== +From comstar + + apt-get install basename git make expat + apt-get install org.coolstar.iostoolchain + +* Copy crt1.o and dylib1.o from your iOS SDK into /usr/lib + + /Applications//Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.0.sdk/ + +* Current r2 build requires 'gcc' as native compiler to + build a standalone 'sdb' to precompile some files. This + dependency will be probably + + cd /usr/bin + ln -fs clang gcc + +Build: +====== + export CC=clang + export CFLAGS=-I/var/include + export CPPFLAGS=-I/var/include + ./configure --prefix=/usr --with-ostype=darwin + make + make symstall + +Packaging +========= + rm -rf /tmp/r2 + make install DESTDIR=/tmp/r2 + cd /tmp/r2 + tar czvpf ../r2.tgz * + +// Clone the cydia repo from radare's github + + git clone https://github.com/radare/cydia + cd cydia/radare2* + mkdir root + tar xzvf r2.tgz -C root + vim CONFIG # bump version + make