From b626328b89e9d4e3f71bfe016bb1569f99738923 Mon Sep 17 00:00:00 2001 From: David Black Date: Thu, 24 Jan 2013 10:54:28 +0000 Subject: [PATCH] first sketch at busybox installer --- metadata/stericson.busybox.donate.txt | 22 ++++++++++++++++------ 1 file changed, 16 insertions(+), 6 deletions(-) diff --git a/metadata/stericson.busybox.donate.txt b/metadata/stericson.busybox.donate.txt index 1d231ac820..b5b373f2f4 100644 --- a/metadata/stericson.busybox.donate.txt +++ b/metadata/stericson.busybox.donate.txt @@ -1,4 +1,4 @@ -Disabled:Can't build the binaries without patching c libraries, and source is not published anyway +Disabled:Blobs in assets apart from Busybox and Constants needs patching Category:System License:Apache2 Web Site:http://code.google.com/p/busybox-android/ @@ -29,12 +29,22 @@ Build Version:7.2,104,!No source available Build Version:7.5,105,!No source available Build Version:7.6.1,112,!No source available Build Version:7.8.3,117,!No source available -#Compile busybox with ndk using stericsonlike config and srclib for RootTools. Fork package id? -#Use srclib or just copy source files as above -Build Version:9.6.3,141,!blobs 26,subdir=app,srclibs=ViewPagerIndicator@2.2.3;RootTools@211,prebuild=\ + +Build Version:9.6.3,141,26,subdir=app,srclibs=\ +ViewPagerIndicator@2.2.3;RootTools@211;Busybox@c9677ed83;BusyboxConfigs@835af752d,prebuild=\ +sed -i 's@\(android.library.reference.1=\).*@\1$$ViewPagerIndicator$$@' project.properties && \ mkdir -p libs/ && cp -r $$RootTools$$ . && cd RootTools && ant debug && \ -ant -f makejar.ant && mv roottools.jar ../libs/ && ant clean && cd .. && \ -sed -i 's@\(android.library.reference.1=\).*@\1$$ViewPagerIndicator$$@' project.properties +ant -f makejar.ant && mv roottools.jar ../libs/ && ant clean && cd ../../ && \ +mkdir -p busybox/ && cp -r $$Busybox$$/* busybox/ && \ +cp -f $$BusyboxConfigs$$/android_ndk_stericson-like busybox/.config && \ +rm -f binaries/* && cp $$BusyboxConfigs$$/patches/* patches/ && \ +cd busybox && find ../patches -name * -print 0 | xargs -0 patch -p1 && \ +make CONFIG_SYSROOT="$$NDK$$/platforms/android-9/arch-arm" && \ +mv busybox ../binaries/busybox-1.20-arm && make clean && \ +make CONFIG_SYSROOT="$$NDK$$/platforms/android-9/arch-mips" && \ +mv busybox ../binaries/busybox-1.20-mips && make clean && \ +make CONFIG_SYSROOT="$$NDK$$/platforms/android-9/arch-x86" && \ +mv busybox ../binaries/busybox-1.20-x86 && make clean Auto Update Mode:None Update Check Mode:Market