Skip to content

Commit

Permalink
ota:20231209
Browse files Browse the repository at this point in the history
  • Loading branch information
BoNic authored and BoNic committed Dec 9, 2023
1 parent 743153e commit 9625be1
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 81 deletions.
93 changes: 16 additions & 77 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,80 +1,19 @@
## Create Directories
As a first step, you'll have to create and enter a folder with the appropriate name.
To do that, run these commands:

```bash
mkdir derp
cd derp
```

## Initalise the Treble DerpFest_GSI repo
```bash
repo init -u https://github.com/DerpFest-AOSP/manifest.git -b 14
```

## Clone this repo:
```bash
git clone https://github.com/KoysX/treble_DerpFest_GSI.git -b 14
```

## Preparing local manifest
```bash
mkdir -p .repo/local_manifests
cp treble_DerpFest_GSI/manifest.xml .repo/local_manifests/dp.xml
```

## Sync the repository
```bash
repo sync -c -j$(nproc --all) --force-sync --no-clone-bundle --no-tags
```

### Apply the patches
```bash
bash treble_DerpFest_GSI/apply-patches.sh treble_DerpFest_GSI phh
bash treble_DerpFest_GSI/apply-patches.sh treble_DerpFest_GSI misc
```

## Adapting for DerpFest
copy derp.mk to device/phh/treble in the ROM folder. Then run the following commands:
```bash
cd device/phh/treble
bash generate.sh derp
```

### Turn On Caching
You can speed up subsequent builds by adding these lines to your `~/.bashrc` OR `~/.zshrc` file:

```bash
export USE_CCACHE=1
export CCACHE_COMPRESS=1
export CCACHE_MAXSIZE=50G # 50 GB
```

## Compilation
In the ROM folder, run this to start compilation:

```bash
source build/envsetup.sh

ccache -M 50G -F 0

lunch treble_arm64_bvN-userdebug

make systemimage -j$(nproc --all)
```

## Compression
After compiling the GSI, you can run this to reduce the `system.img` file size:
> Warning<br>
> You will need to decompress the output file to flash the `system.img`. In other words, you cannot flash this file directly.
```bash
cd out/target/product/tdgsi_arm64_ab
xz -9 -T0 -v -z system.img
```

## Troubleshooting
If you face any conflicts while applying patches, apply the patch manually.
# DerpFest AOSP GSI

## Build
To get started with building DerpFest AOSP GSI, you'll need to get familiar with [Git and Repo](https://source.android.com/source/using-repo.html) as well as [How to build a GSI](https://github.com/phhusson/treble_experimentations/wiki/How-to-build-a-GSI%3F).
- Create a new working directory for your Pixel Experience build and navigate to it:
```
mkdir derp; cd derp
```
- Clone this repo:
```
git clone https://github.com/KoysX/treble_DerpFest_GSI.git -b 14
```
- Finally, start the build script:
```
bash treble_DerpFest_GSI/build.sh
```

## Credits
These people have helped this project in some way or another, so they should be the ones who receive all the credit:
Expand Down
8 changes: 4 additions & 4 deletions ota.json
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
{
"version": "v2023.12.06",
"date": "1701847485",
"version": "v2023.12.09",
"date": "1702117225",
"variants": [
{
"name": "treble_arm64_bvN",
"size": "1382162440",
"size": "1379957796",
"url": "https://github.com/KoysX/treble_DerpFest_GSI/releases/download/v2023.12.09/DerpFest_arm64-ab-14.0-unofficial-20231209.img.xz"
},
{
"name": "treble_arm64_bvN-vndklite",
"size": "1346647660",
"size": "1344533364",
"url": "https://github.com/KoysX/treble_DerpFest_GSI/releases/download/v2023.12.09/DerpFest_arm64-ab-vndklite-14.0-unofficial-20231209.img.xz"
}
]
Expand Down

0 comments on commit 9625be1

Please sign in to comment.