
- Multiple targets can have same kernel config, but target will be differentiated by target name lunch command. - Instead of having multiple configuration in bazel file for different targets, calling get_all_la_target_variants will return all the target variants. - And for targets sharing the same kernel config but having a different lunch command can be queried using define_lunch_target_variant_modules. - Bazel compilation was modified generic based on lunch target and base target Change-Id: I82cdf744061b9ca395d2dcef003219d3af87287f Signed-off-by: Rajathi S <quic_rajathis@quicinc.com>
74 linhas
1.7 KiB
Python
74 linhas
1.7 KiB
Python
load("//build/kernel/kleaf:kernel.bzl", "ddk_headers")
|
|
|
|
package(
|
|
default_visibility = [
|
|
"//visibility:public"],
|
|
)
|
|
|
|
ddk_headers(
|
|
name = "uapi_headers",
|
|
hdrs = glob([
|
|
"include/uapi/vidc/media/*.h",
|
|
]),
|
|
includes = ["include/uapi/vidc"]
|
|
)
|
|
|
|
ddk_headers(
|
|
name = "pineapple_headers",
|
|
hdrs = glob([
|
|
"driver/platform/pineapple/inc/*.h",
|
|
]),
|
|
includes = ["driver/platform/pineapple/inc"]
|
|
)
|
|
|
|
ddk_headers(
|
|
name = "cliffs_headers",
|
|
hdrs = glob([
|
|
"driver/platform/cliffs/inc/*.h",
|
|
]),
|
|
includes = ["driver/platform/cliffs/inc"]
|
|
)
|
|
|
|
ddk_headers(
|
|
name = "iris33_headers",
|
|
hdrs = glob([
|
|
"driver/variant/iris33/inc/*.h",
|
|
]),
|
|
includes = ["driver/variant/iris33/inc"]
|
|
)
|
|
|
|
ddk_headers(
|
|
name = "iris2_headers",
|
|
hdrs = glob([
|
|
"driver/variant/iris2/inc/*.h",
|
|
]),
|
|
includes = ["driver/variant/iris2/inc"]
|
|
)
|
|
|
|
ddk_headers(
|
|
name = "volcano_headers",
|
|
hdrs = glob([
|
|
"driver/platform/volcano/inc/*.h",
|
|
]),
|
|
includes = ["driver/platform/volcano/inc"]
|
|
)
|
|
|
|
ddk_headers(
|
|
name = "vidc_headers",
|
|
hdrs = glob([
|
|
"driver/vidc/inc/*.h",
|
|
"driver/variant/common/inc/*.h",
|
|
"driver/platform/common/inc/*.h"
|
|
]),
|
|
includes = ["driver/vidc/inc", "driver/variant/common/inc", "driver/platform/common/inc"]
|
|
)
|
|
|
|
ddk_headers(
|
|
name = "video_driver_headers",
|
|
# hdrs = [":pineapple_configs", "uapi_headers", "pineapple_headers", "iris33_headers", "vidc_headers"]
|
|
hdrs = [":uapi_headers", "pineapple_headers", "cliffs_headers", "iris33_headers", "volcano_headers", "iris2_headers", "vidc_headers"]
|
|
)
|
|
|
|
load(":target.bzl", "define_target_modules")
|
|
define_target_modules()
|