summaryrefslogtreecommitdiff
path: root/kleaf/bzlmod
AgeCommit message (Collapse)Author
6 dayskleaf: platforms -> 0.0.10.Yifan Hong
Updating our MODULE.bazel definition along with @platforms update. Test: TH Change-Id: I018e76cf5e2602a745b92c18d668e06321bdbd58 Signed-off-by: Yifan Hong <elsk@google.com>
10 dayskleaf: Drop bazel_dep(rules_rust).Yifan Hong
It is no longer used. Bug: 340944112 Bug: 284390729 Change-Id: I23f1f85ffdf50581ba56c392cabe27f0b79d71c7
2024-05-08Add toybox repository including minimal build descriptionMatthias Maennich
This allows to build the toybox binary from sources instead of using the prebuilt binary. Bug: 339377804 Change-Id: I6e6f1da6439ed8f13dadc23c21a63b526e97ca27 Signed-off-by: Matthias Maennich <maennich@google.com>
2024-05-08Add zlib repository including minimal build descriptionMatthias Maennich
This allows to replace "-lz" (hermetic prebuilt zlib) by "@zlib" (built from sources). Bug: 315488400 Bug: 339377804 Change-Id: Ib1a40c491109dfae896c1b4f1326a49550425f5b Signed-off-by: Matthias Maennich <maennich@google.com>
2024-05-02Add lz4 repository including minimal build descriptionMatthias Maennich
This allows to build the lz4 binary from sources instead of using the prebuilt binary. Change-Id: I781692e2693429105b9a4b60e2a23cc044aae3d5 Signed-off-by: Matthias Maennich <maennich@google.com>
2024-04-05Update rules_pkg to 0.10.1.Yifan Hong
Test: TH Bug: 324907235 Change-Id: Ifa1a0ba50c33bed7b5e6b8c2dc41f6ce58070ead
2024-03-12Kleaf: bzlmod: Update rules_rust versionKesavan Yogeswaran
Update rules_rust from 0.39.0 to 0.40.0, matching the update performed in r.android.com/3001716. Bug: 326310435 Change-Id: Ib795f24e139bfffeddaa8cd67e93908e3033960c
2024-03-07kleaf: Skip declare_toolchain_constants if using defaults.Yifan Hong
If using //common:build.config.constants, simply skip the declare_toolchain_constants call. This simplifies the Kleaf's MODULE.bazel, or the root MODULE.bazel when using Kleaf as the root module. Test: TH Bug: 328465178 Change-Id: I16c4e8c15e2ad9e0180100b6485e7dab2075d0ac
2024-03-07kleaf: Skip declare_host_tools() if using defaults.Yifan Hong
If using the default list of host tools, simply skip the declare_host_tools() call. This simplifies the Kleaf's MODULE.bazel, or the root MODULE.bazel when using Kleaf as the root module. Test: TH Bug: 328465178 Change-Id: I8225bdabc378e459f70d10a768aea0d15cb4160b
2024-03-04kleaf: Build docs with bzlmod.Yifan Hong
Modify rules to build docs properly under bzlmod. Bug: 324643611 Test: TH Change-Id: I3871f23d996ccf984579009c83f34c35cfb405d1
2024-03-04kleaf: kernel_ext.bzl -> kernel_toolchain_ext.bzl.Yifan Hong
Rename it back to kernel_toolchain_ext.bzl. This is done in multiple CLs to preserve git history. Bug: 291918087 Test: TH Change-Id: Ib61f3083dfde0e7be78a983efa72ad58d1c770d7
2024-03-04kleaf: Merge kleaf_host_tools_repo into kernel_ext.bzl.Yifan Hong
kernel_ext.bzl is the central extension for Kleaf. Move the existing kleaf_host_tools_repo.bzl into the central place. Bug: 291918087 Test: TH Change-Id: Ie2f17ed1dc6da18b49ef31f0cc84b2f03be4eeca
2024-03-04kleaf: kernel_toolchain_ext.bzl -> declare_toolchain_constants.bzl.Yifan Hong
kernel_ext.bzl is the temporary extension for toolchains Kleaf. Hide the existing kernel_toolchain_ext.bzl and re-export it in kernel_ext.bzl. Bug: 291918087 Test: TH Change-Id: I315f12d5e4cb57c0f41354b1f92586cb6e8bdb8d
2024-02-26kleaf: Set rules_rust with dev_dependency = True.Yifan Hong
If RUSTC_VERSION is set in kernel_toolchain_ext, kernel_build depends on rules_rust, so rules_rust is needed for at least GKI. However, if @kleaf is used as a dependent module in a DDKv2 set up and drivers are building against prebuilts, kernel_build might not be involved, and rules_rust might not be needed. If a DDKv2 driver is building against a core kernel built from source, it needs to have a direct dependency against rules_rust and call rust.toolchain() as well. Bug: 326373147 Test: manually verify that, without this change, DDKv2 project fails without explicitly depending on rules_rust because rules_rust is a transitive dependency. Change-Id: I42c5c806a4980be4c84694e66e45f3ab64e4d1da
2024-02-26kleaf: kernel_toolchain_ext.bzl use hard-coded //common:build.config.constants.Yifan Hong
Make it non-configurable to make the implementation simple. In the case where @kleaf is used as the root module (which will become a legacy method after DDKv2 is completed), the constant's path is hard-coded, and a symlink is needed. If @kleaf is used as a dependent module, it is addressed in the next CL. This makes the implementation much simpler. Bug: 293260835 Change-Id: Ia50b0e6f395750b458d3733a22dd79d823e38005
2024-02-21Kleaf: bzlmod: Include needed extensions for rules_rust module.Ulises Mendez Martinez
* This is now a transitive dependency needed when configuring this module in bzlmod. Bug: 325494729 Change-Id: Ieaaf8ea0fd920f80a3d537a465a48d83bd17872e Signed-off-by: Ulises Mendez Martinez <umendez@google.com>
2024-02-21Kleaf: bzlmod: Update rules_rust versionUlises Mendez Martinez
* upstream/0.20.0 -> upstream/0.39.0 Bug: 325494729 Change-Id: I3cca5834b0aac30b9c80f771294633e31d4f8914 Signed-off-by: Ulises Mendez Martinez <umendez@google.com>
2024-02-09kleaf: Add rules_rust in MODULE.bazel.Yifan Hong
Rust is enabled on android15-6.6, so it needs to be present in MODULE.bazel. With rust enabled, kernel_env targets has an explicit dependency on //prebuilts/rust/linux-x86/1.73.0:binaries. The package requires @rules_rust to be present. Test: TH Bug: 276493276 Change-Id: Id2830e438ade014daf635a1efcda82619d7d18d8
2024-02-02kleaf: Fix bzlmod doc.Yifan Hong
- Fix link. - Add link to workspace.md - Move to docs/bzlmod.md Bug: 276493276 Change-Id: I521dd799040cd49f7992dfb9237cb60af30ef5c1
2024-01-25kleaf: bzlmod: Use local_path_override.Yifan Hong
local_path_override yields a much simpler design and update process. Stardoc is temporarily removed because it does not have MODULE.bazel. It needs to be updated to make this working. Bug: 276493276 Change-Id: I184c6eb9c01685e5b6bd687cf4a4444a83459dae
2024-01-25kleaf: experimentally enable bzlmod.Yifan Hong
If --config=bzlmod is set, enable bzlmod. Test: bazel build //common:kernel_aarch64 --config=bzlmod Bug: 276493276 Change-Id: I73f2b10115ba789e04a41d05e053d49d3f04fc9d