Commit graph

2 commits

Author SHA1 Message Date
Arindam Mondal
3e73817588 Convert tegu/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/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
2024-06-06 03:14:06 +00:00
Arindam Mondal
64a738e66f Refactor product inheritance for tegu products.
Add an additional layer of inheritance for tegu products.

This change adds a common layer of inheritance for non-factory
products (tegu_generic.mk). This makes it easier to configure
factory and non-factory products differently.

Non-factory `tegu` products now inherits from
`device/google/tegu/tegu_generic.mk` which inherit from
`device/google/tegu/device-tegu.mk`.

FLAG: EXEMPT mechanical refactoring

Bug: 336452008
Bug: 345198819
Test: lunch tegu-trunk_staging-userdebug && m
Change-Id: I5a48fe09f825ec7d8dff50ff36b1c1b1b1a6fa22
2024-06-06 03:11:34 +00:00