Currently, the avb_boot_img rule uses "openssl" from the host while
building. This causes a build error on hosts that do not have openssl
installed.
Since openssl is included in the prebuilt hermetic tools, let's update
the rule to use those instead.
Change-Id: Iddd95a3a74690bfe5e94733e810eed8800e77c39
Signed-off-by: John Moon <quic_johmoo@quicinc.com>
With a recent change to the output directory handling from
build_with_bazel.py, some dist directory paths incorrectly used
hyphens instead of underscores.
Fix this issue by mirroring the logic in msm_common.bzl which handles
these paths properly.
Also, run buildifier to fix format of Bazel build files.
Change-Id: Ia82073f059c54f4a7f523c5bd91afdc755c70df1
Signed-off-by: John Moon <quic_johmoo@quicinc.com>
Some targets require different boot image sizes, so allow that to be
configurable instead of hard-coded.
Change-Id: Iaac716f5baf91e99e0e91e71ab7da73edbbb46b7
Signed-off-by: Guru Das Srinagesh <quic_gurus@quicinc.com>
Convert the final boot image generated into a "chained partition" [1],
which is accomplished by calling `avbtool add_hash_footer` on it.
[1]: https://android.googlesource.com/platform/external/avb/+/master/README.md
Change-Id: Iee1b9d57165011ffbabd273a2610cf2733731359
Signed-off-by: Guru Das Srinagesh <quic_gurus@quicinc.com>