bazel: Add support to build autogvm_lxc

Add autogvm_lxc build target for LVGVM kernel image via bazel
build system.

Change-Id: I572fd3b6e7ade9f7fd0c1aacc8540bd57bea3abe
Signed-off-by: Zou Shunxiang <quic_shunxian@quicinc.com>
This commit is contained in:
Zou Shunxiang 2023-06-01 15:31:14 +08:00 committed by Gerrit - the friendly Code Review server
parent 4754a57169
commit d38d1f661d
3 changed files with 27 additions and 0 deletions

24
autogvm_lxc.bzl Normal file
View File

@ -0,0 +1,24 @@
load(":target_variants.bzl", "lxc_variants")
load(":msm_kernel_lxc.bzl", "define_msm_lxc")
load(":image_opts.bzl", "boot_image_opts")
target_name = "autogvm"
def define_autogvm_lxc():
_autogvm_lxc_in_tree_modules = [
# keep sorted
]
for variant in lxc_variants:
mod_list = _autogvm_lxc_in_tree_modules
define_msm_lxc(
msm_target = target_name,
variant = variant,
defconfig = "build.config.msm.auto",
in_tree_module_list = mod_list,
boot_image_opts = boot_image_opts(
boot_image_header_version = 2,
base_address = 0x80000000,
page_size = 4096),
)

View File

@ -1,5 +1,6 @@
load(":gen3auto.bzl", "define_gen3auto")
load(":autogvm.bzl", "define_autogvm")
load(":autogvm_lxc.bzl", "define_autogvm_lxc")
load(":gen4auto_lxc.bzl", "define_gen4auto_lxc")
load(":pineapple.bzl", "define_pineapple")
load(":pineapple_tuivm.bzl", "define_pineapple_tuivm")
@ -15,6 +16,7 @@ def define_msm_platforms():
define_signing_keys()
define_gen3auto()
define_autogvm()
define_autogvm_lxc()
define_gen4auto_lxc()
define_pineapple()
define_pineapple_tuivm()

View File

@ -20,6 +20,7 @@ lxc_variants = [
lxc_targets = [
# keep sorted
"autogvm",
"gen4auto",
]