Skip to content
This repository was archived by the owner on Jan 24, 2018. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
android:versionName="0.5.5" >

<uses-sdk
android:minSdkVersion="8"
android:minSdkVersion="21"
android:targetSdkVersion="21" />

<uses-permission android:name="android.permission.INTERNET" />
Expand Down Expand Up @@ -83,4 +83,4 @@

</application>

</manifest>
</manifest>
52 changes: 49 additions & 3 deletions external/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ endif
# Android NDK setup
NDK_BASE ?= /opt/android-ndk
NDK_ABI=arm
NDK_TOOLCHAIN_VERSION=4.8
NDK_TOOLCHAIN_VERSION=4.9
# NDK platform level, aka APP_PLATFORM, is equivalent to minSdkVersion
NDK_PLATFORM_LEVEL ?= \
$(shell sed -n 's,.*android:minSdkVersion="\([0-9][0-9]*\)".*,\1,p' $(PROJECT_ROOT)/AndroidManifest.xml)
Expand Down Expand Up @@ -70,8 +70,9 @@ export TZ=UTC

.PHONY: all assets clean distclean

all: $(EXTERNAL_ROOT)/busybox/busybox $(EXTERNAL_ROOT)/gnupg/g10/gpgv
make -C $(EXTERNAL_ROOT)/cdebootstrap
all: $(EXTERNAL_ROOT)/busybox/busybox $(EXTERNAL_ROOT)/gnupg/g10/gpgv \
$(EXTERNAL_ROOT)/cdebootstrap/src/cdebootstrap \
$(EXTERNAL_ROOT)/cdebootstrap/cdebootstrap.tar

assets: all
install $(EXTERNAL_ROOT)/busybox/busybox \
Expand Down Expand Up @@ -102,6 +103,7 @@ $(EXTERNAL_ROOT)/gnupg/configure: $(EXTERNAL_ROOT)/gnupg/configure.ac

$(EXTERNAL_ROOT)/gnupg/Makefile: $(EXTERNAL_ROOT)/gnupg/configure
cd $(EXTERNAL_ROOT)/gnupg && \
sed -i 's/\#undef\ USE_SHM_COPROCESSING//g' config.h.in && \
SYSROOT=$(NDK_SYSROOT) \
AR="$(AR)" \
CC="$(CC)" \
Expand All @@ -128,6 +130,46 @@ $(EXTERNAL_ROOT)/gnupg/g10/gpgv: $(EXTERNAL_ROOT)/gnupg/Makefile
make -C $(EXTERNAL_ROOT)/gnupg/g10
$(STRIP) $(EXTERNAL_ROOT)/gnupg/g10/gpgv

$(EXTERNAL_ROOT)/cdebootstrap/configure: $(EXTERNAL_ROOT)/cdebootstrap
cd $(EXTERNAL_ROOT) && \
wget http://ftp.de.debian.org/debian/pool/main/c/cdebootstrap/cdebootstrap_0.6.4.tar.gz -O - | tar xzv && \
cd $(EXTERNAL_ROOT)/cdebootstrap && \
patch -N -p0 --reject-file=- < add-missing-ubuntu-releases.patch

$(EXTERNAL_ROOT)/cdebootstrap/Makefile: $(EXTERNAL_ROOT)/cdebootstrap/configure
cd $(EXTERNAL_ROOT)/cdebootstrap && \
SYSROOT=$(NDK_SYSROOT) \
AR="$(AR)" \
CC="$(CC) -L$(EXTERNAL_ROOT)/cdebootstrap/lib -I$(EXTERNAL_ROOT)/cdebootstrap/include" \
LD="$(LD)" \
CFLAGS="$(ALL_CFLAGS)" \
LDFLAGS="$(ALL_LDFLAGS) -static" \
./configure \
--host=$(HOST) \
--with-frontend=standalone \
--with-debian-architecture=armel \
--prefix=$(EXTERNAL_ROOT)/cdebootstrap/installdir/usr \
--program-suffix=-static

$(EXTERNAL_ROOT)/cdebootstrap/src/cdebootstrap: $(EXTERNAL_ROOT)/cdebootstrap/Makefile
make -C $(EXTERNAL_ROOT)/cdebootstrap
make -C $(EXTERNAL_ROOT)/cdebootstrap install

$(EXTERNAL_ROOT)/cdebootstrap/cdebootstrap.tar: $(EXTERNAL_ROOT)/cdebootstrap/installdir/usr/bin/cdebootstrap-static
TIMESTAMP="`stat $(EXTERNAL_ROOT)/cdebootstrap/installdir | sed -n 's,Modify: \(.*\),\1,p'`"
for f in `find $(EXTERNAL_ROOT)/cdebootstrap/installdir`; do touch --date=$(TIMESTAMP) "$$f"; done
cd $(EXTERNAL_ROOT)/cdebootstrap/installdir && \
find usr/ -type f -print0 -o -type l -print0 \
| sort --zero-terminated \
| tar --no-recursion --null --files-from - \
--owner=1000 --group=1000 --numeric-owner --format=gnu \
--create --file $(EXTERNAL_ROOT)/cdebootstrap/cdebootstrap.tar
touch --date=$(TIMESTAMP) $(EXTERNAL_ROOT)/cdebootstrap/cdebootstrap.tar

$(EXTERNAL_ROOT)/cdebootstrap/installdir/usr/bin/cdebootstrap-static: $(EXTERNAL_ROOT)/cdebootstrap/installdir
tar -cf $(EXTERNAL_ROOT)/cdebootstrap/cdebootstrap.tar --exclude=usr/share/man --exclude=usr/share/doc \
--preserve-permissions $(EXTERNAL_ROOT)/cdebootstrap/installdir/usr

# to re-download and verify that the .debs included in git match the official
# Debian ones
verify-debian-packages: clean
Expand All @@ -148,3 +190,7 @@ clean:
distclean: clean
rm -f -- $(ASSETS)/busybox
rm -f -- $(ASSETS)/cdebootstrap.tar
rm -f -- $(EXTERNAL_ROOT)/cdebootstrap/cdebootstrap.tar
rm -rf -- $(EXTERNAL_ROOT)/cdebootstrap/installdir
make -C $(EXTERNAL_ROOT)/cdebootstrap/ distclean
make -C $(EXTERNAL_ROOT)/gnupg/ distclean
54 changes: 0 additions & 54 deletions external/cdebootstrap/Makefile

This file was deleted.

10 changes: 7 additions & 3 deletions external/cdebootstrap/add-missing-ubuntu-releases.patch
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
--- cdebootstrap-static-0.6.4-old/usr/share/cdebootstrap-static/suites 2014-07-07 18:22:27.000000000 -0400
+++ cdebootstrap-static-0.6.4/usr/share/cdebootstrap-static/suites 2014-07-08 17:07:57.976326272 -0400
@@ -50,6 +50,34 @@
--- installdir/usr/share/cdebootstrap/suites 2014-07-07 18:22:27.000000000 -0400
+++ installdir/usr/share/cdebootstrap/suites 2014-07-08 17:07:57.976326272 -0400
@@ -50,6 +50,38 @@
Config: generic-ubuntu
Keyring: ubuntu-archive-keyring.gpg

Expand Down Expand Up @@ -31,6 +31,10 @@
+Suite: utopic
+Config: generic-ubuntu
+Keyring: ubuntu-archive-keyring.gpg
+
+Suite: vivid
+Config: generic-ubuntu
+Keyring: ubuntu-archive-keyring.gpg
+
Suite: oldstable
Keyring: debian-archive-keyring.gpg
Expand Down
Binary file not shown.

This file was deleted.

This file was deleted.

This file was deleted.

Loading