Skip to content

Commit bdd8ef3

Browse files
bhcopelandroxell
authored andcommitted
docs: update --kconfig-add help text, remove kselftest-merge target
Document the make:<target> syntax for running make targets that modify .config (e.g. make:kselftest-merge) in the CLI help and docs/kconfig.md. Update CONFIG_*=[y|m|n] to CONFIG_*=<value> to reflect that any value is now accepted. Remove the deprecated kselftest-merge target. The kernel's kselftest-merge make target is still available via --kconfig-add=make:kselftest-merge. Drop runs_after references from kselftest.ini and default.ini. Signed-off-by: Ben Copeland <ben.copeland@linaro.org>
1 parent 077d933 commit bdd8ef3

8 files changed

Lines changed: 9 additions & 39 deletions

File tree

docs/kconfig.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,12 @@ ways:
2626
- a path to a config file on the local filesystem;
2727
- a URL to a config file, in which case TuxMake will download it;
2828
- a config fragment matching one of these:
29-
- `CONFIG_*=[y|m|n]`
29+
- `CONFIG_*=<value>`
30+
31+
`<value>` can be `y`, `m`, `n`, a number, a hex value, or a string.
32+
TuxMake only checks the format. The value is passed to kconfig
33+
(`merge_config.sh` and `make olddefconfig`), which decides what to do
34+
with it.
3035
- `# CONFIG_* is not set`
3136

3237
`kconfig_add` can be specified multiple times. Any in-tree configuration target

docs/targets.md

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -136,17 +136,6 @@ selftests because they require the most recent clang toolchain and a specific
136136
kernel configuration. The resulting, installed tests are compressed in a
137137
tarball which is copied into the output directory as `kselftest-bpf.tar.xz`.
138138

139-
## kselftest-merge
140-
141-
*DEPRECATED:* this target is deprecated. You should use
142-
`--kconfig-add=make:kselftest-merge` instead.
143-
144-
This target merges some configuration required by `kselftest` in the kernel
145-
configuration. It will run after the `config` target. Note that `kselftest`
146-
does not require this, so if you want `kselftest-merge` to be built, it needs
147-
to be specified explicitly. If built, it will always be built before
148-
`kselftest` itself.
149-
150139
## clang-analyzer
151140

152141
This target run check with clang static analyzer.

test/test_build.py

Lines changed: 1 addition & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1123,26 +1123,11 @@ def test_vmlinux(self, linux):
11231123

11241124

11251125
class TestKselftest:
1126-
def test_kselftest_merge_before_kselftest(self, linux):
1127-
build = Build(tree=linux, targets=["kselftest", "kselftest-merge"])
1128-
names = [t.name for t in build.targets][-2:]
1129-
assert names == ["kselftest-merge", "kselftest"]
1130-
1131-
def test_kselftest_merge_before_kselftest_with_input_already_ordered(self, linux):
1132-
build = Build(tree=linux, targets=["kselftest-merge", "kselftest"])
1133-
names = [t.name for t in build.targets][-2:]
1134-
assert names == ["kselftest-merge", "kselftest"]
1135-
1136-
def test_kselftest_without_kselftest_merge(self, linux):
1126+
def test_kselftest_depends_on_config(self, linux):
11371127
build = Build(tree=linux, targets=["kselftest"])
11381128
names = [t.name for t in build.targets]
11391129
assert names == ["config", "kselftest"]
11401130

1141-
def test_kselftest_merge_runs_right_after_config_and_before_default(self, linux):
1142-
build = Build(tree=linux, targets=["config", "kernel", "kselftest-merge"])
1143-
names = [t.name for t in build.targets]
1144-
assert names == ["config", "kselftest-merge", "default", "kernel"]
1145-
11461131
def test_nonfatal_continues_on_failure(self, linux, mocker):
11471132
b = Build(tree=linux, targets=["config"])
11481133
target = mocker.MagicMock()

tuxmake/cmdline.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ def build_parser(cls=argparse.ArgumentParser, **kwargs):
9696
"--kconfig-add",
9797
type=str,
9898
action="append",
99-
help="Extra kconfig fragments, merged on top of the main kconfig from --kconfig. In tree configuration fragment (e.g. `kvm_guest.config`), path to local file, URL, `CONFIG_*=[y|m|n]`, or `# CONFIG_* is not set`. Can be specified multiple times, and will be merged in the order given.",
99+
help="Extra kconfig fragments, merged on top of the main kconfig from --kconfig. In tree configuration fragment (e.g. `kvm_guest.config`), path to local file, URL, `CONFIG_*=<value>`, `# CONFIG_* is not set`, or `make:<target>` to run a make target that modifies .config (e.g. `make:kselftest-merge`). Can be specified multiple times, and will be merged in the order given.",
100100
)
101101
target.add_argument(
102102
"-I",

tuxmake/target/default.ini

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
[target]
22
description = "Default target"
33
dependencies = config
4-
runs_after = kselftest-merge
54
commands = {make}

tuxmake/target/kselftest-bpf.ini

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
11
[target]
22
description = "Kernel BPF selftest (kselftest)"
33
# Some BPF tests use BTF data (type information) from the generated kernel
4-
# image, hence the dependency to kernel and CONFIG_DEBUG_INFO_BTF. The other
5-
# config options are needed to run all BPF tests but not currently included
6-
# by the kselftest-merge target.
4+
# image, hence the dependency to kernel and CONFIG_DEBUG_INFO_BTF.
75
dependencies = kernel headers
86
nonfatal = true
97
commands = {make} -C tools/testing/selftests/ all

tuxmake/target/kselftest-merge.ini

Lines changed: 0 additions & 5 deletions
This file was deleted.

tuxmake/target/kselftest.ini

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
[target]
22
description = "Kernel selftest (kselftest)"
33
dependencies = config
4-
runs_after = kselftest-merge
54
nonfatal = true
65
commands = {make} -C tools/testing/selftests all
76
&& {make} -i -C tools/testing/selftests install

0 commit comments

Comments
 (0)