8503690aa2
Currently, only legacy build.sh support exists for VM builds. Add Bazel support for these builds. Change-Id: I10b221aa4a6633240b984eff333e15f5cd8b82cd Signed-off-by: John Moon <quic_johmoo@quicinc.com>
22 lines
622 B
Python
22 lines
622 B
Python
load("//build/bazel_common_rules/dist:dist.bzl", "copy_to_dist_dir")
|
|
|
|
def define_abl_dist(target):
|
|
"""Creates ABL distribution target
|
|
|
|
Args:
|
|
target: name of main Bazel target (e.g. `kalama_gki`)
|
|
"""
|
|
native.alias(
|
|
name = "{}_abl".format(target),
|
|
actual = "//bootable/bootloader/edk2:{}_abl".format(target),
|
|
)
|
|
|
|
copy_to_dist_dir(
|
|
name = "{}_abl_dist".format(target),
|
|
archives = ["{}_abl".format(target)],
|
|
dist_dir = "out/msm-kernel-{}/dist".format(target.replace("_", "-")),
|
|
flat = True,
|
|
wipe_dist_dir = False,
|
|
log = "info",
|
|
)
|