kernel: Set up lynx kernel build

Change-Id: If2dd3d111d6b7edea3275ae06b9ca4cbbbeea4df
This commit is contained in:
Michael Bestas 2023-06-14 11:59:52 +03:00
parent f14fdfb5a4
commit a40f5ef30b
No known key found for this signature in database
GPG Key ID: F2D6C348F85577F5
1 changed files with 9 additions and 4 deletions

View File

@ -84,9 +84,14 @@ select_kernel_config() {
export BUILD_AOSP_KERNEL=1
export LTO=full
;;
lynx)
export DEVICE_KERNEL_BUILD_CONFIG=gs201/private/devices/google/lynx/build.config.lynx
export BUILD_AOSP_KERNEL=1
export LTO=full
;;
*)
echo "Unsupported kernel ${kernel}"
echo "Support kernels: crosshatch bonito coral sunfish redbull raviole bluejay pantah"
echo "Support kernels: crosshatch bonito coral sunfish redbull raviole bluejay pantah lynx"
exit
;;
esac
@ -97,7 +102,7 @@ build_kernel() {
# raviole/bluejay/pantah is built differently, gki
if [[ "${kernel}" == "raviole" || "${kernel}" == "bluejay" ]]; then
gs101/private/gs-google/build_slider.sh "${@}"
elif [[ "${kernel}" == "pantah" ]]; then
elif [[ "${kernel}" == "pantah" || "${kernel}" == "lynx" ]]; then
gs201/private/gs-google/build_slider.sh "${@}"
else
build/build.sh "${@}"
@ -115,8 +120,8 @@ clean_kernel() {
}
copy_kernel() {
# raviole/bluejay/pantah is built differently, gki
if [[ "${kernel}" == "raviole" || "${kernel}" == "bluejay" || "${kernel}" == "pantah" ]]; then
# raviole/bluejay/pantah/lynx is built differently, gki
if [[ "${kernel}" == "raviole" || "${kernel}" == "bluejay" || "${kernel}" == "pantah" || "${kernel}" == "lynx" ]]; then
cp -a "${OUT_DIR}/mixed/dist/"* "${top}/device/google/${kernel}-kernel/"
elif [[ "${kernel}" == "redbull" ]]; then
cp -a "${OUT_DIR}/dist/"* "${top}/device/google/${kernel}-kernel/vintf/"