Commit Graph

9 Commits

Author SHA1 Message Date
qctecmdr
3881c58a58 Merge "ANDROID: build: Replace genrules with write_file where possible" 2023-08-10 13:43:30 -07:00
John Moon
1312198e53 ANDROID: build: Replace genrules with write_file where possible
Currently, there are a few places where we use Bazel's native genrule
rule to generate files that consist of simple strings (usually with
cat << EOF or echo "str" >> "$@" semantics). It was recently pointed
out to us that the Skylib library (already available from Kleaf) has
a "write_file" rule which is better than our genrule method for
creating files from strings.

It's better because it has a simpler interface, does not rely on any
Starlark-external tools (i.e. bash), and does not require all of the
strings to be formatted in one operation which makes the rule
slightly more readable.

Replace file-creating genrules where it makes sense to do so. This
change has no impact on actual build logic as the output files are
logically identical.

Change-Id: I2cef369e299d42b2677ddea833c43d9c80eff32c
Signed-off-by: John Moon <quic_johmoo@quicinc.com>
2023-08-01 09:41:05 -07:00
John Moon
463dfbb7e8 ANDROID: build: Remove test_mapping definitions
Kleaf test_mapping rules are no longer used upstream and were being
skipped in our builds anyway.

Remove the test_mapping rules.

Change-Id: If8689f4572b1d1dce2c8ba03075444fa3af7d86b
Signed-off-by: John Moon <quic_johmoo@quicinc.com>
2023-07-27 09:25:18 -07:00
Sankalp Negi
12697b3290 build: Enable kernel-tests for gen4auto
Enable kernel-tests for gen4auto.

Change-Id: Iccd551f5d698cff46725433b3ab268af1b8228ef
Signed-off-by: Sankalp Negi <quic_snegi@quicinc.com>
2023-07-13 03:42:21 -07:00
Yadu MG
e85b7e239b build: Enable initrd for MonacoAU
Use LE initrd for MonacoAU target.

Change-Id: I5f615c0aa1b917c35c401195b2b7df386495bd0b
Signed-off-by: Yadu MG <quic_ymg@quicinc.com>
2023-06-26 11:45:12 -07:00
qctecmdr
cee69d6f9d Merge "build: update kernel cmdline with ttyMSM0 as serial console" 2023-06-15 18:57:25 -07:00
Sankalp Negi
04c5c807ac build: Remove references to qcom_boot_artifacts
Remove references to qcom_boot_artifacts repo, as its a no-ship.

Change-Id: Id031ac55b56e1af1c75b4b45a8a8dcaf9b81d1a1
Signed-off-by: Sankalp Negi <quic_snegi@quicinc.com>
2023-05-25 06:26:32 -07:00
Shazad Hussain
9d55d69531 build: update kernel cmdline with ttyMSM0 as serial console
Add ttyMSM0 as serial console to kernel cmdline parameter.

Change-Id: I58ebf03119bfca7b6acfdf792201bcaba502eb77
Signed-off-by: Shazad Hussain <quic_shazhuss@quicinc.com>
2023-05-19 16:38:35 +05:30
Sankalp Negi
8509239c44 build: Use "lxc" differentiators for monaco_auto target
In order to avoid conflicts with future Android/GKI variants
for same target, use "lxc" as differentiators for monaco_auto.

Change-Id: Ia7bb2d2a0ee30af453c043d375e2e81d203d3822
Signed-off-by: Sankalp Negi <quic_snegi@quicinc.com>
2023-05-16 01:57:26 -07:00