Requirements
For future builds, you need to repeat steps 13 -> 10 -> 14 at the root of the tree
For those still insterested in building 15.1 (ignore the repopick step): https://web.archive.org/web/20180617...-15-1-t3750175 (do not report any errors if you sync this branch, I will ignore them since I do not have the means to maintain more than one branch on wsl)
- Windows 10 (64-bit) installed on a drive (256GB or bigger) (SSD recommended)
- 16GB RAM or more
- Do NOT add/edit your Linux files from Windows. The files will most likely be broken in bash.
Instead, add/edit the files from within the Linux subsystem - Using mnt to download the source code to other drives and then attempting to follow this guide will probably result in failures. Download the source to folders only within the subsystem
- Open Microsoft Store
- Search for the Ubuntu 18.04 app
- Install the app
- Open the app and follow the first-time setup steps
- Update packages and install the following:Code:
sudo apt update && sudo apt full-upgrade -y && sudo apt install -y bc build-essential ccache curl g++-multilib gcc-multilib git gnupg gperf imagemagick lib32ncurses5-dev lib32readline-dev lib32z1-dev liblz4-tool libncurses5-dev libsdl1.2-dev libssl-dev libwxgtk3.0-dev libxml2 libxml2-utils lzop m4 openjdk-8-jdk pngcrush repo rsync schedtool squashfs-tools xsltproc zip zlib1g-dev
- Make a directory for the source code (and go to it):Code:
mkdir -p ~/android/lineage && cd android/lineage
- Initialize the LineageOS source repository:Code:
repo init -u https://github.com/LineageOS/android.git -b lineage-16.0
- Sync the sources:Code:
repo sync
- (Optional; Recommended) https://wiki.lineageos.org/devices/k...speed-up-build
- RunCode:
source build/envsetup.sh
- Prepare the device-specific code:Code:
breakfast your device codename
- Add the following to .repo/local_manifests/roomservice.xml:Code:
<project name="TheMuppets/proprietary_vendor_your device brand" path="vendor/your device brand" remote="github" />
- Sync the sources again:Code:
repo sync
- Start the build:Code:
brunch your device codename
For future builds, you need to repeat steps 13 -> 10 -> 14 at the root of the tree
For those still insterested in building 15.1 (ignore the repopick step): https://web.archive.org/web/20180617...-15-1-t3750175 (do not report any errors if you sync this branch, I will ignore them since I do not have the means to maintain more than one branch on wsl)
No comments:
Post a Comment