Compile Android with AMLogic

#Android #Compile

Source code downloaded from http://www.bee-link.com/forum.php?mod=viewthread&tid=48307&extra=page%3D1

Referenced following guide:

Operating System

Install fresh Ubuntu 18.04 x64.

Prepare environment

You could ignore this step as it just avoid git warnings flood log.

$ git config --global user.name xxx
$ git config --global user.email xxx@xxx.com

Install go

$ sudo apt-get install binutils bison gcc make
$ bash < <(curl -s -S -L https://raw.githubusercontent.com/moovweb/gvm/master/binscripts/gvm-installer)
$ gvm install go1.13 -B
$ gvm use go1.13

Install dependences

Dependences download address:

$ sudo apt-get remove openjdk-* icedtea-*
$ sudo apt-get install git ccache lzop bison gperf build-essential zip curl zlib1g-dev g++-multilib python-networkx libxml2-utils bzip2 libbz2-dev libghc-bzlib-dev squashfs-tools pngcrush liblz4-tool optipng libc6-dev-i386 gcc-multilib libssl-dev gnupg flex lib32ncurses5-dev x11proto-core-dev libx11-dev lib32z1-dev libgl1-mesa-dev xsltproc unzip python-pip python-dev libffi-dev libxml2-dev libxslt1-dev libjpeg8-dev openjdk-8-jdk
$ sudo apt install gcc-arm-none-eabi
$ sudo apt install u-boot-tools
$ tar -xf gcc-linaro-aarch64-none-elf-4.8-2013.11_linux.tar.xz
$ sudo mv gcc-linaro-aarch64-none-elf-4.8-2013.11_linux /opt
$ tar -xf gcc-linaro-6.3.1-2017.02-x86_64_arm-linux-gnueabihf.tar.xz
$ sudo mv gcc-linaro-6.3.1-2017.02-x86_64_arm-linux-gnueabihf /opt

Start compile

Extract and build image.

$ tar -zxf GT-King_SDK.tar.gz
$ cd s922x
$ ./s922x

Output file location: out/target/product/galilei/