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/27690356 and ag/27683070 a common inheritance layer has been added to all `non-factory` products for `tegu`. Therefore, setting different `PRODUCT_SOONG_NAMESPACES` in the corresponding `tegu_generic.mk` and `factory_tegu.mk` files will allow factory products and non-factory products of tegu to use different preloaded_nanoapps.json. FLAG: EXEMPT Mechanical refactoring Bug: 336452008 Bug: 313835597 Test: 1. lunch tegu-trunk_staging-userdebug && \ m -j preloaded_nanoapps.json 2. Check ./out/target/product/tegu/.../preloaded_nanoapps.json It should be the tegu version. 3. lunch factory_tegu-trunk_staging-userdebug && \ m -j preloaded_nanoapps.json 4. Check ./out/target/product/tegu/.../preloaded_nanoapps.json It should be the factory version. Change-Id: I483043ce3c55dc08b54699f332d654d18eedebd2
42 lines
1.3 KiB
Makefile
42 lines
1.3 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 := 6.1
|
|
|
|
$(call inherit-product, device/google/zumapro/factory_common.mk)
|
|
$(call inherit-product, device/google/tegu/device-tegu.mk)
|
|
include device/google/tegu/audio/tegu/factory-audio-tables.mk
|
|
|
|
# Factory binaries for GPS
|
|
include device/google/tegu/location/factory-gnss.mk
|
|
|
|
PRODUCT_NAME := factory_tegu
|
|
PRODUCT_DEVICE := tegu
|
|
PRODUCT_MODEL := Factory build on Tegu
|
|
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_tg4_wide_hat_tool
|
|
|
|
PRODUCT_WITHOUT_TTS_VOICE_PACKS := true
|
|
|
|
# preloaded_nanoapps.json
|
|
PRODUCT_SOONG_NAMESPACES += vendor/google_contexthub/devices/factory
|