16kb: Use PRODUCT_BOOTS_16K to select the kernel and fs

The build flag PRODUCT_BOOTS_16K will be used to select
whether the shusky devices boot with 16kb kernel or 4kb kernel.

Bug: 370842132
Bug: 346868433
Test: Built and booted up the following targets:
      aosp_shiba_pgagnostic-trunk_staging-userdebug
      aosp_shiba-trunk_staging-userdebug
Flag: EXEMPT bugfix
Change-Id: Ia75c7f8cfca6d651777c730a3f86715a0991fbec
Merged-In: Ia75c7f8cfca6d651777c730a3f86715a0991fbec
This commit is contained in:
Juan Yescas 2024-06-26 21:28:09 -07:00 committed by Vilas Bhat
parent 54e593d3e7
commit 71af04af16
2 changed files with 2 additions and 6 deletions

View file

@ -31,9 +31,7 @@ ifeq ($(filter factory_husky, $(TARGET_PRODUCT)),)
include device/google/shusky/uwb/uwb_calibration.mk
endif
DEVICE_PAGE_AGNOSTIC ?= $(if $(filter %_pgagnostic,$(TARGET_PRODUCT)),true,false)
ifeq ($(DEVICE_PAGE_AGNOSTIC),true)
ifeq ($(PRODUCT_BOOTS_16K),true)
TARGET_USERDATAIMAGE_FILE_SYSTEM_TYPE := ext4
TARGET_KERNEL_DIR := $(RELEASE_KERNEL_HUSKY_DIR)/16kb
TARGET_RW_FILE_SYSTEM_TYPE := ext4

View file

@ -24,9 +24,7 @@ TARGET_BOARD_KERNEL_HEADERS ?= $(RELEASE_KERNEL_SHIBA_DIR)/kernel-headers
LOCAL_PATH := device/google/shusky
DEVICE_PAGE_AGNOSTIC ?= $(if $(filter %_pgagnostic,$(TARGET_PRODUCT)),true,false)
ifeq ($(DEVICE_PAGE_AGNOSTIC),true)
ifeq ($(PRODUCT_BOOTS_16K),true)
TARGET_USERDATAIMAGE_FILE_SYSTEM_TYPE := ext4
TARGET_KERNEL_DIR := $(RELEASE_KERNEL_SHIBA_DIR)/16kb
TARGET_RW_FILE_SYSTEM_TYPE := ext4