Coder Social home page Coder Social logo

android_vendor_amazon_mt8163's Introduction

Building LineageOS 20.0

Building LineageOS 20.0 from source requires some familiarity with Linux and the command line. Follow these steps to get started:

Step 1: Install Google's Repo tool

Before you begin, make sure you have the necessary tools:

sudo apt-get install bc bison build-essential ccache curl flex g++-multilib gcc-multilib git gnupg gperf imagemagick lib32ncurses5-dev lib32readline-dev lib32z1-dev liblz4-tool libncurses5 libncurses5-dev libsdl1.2-dev libssl-dev libxml2 libxml2-utils lzop pngcrush rsync schedtool squashfs-tools xsltproc zip zlib1g-dev

Now, install Google's repo tool:

mkdir -p ~/bin
echo 'PATH=~/bin:$PATH' >> ~/.bashrc
source ~/.bashrc
curl https://storage.googleapis.com/git-repo-downloads/repo > ~/bin/repo
chmod a+x ~/bin/repo

Step 2: Download LineageOS 20.0 source code

Create a directory for LineageOS source code and navigate to it

mkdir -p ~/android/lineage
cd ~/android/lineage

Initialize repo tool with LineageOS 20.1 source

repo init -u git://github.com/mt8163/android.git -b lineage-20.0
git clone https://github.com/mt8163/local_manifests -b lineage-20.0 .repo/local_manifests
repo sync

Step 3: Build LineageOS

Make sure you have adb and fastboot installed and in your PATH. If not, follow the instructions here: ADB and Fastboot installation guide

source build/envsetup.sh
brunch lineage_karnak-userdebug

Improving build times with ccache

To speed up future builds, you can enable ccache support. Run the following command before each build:

export USE_CCACHE=1

To persistently enable ccache and set the maximum disk space it can use, add the following lines to your ~/.bashrc file:

export USE_CCACHE=1
ccache -M 50G # Set cache size to 50GB (adjust as needed)

Using ccache can significantly reduce build times, so consider allocating enough disk space for caching.

  • Note: The above instructions are meant for LineageOS 20.0. Make sure to use the appropriate branch and repository URLs for other versions.

For more details and troubleshooting, refer to the official LineageOS documentation: LineageOS Wiki

android_vendor_amazon_mt8163's People

Contributors

488315 avatar elektroschmock avatar gaganmalvi avatar r0rt1z2 avatar smore-lore avatar zidan44 avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar

android_vendor_amazon_mt8163's Issues

karnak build on 17.1 branch build fails

Followed build instructions here: https://github.com/mt8163/android_vendor_amazon_mt8163/blob/lineage-17.1/README.md using Ubuntu 20.04.1

Build fails with the following error:

~/android/lineage$ brunch lineage_karnak-userdebug
Trying dependencies-only mode on a non-existing device tree?

============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=10
LINEAGE_VERSION=17.1-20201005-UNOFFICIAL-karnak
TARGET_PRODUCT=lineage_karnak
TARGET_BUILD_VARIANT=userdebug
TARGET_BUILD_TYPE=release
TARGET_ARCH=arm
TARGET_ARCH_VARIANT=armv7-a-neon
TARGET_CPU_VARIANT=cortex-a7
HOST_ARCH=x86_64
HOST_2ND_ARCH=x86
HOST_OS=linux
HOST_OS_EXTRA=Linux-5.4.0-48-generic-x86_64-Ubuntu-20.04.1-LTS
HOST_CROSS_OS=windows
HOST_CROSS_ARCH=x86
HOST_CROSS_2ND_ARCH=x86_64
HOST_BUILD_TYPE=release
BUILD_ID=QQ3A.200805.001
OUT_DIR=out
============================================
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=10
LINEAGE_VERSION=17.1-20201005-UNOFFICIAL-karnak
TARGET_PRODUCT=lineage_karnak
TARGET_BUILD_VARIANT=userdebug
TARGET_BUILD_TYPE=release
TARGET_ARCH=arm
TARGET_ARCH_VARIANT=armv7-a-neon
TARGET_CPU_VARIANT=cortex-a7
HOST_ARCH=x86_64
HOST_2ND_ARCH=x86
HOST_OS=linux
HOST_OS_EXTRA=Linux-5.4.0-48-generic-x86_64-Ubuntu-20.04.1-LTS
HOST_CROSS_OS=windows
HOST_CROSS_ARCH=x86
HOST_CROSS_2ND_ARCH=x86_64
HOST_BUILD_TYPE=release
BUILD_ID=QQ3A.200805.001
OUT_DIR=out
============================================
[100% 140/140] out/soong/.bootstrap/bin/soong_build out/soong/build.ninja
FAILED: out/soong/build.ninja
out/soong/.bootstrap/bin/soong_build -t -l out/.module_paths/Android.bp.list -b                                                                                             out/soong -n out -d out/soong/build.ninja.d -globFile out/soong/.bootstrap/build                                                                                            -globs.ninja -o out/soong/build.ninja Android.bp
error: frameworks/av/media/libstagefright/Android.bp:116:1: dependency "libdpframework" of "libstagefright" missing variant:
  arch:android_arm_armv7-a-neon_cortex-a7, image:core, link:shared, version:
available variants:
  arch:android_arm_armv7-a-neon_cortex-a7, image:vendor, link:shared, version:
  arch:android_arm_armv7-a-neon_cortex-a7, image:vendor, link:static, version:
07:33:59 soong bootstrap failed with: exit status 1

I found a posting referencing a similar error suggesting something isn't quite right with the file structure:
https://community.nxp.com/t5/i-MX-Processors/Android-8-0-0-Oreo-Build-Issue/m-p/809633

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.