Tags: enfabrica/enkit
Tags
linux/defs.bzl: fix the outputs of kernel_module (#520) kernel_module returned as an output only the symvers file and not the ko file. Example run before this commit: $ bazel build driver/core:enf Target //driver/core:enf up-to-date: bazel-bin/driver/core/enf-ubuntu-impish-minimal/enf.ko.symvers bazel-bin/driver/core/enf-ubuntu-impish-generic/enf.ko.symvers Example run with this commit: $ bazel build driver/core:enf Target //driver/core:enf up-to-date: bazel-bin/driver/core/enf-ubuntu-impish-minimal/enf.ko bazel-bin/driver/core/enf-ubuntu-impish-minimal/enf.ko.symvers bazel-bin/driver/core/enf-ubuntu-impish-generic/enf.ko bazel-bin/driver/core/enf-ubuntu-impish-generic/enf.ko.symvers Signed-off-by: George Prekas <george@enfabrica.net>
Update kunit result parsing (#511) * kunit: unmodified import of kunit scripts from enf/impish-19.19 This patch is a direct, unmodified import of the tools/test/kunit/*.py scripts from our enf/impish-19.19 kernel branch. Signed-off-by: Curt Brune <curt@enfabrica.net> * kunit: remove dependence of kernel source tree The kunit.py has several sub-commands that require the entire kernel source tree to be present. For parsing kunit test results, however, we do not need the kernel tree. This patch removes a check for the kernel root directory. Signed-off-by: Curt Brune <curt@enfabrica.net> * kunit: munge the test result to contain the number of test suites As elaborated on in SF-73, our kunit test results are lacking the number of test suites run, which blows up the kunit test result parser. This patch does a quick "grep and wc" to determine the number of test suites and updates the test result. Fixes: SF-73 Signed-off-by: Curt Brune <curt@enfabrica.net>
bazel/bats: configure it in a way so it is usable from other repos. Background: bats is a unit testing framework for shell scripts. When using @// syntax to refer to a file, it always refers to the current workspace. Eg, if the defs.bzl is invoked from a repository by a namespace called internal, @// will refer to "internal". In this change: - use @enkit - so the BUILD.*.bazel files can be used from other repositories without copying them. - import bats_file library, so we have the full set of tools.
bazel astore: Create function to format astore URLs (#253) This change adds an `astore_url` function that can be used to return a formatted URL for a particular package + version tuple. This allows WORKSPACE file authors to think in terms of this tuple rather than having to encode/decode astore URLs manually. This turns: ``` kernel_tree_version( name = "enfvm-ubuntu-hirsute", package = "enfvm-5.11.22+enf-1634151087-g17b4193", sha256 = "37f4d4b270854b65416a2d071f4fc06b50262eb11ad32ee38f5e9143b9f5a624", url = "https://astore.corp.enfabrica.net/d/kernel/enf/hirsute-25.27/vm/enf-kernel.tar.gz", ) ``` into: ``` kernel_tree_version( name = "enfvm-ubuntu-hirsute", package = "enfvm-5.11.22+enf-1634151087-g17b4193", sha256 = "37f4d4b270854b65416a2d071f4fc06b50262eb11ad32ee38f5e9143b9f5a624", url = astore_url( package = "/kernel/enf/hirsute-25.27/vm/enf-kernel.tar.gz", uid = "h6rdi5rdeu44pndi75icc8szk6bm8dnj", ), ) ``` Tested: Locally in internal with the above change, while overriding the `enkit` dependency with this change.
kbuild: update error message with incorrect kernel dependencies (#231) * kbuild: update error message with incorrect kernel dependencies Background: Two kernel modules can only be linked to one another if they are built against the same kernel version. In this PR: - update the error message printed if one of the dependencies is not built with the correct kernel. * Slightly better message.
PreviousNext