Last active
May 16, 2017 11:33
-
-
Save ivyl/1e05af15ae37b575e03dc69e5e2488fc to your computer and use it in GitHub Desktop.
This file contains hidden or 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
#!/bin/bash | |
mkdir aosp && cd aosp | |
repo init -u https://android.googlesource.com/platform/manifest | |
(cd .repo/manifests/ && curl -O https://gist.githubusercontent.com/ivyl/1e05af15ae37b575e03dc69e5e2488fc/raw/b2c2e5bc6fbe80da479e7e656b57481f5af5dc63/igt.xml) | |
repo init -m igt.xml | |
repo sync -c | |
source build/envsetup.sh | |
lunch aosp_x86_64-eng | |
# those are externals, so they do not build by default | |
# and do not resolve as dependencies | |
for module in libdrm libkmod libpciaccess igt; do | |
(cd external/$module && mm) | |
done |
This file contains hidden or 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
#!/bin/bash | |
set -e | |
export TOP=$(pwd)/aosp | |
function do_lunch | |
{ | |
source build/envsetup.sh | |
lunch aosp_x86_64-eng | |
} | |
function init_tree | |
{ | |
mkdir $TOP | |
cd $TOP | |
repo init -u https://android.googlesource.com/platform/manifest | |
(cd .repo/manifests/ && | |
curl -O https://gist.githubusercontent.com/ivyl/1e05af15ae37b575e03dc69e5e2488fc/raw/b2c2e5bc6fbe80da479e7e656b57481f5af5dc63/igt.xml) | |
repo init -m igt.xml | |
repo sync -c | |
} | |
function update_tree | |
{ | |
cd $TOP | |
rm -fr out | |
repo sync -cf | |
do_lunch | |
for module in libdrm libkmod libpciaccess; do | |
(cd $TOP/external/$module && mm) | |
done | |
} | |
function build_igt | |
{ | |
cd $TOP | |
do_lunch | |
(cd $TOP/external/igt && mm) | |
} | |
case "$1" in | |
init) | |
init_tree | |
;; | |
update) | |
update_tree | |
;; | |
igt) | |
build_igt | |
;; | |
*) | |
echo "$0 [init|update|igt]" | |
;; | |
esac |
This file contains hidden or 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
<?xml version="1.0" encoding="UTF-8"?> | |
<manifest> | |
<include name="default.xml" /> | |
<remote name="github" | |
fetch="https://github.com/" /> | |
<project path="external/igt" name="ivyl/igt" revision="android" remote="github"/> | |
<project path="external/libkmod" name="ivyl/libkmod-android" remote="github"/> | |
<project path="external/libkmod/kmod" name="platform/external/kmod" /> | |
<project path="external/libpciaccess" name="android-ia/external_libpciaccess" remote="github"/> | |
</manifest> |
Author
ivyl
commented
Apr 21, 2017
•
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment