Skip to content

Commit

Permalink
Update hadk-sony-xz2.md
Browse files Browse the repository at this point in the history
  • Loading branch information
rinigus authored Oct 10, 2019
1 parent 7d8c94a commit f703d51
Showing 1 changed file with 16 additions and 10 deletions.
26 changes: 16 additions & 10 deletions hadk-sony-xz2.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,11 @@ ln -s ../dhd rpm/
mv rpm dhd-rpm
```

Until we get tama branch or unify it all under one with ganges, proceed as follows:
In contrast to official instructions, we use generic Sony AOSP repo and associate it with the device
via local manifest:

```
repo init -u git://github.com/mer-hybris/android.git -b sony-ganges-aosp-pie -m tagged-manifest.xml
repo init -u git://github.com/sailfishos-sony-tama/android.git -b sony-aosp-pie -m tagged-manifest.xml
mkdir $ANDROID_ROOT/.repo/local_manifests
```

Expand All @@ -53,22 +54,27 @@ Add the following content to $ANDROID_ROOT/.repo/local_manifests/$DEVICE.xml
</manifest>
```

Comment out a line below in $ANDROID_ROOT/.repo/manifest.xml
```
<project name="droid-src-sony-ganges-pie" path="rpm"
```
using `<!-- ... !-->` notation.

Continue with syncing repo and build

```
repo sync -j8 --fetch-submodules
mv rpm droid-src
ln -s droid-src/patches .
droid-src/apply-patches.sh --mb
```

For patches, use https://github.com/sonyxperiadev/repo_update with the same branch as
for Android manifest (android-9.0.0_r46 at the moment of writing). (TODO: Explain)

```
#ln -s droid-src/patches .
#droid-src/apply-patches.sh --mb
SKIP_SYNC=TRUE ../repo_update/repo_update.sh
mv dhd-rpm rpm
./setup-sources.sh --mb
```

Start the build

```
source build/envsetup.sh
export USE_CCACHE=1
lunch aosp_$DEVICE-user
Expand Down

0 comments on commit f703d51

Please sign in to comment.