Skip to content

Instantly share code, notes, and snippets.

@ivyl
Last active May 16, 2017 11:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ivyl/1e05af15ae37b575e03dc69e5e2488fc to your computer and use it in GitHub Desktop.
Save ivyl/1e05af15ae37b575e03dc69e5e2488fc to your computer and use it in GitHub Desktop.
#!/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
#!/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
<?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>
@ivyl
Copy link
Author

ivyl commented Apr 21, 2017

docker-run="docker run -ti --rm -e http_proxy=$http_proxy -e https_proxy=$https_proxy -e no_proxy=$no_proxy -v $HOME/src/android:/aosp kylemanna/aosp /aosp/docker-build.sh"
$docker-run init
$docker-run update
$docker-run igt

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment