Giter Club home page Giter Club logo

sodp's Introduction

sodp

Helper scripts to be used with sodp.

Main script is a build script to build aosp 11 for xperia devices using linux kernel 4.14 and including opengapps.

A usage description of the scripts can be displayed via:

build.sh -h|--help

Please be aware that these scripts are not appropriate for a developer aosp tree that contains changes but should only be used on clean trees, since the script will do things like:

  • delete files
  • git hard resets
  • git checkouts

For general build instructions how to setup and build aosp for xperia see:
https://developer.sony.com/develop/open-devices/guides/aosp-build-instructions

The script contains following variables that can be set from outside. The value after the colon is the default value.

SOURCE=${SOURCE:-~/android/source}
LUNCH_CHOICE=

To build bahamut following script call has to be done:

env LUNCH_CHOICE=aosp_j9210-userdebug ./build.sh

To switch to a different branch before building, call the script as follows:

./build.sh -b android-11.0.0_rXX

To switch to the 2020-10-05 branch while keeping the .repo/local_manifests/ on the current branch (e.g. android-11.0.0_r4) and building aosp 11 use:

./build.sh -b android-11.0.0_r4 -k

Please be aware that switching the aosp branch and keeping the local manifests branch is not officially supported by the sodp (Sony Open Device Project).

An overview of available branches can be found here:
https://source.android.com/setup/start/build-numbers

sodp's People

Contributors

haxk20 avatar samoylenko avatar stefanhh0 avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

sodp's Issues

Fix/Update for Android 12L & Kernel 4.19/5.4

Hey, great work on this Project!

I wanted to use You Scripts to make things easier but i ran into a lot of issues i wasn't able to fix by myself. Is there any chance of an Update for the Scripts? I would like to understand how it works and what it needs to run in the Future. I would really appreciate that and the Xperia Community could really need that to get an easy way to build Android with OpenGApps and stuff...

Thanks for Your work!
Miu

[Question] Handling of branch change

Hi there,
just another question. ;-)

How do you handle branch switch? I do remove everything and start over. Not sure if cleaning the git and switching would work and therefore save time? Do you have experience with that? Every time I tried, i got a messy build.

BTW: find attached my version of the script FYI.
build-10-4.9.sh.txt

Mistake-proofing enhancement?

We know to perform a build, this command is required:

env SOURCE=~/android/sony LUNCH_CHOICE=aosp_g8142-userdebug PLATFORM=yoshino DEVICE=maple ./build-4.14.sh -x

And here are the hardware related variable:

PLATFORM
DEVICE

If these two are not set, I think the script should refuse to run instead of place a default value?
ummmm... because I just build and installed a yoshino & lilac to yoshino & maple device.
Because of that, now I lost my userdata lol

One of the commit id might change for a unknown readon

build-4.9.sh

# qcom: Switch camera to new HAL.
git revert --no-edit a96f3a8e384fcbe569e4526e7aa0d020904adbfb

Under android-10.0.0_r33 branch, the commit title match qcom is
ba30faeb8d181c43e2b611c8c9e2c5397ec3e609
in both stefanhh0/local_manifests and sonyxperiadev/local_manifests.

The script reports bad object error. Should I change the commit id?
I'm changing it and to see if it will be success.

Kernel 4.9 no gapps version?

I don't have enough disk space to save two copy of android source code
after run 4.9.sh, it adds gapps to the source tree
and can't be used to do a normal build without gapps.
(will build failed with some gapps related error message)

[Question] patches in aosp-10 4.9 kernel build

@stefanhh0
Tried your script for kugo, as it seems that it will take a while before Sony gets to that device and have it running on 10.
It seems to work, even though GApps is messing around, but will remove it either way.

My question is regarding the patches and reverts you are applying, like screen, LED, etc. Why are you doing this? Is this due to errors you encounter, specifics for your platform? Just would like to understand.

Thanks
Chris

[Question] Handling legacy branch

Hi there,

as you might have seen on the Loire issues at Sony, I am trying to get Kugo running.
I started with adapting the script and figured, that you use the regular local_manifest branch instead of android-10_legacy. Hence your reverts etc. are quite different. Is there a reason for that?

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.