p23_common includes 4 devices. Since `preloaded_nanoapps.json` has different configurations for `factory` products and `non-factory` products, `soong_namespace {}` needs to be added to the converted Android.bp file to avoid misuse. Additionally, due to ag/27008138, ag/27046793, ag/27008143, and ag/27056982, a common inheritance layer has been added to all `non-factory` products. Therefore, setting different `PRODUCT_SOONG_NAMESPACES` in the corresponding `<DEVICE>_generic.mk` and `factory_<DEVICE>.mk` files will allow factory products and non-factory products to use different preloaded_nanoapps.json. Bug: 332219400 Test: 1. lunch <device_name>-trunk_staging-userdebug && \ m -j preloaded_nanoapps.json 2. Check ./out/target/product/<device_name>/.../preloaded_nanoapps.json It should be the <device_name> version. 3. lunch factory_<device_name>-trunk_staging-userdebug && \ m -j preloaded_nanoapps.json 4. Check ./out/target/product/<device_name>/.../preloaded_nanoapps.json It should be the factory version. Change-Id: Ife53dddd3469de8eacb6d862bc1b8d9de3ce427e
40 lines
1.5 KiB
Makefile
40 lines
1.5 KiB
Makefile
#
|
|
# Copyright 2021 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.
|
|
#
|
|
|
|
TARGET_LINUX_KERNEL_VERSION := 5.15
|
|
|
|
$(call inherit-product, device/google/zuma/factory_common.mk)
|
|
$(call inherit-product, device/google/shusky/device-husky.mk)
|
|
include device/google/shusky/audio/husky/factory-audio-tables.mk
|
|
# Override to factory SDK
|
|
$(call soong_config_set, gpssdk, sdkv1, True)
|
|
$(call soong_config_set, gpssdk, gpsmcuversion, gpsv1_$(TARGET_BUILD_VARIANT))
|
|
|
|
PRODUCT_NAME := factory_husky
|
|
PRODUCT_DEVICE := husky
|
|
PRODUCT_MODEL := Factory build on Husky
|
|
PRODUCT_BRAND := Android
|
|
PRODUCT_MANUFACTURER := Google
|
|
|
|
# default BDADDR for EVB only
|
|
PRODUCT_PROPERTY_OVERRIDES += \
|
|
ro.vendor.bluetooth.evb_bdaddr="22:22:22:33:44:55"
|
|
|
|
# Factory binaries of camera
|
|
PRODUCT_PACKAGES += fatp_hk3sb3_wide_hat_tool fatp_hk3_tele_hat_tool fatp_hk3_ultrawide_hat_tool fatp_hk3_front_hat_tool factory_hk3sb3_main_cam_decompress_test
|
|
|
|
# preloaded_nanoapps.json
|
|
PRODUCT_SOONG_NAMESPACES += vendor/google_contexthub/devices/factory
|