Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update README #139

Open
wants to merge 1 commit into
base: pie
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions README
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@ Read it first : https://github.com/android-rpi/local_manifests/tree/pie

# Build Kernel
Install gcc-arm-linux-gnueabihf
If you're using gcc 11, you'll need to apply 2 patches:
* [change 1](https://github.com/BPI-SINOVOIP/BPI-M4-bsp/issues/4#issuecomment-1296184876) to fix the error of multiple global declarations of yylloc.
* [change 2 ](https://lore.kernel.org/linux-arm-kernel/[email protected]/) to fix architecture compilation errors.
$ cd kernel/rpi
$ ARCH=arm scripts/kconfig/merge_config.sh arch/arm/configs/bcm2709_defconfig kernel/configs/android-base.config kernel/configs/android-recommended.config
$ ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- make zImage
Expand All @@ -13,6 +16,13 @@ Read it first : https://github.com/android-rpi/local_manifests/tree/pie
# Patch framework source :
https://github.com/android-rpi/device_brcm_rpi3/wiki/Pie-:-patch-framework-source

# Update Flex version from Lineage-OS
https://review.lineageos.org/c/LineageOS/android_prebuilts_misc/+/225953
=> download and replace .../prebuilts/misc/linux-x86/flex/flex-2.5.39

# If you are running Kernel 5.18 or later, apply this patch to avoid compilation error to create boot.art:
https://android-review.googlesource.com/c/platform/art/+/2226578/2

# Build Android source
Continue build with http://source.android.com/source/building.html
$ source build/envsetup.sh
Expand Down