diff --git a/BoardConfig-shusky-common.mk b/BoardConfig-shusky-common.mk new file mode 100644 index 0000000..f2ede26 --- /dev/null +++ b/BoardConfig-shusky-common.mk @@ -0,0 +1,33 @@ +# +# Copyright (C) 2024 The Android Open-Source Project +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# + +ifeq ($(PRODUCT_16K_DEVELOPER_OPTION),true) +# Configures the 16kb kernel and modules for OTA updates. +TARGET_KERNEL_DIR_16K := $(TARGET_KERNEL_DIR)/16kb +BOARD_KERNEL_PATH_16K := $(TARGET_KERNEL_DIR_16K)/Image.lz4 + +BOARD_KERNEL_MODULES_16K += $(file < $(TARGET_KERNEL_DIR_16K)/vendor_kernel_boot.modules.load) +BOARD_KERNEL_MODULES_16K += $(file < $(TARGET_KERNEL_DIR_16K)/system_dlkm.modules.load) +BOARD_KERNEL_MODULES_16K += $(file < $(TARGET_KERNEL_DIR_16K)/vendor_dlkm.modules.load) +BOARD_KERNEL_MODULES_16K := $(foreach module,$(BOARD_KERNEL_MODULES_16K),$(TARGET_KERNEL_DIR_16K)/$(notdir $(module))) + +# Shusky targets use exynos-bcm_dbg.ko module instead of bcm_dbg.ko. +BOARD_KERNEL_MODULES_16K := $(filter-out %/bcm_dbg.ko,$(BOARD_KERNEL_MODULES_16K)) +BOARD_KERNEL_MODULES_LOAD_16K := $(foreach module,$(BOARD_KERNEL_MODULES_16K),$(notdir $(module))) + +BOARD_16K_OTA_USE_INCREMENTAL := true +BOARD_16K_OTA_MOVE_VENDOR := true +endif \ No newline at end of file diff --git a/OWNERS b/OWNERS index 0914422..c7a36d1 100644 --- a/OWNERS +++ b/OWNERS @@ -1,4 +1,4 @@ per-file perf/*,thermal/*= jenhaochen@google.com,wvw@google.com,joaodias@google.com # per-file for Pixel device makefiles, see go/pixel-device-mk-owner-checklist for details. -per-file *.mk,*/BoardConfig.mk=file:device/google/gs-common:main:/OWNERS +per-file *.mk,*/BoardConfig.mk=file:device/google/gs-common:main:/MK_OWNERS diff --git a/aosp_husky.mk b/aosp_husky.mk index 3ea1b08..47cf99b 100644 --- a/aosp_husky.mk +++ b/aosp_husky.mk @@ -20,7 +20,7 @@ USE_SWIFTSHADER := true BOARD_USES_SWIFTSHADER := true $(call inherit-product, device/google/zuma/aosp_common.mk) -$(call inherit-product, device/google/shusky/device-husky.mk) +$(call inherit-product, device/google/shusky/husky_generic.mk) PRODUCT_NAME := aosp_husky PRODUCT_DEVICE := husky diff --git a/aosp_husky_pgagnostic.mk b/aosp_husky_pgagnostic.mk index 96803f5..00ac252 100644 --- a/aosp_husky_pgagnostic.mk +++ b/aosp_husky_pgagnostic.mk @@ -16,7 +16,10 @@ $(call inherit-product, device/google/shusky/aosp_husky.mk) PRODUCT_NAME := aosp_husky_pgagnostic -PRODUCT_MODEL := AOSP page-size agnostic Husky 64K ELF +PRODUCT_MODEL := AOSP page-size agnostic Husky 16KB ELF PRODUCT_NO_BIONIC_PAGE_SIZE_MACRO := true -PRODUCT_MAX_PAGE_SIZE_SUPPORTED := 65536 +PRODUCT_MAX_PAGE_SIZE_SUPPORTED := 16384 + +TARGET_USERDATAIMAGE_FILE_SYSTEM_TYPE := ext4 + diff --git a/aosp_ripcurrent.mk b/aosp_ripcurrent.mk index 83322c4..4a6c484 100644 --- a/aosp_ripcurrent.mk +++ b/aosp_ripcurrent.mk @@ -20,7 +20,7 @@ USE_SWIFTSHADER := true BOARD_USES_SWIFTSHADER := true $(call inherit-product, device/google/zuma/aosp_common.mk) -$(call inherit-product, device/google/shusky/device-ripcurrent.mk) +$(call inherit-product, device/google/shusky/ripcurrent_generic.mk) PRODUCT_NAME := aosp_ripcurrent PRODUCT_DEVICE := ripcurrent diff --git a/aosp_shiba.mk b/aosp_shiba.mk index 04a59a7..f9ec72f 100644 --- a/aosp_shiba.mk +++ b/aosp_shiba.mk @@ -20,7 +20,7 @@ USE_SWIFTSHADER := true BOARD_USES_SWIFTSHADER := true $(call inherit-product, device/google/zuma/aosp_common.mk) -$(call inherit-product, device/google/shusky/device-shiba.mk) +$(call inherit-product, device/google/shusky/shiba_generic.mk) PRODUCT_NAME := aosp_shiba PRODUCT_DEVICE := shiba diff --git a/aosp_shiba_pgagnostic.mk b/aosp_shiba_pgagnostic.mk index 8351681..40f0a48 100644 --- a/aosp_shiba_pgagnostic.mk +++ b/aosp_shiba_pgagnostic.mk @@ -16,7 +16,10 @@ $(call inherit-product, device/google/shusky/aosp_shiba.mk) PRODUCT_NAME := aosp_shiba_pgagnostic -PRODUCT_MODEL := AOSP page-size agnostic Shiba 64K ELF +PRODUCT_MODEL := AOSP page-size agnostic Shiba 16KB ELF PRODUCT_NO_BIONIC_PAGE_SIZE_MACRO := true -PRODUCT_MAX_PAGE_SIZE_SUPPORTED := 65536 +PRODUCT_MAX_PAGE_SIZE_SUPPORTED := 16384 + +TARGET_USERDATAIMAGE_FILE_SYSTEM_TYPE := ext4 + diff --git a/audio/husky/aidl_config/mixer_paths_aidl.xml b/audio/husky/aidl_config/mixer_paths_aidl.xml index 9aa0c88..9695f70 100644 --- a/audio/husky/aidl_config/mixer_paths_aidl.xml +++ b/audio/husky/aidl_config/mixer_paths_aidl.xml @@ -1410,7 +1410,7 @@ - + @@ -1420,6 +1420,14 @@ + + + + + + + + diff --git a/audio/husky/config/audio_policy_configuration.xml b/audio/husky/config/audio_policy_configuration.xml index ac241e4..adb66a3 100644 --- a/audio/husky/config/audio_policy_configuration.xml +++ b/audio/husky/config/audio_policy_configuration.xml @@ -51,8 +51,8 @@ samplingRates="8000 16000 24000 32000 44100 48000" channelMasks="AUDIO_CHANNEL_OUT_STEREO AUDIO_CHANNEL_OUT_MONO"/> + samplingRates="48000" + channelMasks="AUDIO_CHANNEL_OUT_STEREO"/> - - - - @@ -161,8 +157,6 @@ - - + samplingRates="48000" + channelMasks="AUDIO_CHANNEL_OUT_STEREO"/> - - - - @@ -161,8 +157,6 @@ - - diff --git a/audio/husky/config/audio_policy_configuration_bluetooth_legacy_hal.xml b/audio/husky/config/audio_policy_configuration_bluetooth_legacy_hal.xml index 0755fec..eccadf7 100644 --- a/audio/husky/config/audio_policy_configuration_bluetooth_legacy_hal.xml +++ b/audio/husky/config/audio_policy_configuration_bluetooth_legacy_hal.xml @@ -131,10 +131,6 @@ - - - - @@ -154,8 +150,6 @@ - - diff --git a/audio/husky/config/audio_policy_configuration_le_offload_disabled.xml b/audio/husky/config/audio_policy_configuration_le_offload_disabled.xml index bfd76a7..d4f70a9 100644 --- a/audio/husky/config/audio_policy_configuration_le_offload_disabled.xml +++ b/audio/husky/config/audio_policy_configuration_le_offload_disabled.xml @@ -51,8 +51,8 @@ samplingRates="8000 16000 24000 32000 44100 48000" channelMasks="AUDIO_CHANNEL_OUT_STEREO AUDIO_CHANNEL_OUT_MONO"/> + samplingRates="48000" + channelMasks="AUDIO_CHANNEL_OUT_STEREO"/> - - - - @@ -161,8 +157,6 @@ - - - + @@ -1420,6 +1420,14 @@ + + + + + + + + diff --git a/audio/shiba/config/audio_policy_configuration.xml b/audio/shiba/config/audio_policy_configuration.xml index 9c8f2f9..4c2445d 100644 --- a/audio/shiba/config/audio_policy_configuration.xml +++ b/audio/shiba/config/audio_policy_configuration.xml @@ -51,8 +51,8 @@ samplingRates="8000 16000 24000 32000 44100 48000" channelMasks="AUDIO_CHANNEL_OUT_STEREO AUDIO_CHANNEL_OUT_MONO"/> + samplingRates="48000" + channelMasks="AUDIO_CHANNEL_OUT_STEREO"/> - - - - @@ -161,8 +157,6 @@ - - + samplingRates="48000" + channelMasks="AUDIO_CHANNEL_OUT_STEREO"/> - - - - @@ -161,8 +157,6 @@ - - diff --git a/audio/shiba/config/audio_policy_configuration_bluetooth_legacy_hal.xml b/audio/shiba/config/audio_policy_configuration_bluetooth_legacy_hal.xml index 0755fec..eccadf7 100644 --- a/audio/shiba/config/audio_policy_configuration_bluetooth_legacy_hal.xml +++ b/audio/shiba/config/audio_policy_configuration_bluetooth_legacy_hal.xml @@ -131,10 +131,6 @@ - - - - @@ -154,8 +150,6 @@ - - diff --git a/audio/shiba/config/audio_policy_configuration_le_offload_disabled.xml b/audio/shiba/config/audio_policy_configuration_le_offload_disabled.xml index 0f6f636..912e7a8 100644 --- a/audio/shiba/config/audio_policy_configuration_le_offload_disabled.xml +++ b/audio/shiba/config/audio_policy_configuration_le_offload_disabled.xml @@ -51,8 +51,8 @@ samplingRates="8000 16000 24000 32000 44100 48000" channelMasks="AUDIO_CHANNEL_OUT_STEREO AUDIO_CHANNEL_OUT_MONO"/> + samplingRates="48000" + channelMasks="AUDIO_CHANNEL_OUT_STEREO"/> - - - - @@ -161,8 +157,6 @@ - - false true - - GKWS6 - GZPF0 - GPJ41 - true 68 @@ -33,4 +28,5 @@ 97 true + true diff --git a/shiba_generic.mk b/shiba_generic.mk new file mode 100644 index 0000000..f08b683 --- /dev/null +++ b/shiba_generic.mk @@ -0,0 +1,20 @@ +# +# Copyright 2024 The Android Open-Source Project +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# + +$(call inherit-product, device/google/shusky/device-shiba.mk) + +# preloaded_nanoapps.json +PRODUCT_SOONG_NAMESPACES += vendor/google_contexthub/devices/p23_common