User:AceOfSpadesProduc100/Downstream porting for google-sunfish

Highly WIP porting guide for Google Pixel 4a (google-sunfish) Uses https://wiki.postmarketos.org/wiki/User:Alexeymin/Kernel_development_in_chroot_using_abuild as reference

pmbootstrap init

Follow https://wiki.postmarketos.org/wiki/Porting_to_a_new_device#Kernel_configuration and stop when it says "pmbootstrap build".

Once you run `pmbootstrap kconfig check` and there are no warnings or errors, you can run `pmbootstrap kconfig edit` again, disable COMPAT_VDSO (userspace binary formats > kernel support for 32-bit EL0) save the .config file as a recognizable name, and then go to ~/.local/var/pmbootstrap/chroot_native/home/pmos/build/src/android_kernel_google_sunfish-xxxxxxxxxxx" and type in the name of your saved file in the search menu.

Move that saved file to your pmaport folder (linux-google-sunfish), delete config-google-sunfish.aarch64, and rename the new file to the name of the deleted file. Now run pmbootstrap build linux-google-sunfish. End of guide at the moment. TODO: fix the error "../include/linux/thread_info.h:147:25: error: call to '__bad_copy_to' declared with attribute error: copy destination size is too small"