From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-ed1-f66.google.com (mail-ed1-f66.google.com [209.85.208.66]) by mail.openembedded.org (Postfix) with ESMTP id AAF757CDE0 for ; Fri, 1 Mar 2019 22:27:06 +0000 (UTC) Received: by mail-ed1-f66.google.com with SMTP id 10so21333050eds.7 for ; Fri, 01 Mar 2019 14:27:08 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references; bh=89joqRFNsH1iEn4PPAI0dm2cGSnar6Zp4DmpDRbDIVs=; b=sORPXqeklLdk3px9fJG/WWZYDv+ZkJG8ela6ghLIG7PP1gQFrpjPrP9j4nbPF6pWvA cXjhgLc7U9ZxYuM5XVvXVKDENrKssO3oBiNZ2q+EQAAfMab6fctBVgXer2IDgGoukpji t545mdFmifyW7bMGiKE9RdZeuqRsoZ+TcKXZAgIbwLrPBIb4kBelwSNpxkT82SE/u+Rv 7KKrePUfndN+5PYUQDS7B93XA+XnPtrdRXJW1LcvicXO2lMVj9NDYKXnstelZZBfJOAX h5UtGZMDLqGBpL7LbR4qa3lHRkgFYgF/LVSpKrgIDWkJMRXPSkqdouZjWGjkiGpdI8jm JU0w== X-Gm-Message-State: APjAAAUF2yHGYQ4ZeLjamykBHJsFKmu15Ut3uS276nJoUDSaQeI1BfbJ huwpjdTEd8iQ+MWcRL1gSk5ELjU= X-Google-Smtp-Source: APXvYqwmjJJdEMMuxycaGUoBqOwWKDvcZy04H00c5oX8L/TzVLjnEntxu9ziUZc9zvjZRwEfHD3xPg== X-Received: by 2002:a17:906:7b0f:: with SMTP id e15mr4340315ejo.143.1551479226985; Fri, 01 Mar 2019 14:27:06 -0800 (PST) Received: from bill-the-cat.local (cpe-2606-A000-1401-880D-118E-86C-E9FB-6784.dyn6.twc.com. [2606:a000:1401:880d:118e:86c:e9fb:6784]) by smtp.gmail.com with ESMTPSA id x34sm6337645edm.70.2019.03.01.14.27.05 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 01 Mar 2019 14:27:06 -0800 (PST) From: Tom Rini To: openembedded-core@lists.openembedded.org Date: Fri, 1 Mar 2019 17:26:52 -0500 Message-Id: <1551479212-28944-5-git-send-email-trini@konsulko.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1551479212-28944-1-git-send-email-trini@konsulko.com> References: <1551479212-28944-1-git-send-email-trini@konsulko.com> Subject: [PATCH 4/4] imagefeatures: Add test to blacklist building busybox X-BeenThere: openembedded-core@lists.openembedded.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: Patches and discussions about the oe-core layer List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 01 Mar 2019 22:27:07 -0000 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. Signed-off-by: Tom Rini --- meta/lib/oeqa/selftest/cases/imagefeatures.py | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/meta/lib/oeqa/selftest/cases/imagefeatures.py b/meta/lib/oeqa/selftest/cases/imagefeatures.py index 8c95432e00b3..aed63e5476a7 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" """ self.write_config(config) bitbake("core-image-base") + + def test_no_busybox_base_utils(self): + config = """ +# Enable x11 +DISTRO_FEATURES_append += "x11" + +# Switch to systemd +DISTRO_FEATURES += "systemd" +VIRTUAL-RUNTIME_init_manager = "systemd" +VIRTUAL-RUNTIME_initscripts = "" +VIRTUAL-RUNTIME_syslog = "" +VIRTUAL-RUNTIME_login_manager = "shadow-base" +DISTRO_FEATURES_BACKFILL_CONSIDERED = "sysvinit" + +# Replace busybox +PREFERRED_PROVIDER_virtual/base-utils = "packagegroup-core-base-utils" +VIRTUAL-RUNTIME_base-utils = "packagegroup-core-base-utils" +VIRTUAL-RUNTIME_base-utils-hwclock = "util-linux-hwclock" +VIRTUAL-RUNTIME_base-utils-syslog = "" + +# Blacklist busybox +PNBLACKLIST[busybox] = "Don't build this" +""" + self.write_config(config) + + bitbake("--graphviz core-image-sato") -- 2.7.4