diff options
| author | Tom Rini <trini@konsulko.com> | 2019-03-06 09:36:13 -0500 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2019-03-06 23:12:27 +0000 |
| commit | 648cd455dcdd67a66ed786ce43f31ba22442957b (patch) | |
| tree | f061c16ff7471f9e38bf46b8d4e3fbaced55e668 /meta/lib | |
| parent | 971f4a11ea18e88db9185fc027a0d212ed3cf1b3 (diff) | |
| download | poky-648cd455dcdd67a66ed786ce43f31ba22442957b.tar.gz | |
imagefeatures: Add test to blacklist building busybox
Now that we have a packagegroup that can be used to replace the overall
functionality of busybox as base-utils, add a test that we can continue
to build a fairly complex image without busybox being available. This
also doubles as documentation-by-test of how to do this.
(From OE-Core rev: 6319a59c1d30eeb8ad4871d43641e3469fb543ba)
Signed-off-by: Tom Rini <trini@konsulko.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/lib')
| -rw-r--r-- | meta/lib/oeqa/selftest/cases/imagefeatures.py | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/meta/lib/oeqa/selftest/cases/imagefeatures.py b/meta/lib/oeqa/selftest/cases/imagefeatures.py index 8c95432e00..aed63e5476 100644 --- a/meta/lib/oeqa/selftest/cases/imagefeatures.py +++ b/meta/lib/oeqa/selftest/cases/imagefeatures.py | |||
| @@ -236,3 +236,29 @@ USERADD_GID_TABLES += "files/static-group" | |||
| 236 | """ | 236 | """ |
| 237 | self.write_config(config) | 237 | self.write_config(config) |
| 238 | bitbake("core-image-base") | 238 | bitbake("core-image-base") |
| 239 | |||
| 240 | def test_no_busybox_base_utils(self): | ||
| 241 | config = """ | ||
| 242 | # Enable x11 | ||
| 243 | DISTRO_FEATURES_append += "x11" | ||
| 244 | |||
| 245 | # Switch to systemd | ||
| 246 | DISTRO_FEATURES += "systemd" | ||
| 247 | VIRTUAL-RUNTIME_init_manager = "systemd" | ||
| 248 | VIRTUAL-RUNTIME_initscripts = "" | ||
| 249 | VIRTUAL-RUNTIME_syslog = "" | ||
| 250 | VIRTUAL-RUNTIME_login_manager = "shadow-base" | ||
| 251 | DISTRO_FEATURES_BACKFILL_CONSIDERED = "sysvinit" | ||
| 252 | |||
| 253 | # Replace busybox | ||
| 254 | PREFERRED_PROVIDER_virtual/base-utils = "packagegroup-core-base-utils" | ||
| 255 | VIRTUAL-RUNTIME_base-utils = "packagegroup-core-base-utils" | ||
| 256 | VIRTUAL-RUNTIME_base-utils-hwclock = "util-linux-hwclock" | ||
| 257 | VIRTUAL-RUNTIME_base-utils-syslog = "" | ||
| 258 | |||
| 259 | # Blacklist busybox | ||
| 260 | PNBLACKLIST[busybox] = "Don't build this" | ||
| 261 | """ | ||
| 262 | self.write_config(config) | ||
| 263 | |||
| 264 | bitbake("--graphviz core-image-sato") | ||
