device_google_raviole/factory_slider.mk
Nelson Li 2dd9ebfb37 Convert slider/preloaded_nanoapps.json's .mk file to Android.bp.
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/27170565, ag/27170566, 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: 338332183
Test: 1. lunch <product_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: I97798f0e7876ceb016a31f7da74508fe5a701915
2024-05-06 02:22:05 +00:00

28 lines
1 KiB
Makefile

#
# Copyright 2020 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/gs101/factory_common.mk)
$(call inherit-product, device/google/raviole/device-slider.mk)
include device/google/raviole/audio/slider/factory-audio-tables.mk
PRODUCT_NAME := factory_slider
PRODUCT_DEVICE := slider
PRODUCT_MODEL := Factory build on Slider
PRODUCT_BRAND := Android
PRODUCT_MANUFACTURER := Google
# preloaded_nanoapps.json
PRODUCT_SOONG_NAMESPACES += vendor/google_contexthub/devices/factory