1
2# Copyright 2021 Google LLC
3#
4# Licensed under the Apache License, Version 2.0 (the "License");
5# you may not use this file except in compliance with the License.
6# You may obtain a copy of the License at
7#
8#      https://www.apache.org/licenses/LICENSE-2.0
9#
10# Unless required by applicable law or agreed to in writing, software
11# distributed under the License is distributed on an "AS IS" BASIS,
12# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13# See the License for the specific language governing permissions and
14# limitations under the License.
15
16# Top-level test configuration.
17# Converted from the following makefile
18### PRODUCT_PACKAGES += dev
19### PRODUCT_HOST_PACKAGES += host
20### $(call inherit-product, $(LOCAL_PATH)/part1.mk)
21### PRODUCT_COPY_FILES += device_from:device_to
22### include $(LOCAL_PATH)/include1.mk
23### PRODUCT_PACKAGES += dev_after
24### PRODUCT_COPY_FILES += $(call find-copy-subdir-files,audio_platform_info*.xml,device/google/redfin/audio,$(TARGET_COPY_OUT_VENDOR)/etc) xyz
25
26load("//build/make/core:product_config.rbc", "rblf")
27load(":part1.rbc", _part1_init = "init")
28load(":include1.rbc", _include1_init = "init")
29
30def init(g, handle):
31  cfg = rblf.cfg(handle)
32  rblf.setdefault(handle, "PRODUCT_PACKAGES")
33  cfg["PRODUCT_PACKAGES"] += ["dev"]
34  rblf.setdefault(handle, "PRODUCT_HOST_PACKAGES")
35  cfg["PRODUCT_HOST_PACKAGES"] += ["host"]
36  rblf.inherit(handle, "test/part1", _part1_init)
37  rblf.setdefault(handle, "PRODUCT_COPY_FILES")
38  cfg["PRODUCT_COPY_FILES"] += ["device_from:device_to"]
39  _include1_init(g, handle)
40  cfg["PRODUCT_PACKAGES"] += ["dev_after"]
41  cfg["PRODUCT_COPY_FILES"] += (rblf.find_and_copy("audio_platform_info*.xml", "device/google/redfin/audio", "||VENDOR-PATH-PH||/etc") +
42      ["xyz"])
43