Android
Build android kernel standalone
I wanted to use my Samsung A21S as usb keyboard but the required kernel drivers were not included in LineageOS.
IMPORTANT you will need the kernel that supports your device and replace device specific parts of the commands!
I downloaded the kernel for my device from Github and installed following packages:
Inside the kernel repo, we need get the default config:
make ARCH=arm64 exynos850-a21snsxx_defconfig
# If you don't want to deal with hundreds of config questions also run:
make ARCH=arm64 olddefconfig
# to set all missing configs with the default conf
To get the kernel to build we also need to generate the vdso's (Some faster dynamic linking stuff):
Change the kernel config to your liking and may run the olddefconfig again.
Now to build the kernel for 64 bit arm using all available cores: