Commit Graph

4 Commits

Author SHA1 Message Date
John Moon
c8511316f2 ANDROID: build: avb_boot_img: Use hermetic tools
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>
2023-09-05 12:16:55 -07:00
John Moon
c38cee9986 ANDROID: build: Fix output directory layout
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>
2023-07-22 20:40:11 -07:00
Guru Das Srinagesh
17717e1c51 ANDROID: build: avb_boot_img: Make boot img size configurable
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>
2023-06-07 09:49:41 -07:00
Guru Das Srinagesh
af8690653b ANDROID: build: msm_kernel_la: Make boot image a chained partition
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>
2023-05-19 14:17:49 -07:00