Created
May 13, 2020 18:12
-
-
Save EricRahm/e051b933a2f673eae0c1152656f4d58a to your computer and use it in GitHub Desktop.
x86_64 emulator build
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
export LOCAL_NDK_BASE_URL='ftp://ftp.kaiostech.com/ndk/android-ndk' | |
mkdir patches | |
# Apply open PR for B2G repo | |
wget https://github.com/kaiostech/B2G/pull/4.patch -O patches/b2g.patch && patch -p1 < patches/b2g.patch | |
# Init | |
REPO_INIT_FLAGS="--depth=1" ./config.sh emulator-10-x86_64 | |
# Apply open PRs for rest of the repos | |
wget https://github.com/kaiostech/gonk-misc/pull/1.patch -O patches/gonk-misc.patch && patch -p1 -d gonk-misc < patches/gonk-misc.patch | |
wget https://github.com/kaiostech/gecko-b2g/pull/1.patch -O patches/gecko.patch && patch -p1 -d gecko < patches/gecko.patch | |
wget https://github.com/kaiostech/platform_build/pull/1.patch -O patches/platform_build.patch && patch -p1 -d build/make < patches/platform_build.patch | |
# Revert busted landing | |
wget https://github.com/kaiostech/gecko-b2g/commit/84808db6cdf13f0e41d0be530bb6be21f3a04165.patch -O patches/gecko2.patch && patch -p1 -R -d gecko < patches/gecko2.patch | |
# Bootstrap gekco build | |
cd gecko && ./mach bootstrap --no-interactive --no-system-changes --application-choice 'GeckoView/Firefox for Android' | |
cd .. | |
# Build and launch | |
./build.sh && source build/envsetup.sh && lunch aosp_x86_64-userdebug && emulator -writable-system -selinux permissive |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment