From patchwork Tue Jun 6 23:28:49 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Randolph Sapp X-Patchwork-Id: 25204 X-Patchwork-Delegate: reatmon@ti.com Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id A1A79C7EE2F for ; Tue, 6 Jun 2023 23:28:56 +0000 (UTC) Received: from lelv0143.ext.ti.com (lelv0143.ext.ti.com [198.47.23.248]) by mx.groups.io with SMTP id smtpd.web10.1625.1686094135024470623 for ; Tue, 06 Jun 2023 16:28:55 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@ti.com header.s=ti-com-17q1 header.b=NM8o4005; spf=pass (domain: ti.com, ip: 198.47.23.248, mailfrom: rs@ti.com) Received: from lelv0266.itg.ti.com ([10.180.67.225]) by lelv0143.ext.ti.com (8.15.2/8.15.2) with ESMTP id 356NSqow085365; Tue, 6 Jun 2023 18:28:53 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1686094133; bh=37u5wpbByB/6R6YKi+G2mUT/531ANXTcETbl1L6M/nM=; h=From:To:CC:Subject:Date; b=NM8o4005BV9c+O0L/KRaxuCMKLmmMnHJpYZ410PPZmPOBrP43uD9NBjF2wG/P8ZXq jvKc03+DfNkEKCMJ7nPr+xVUDywsDs0q8b9tdg23EHe7nYvrgPa8hgGS1llKtPGmka byzGOuxRNXev4SQUbh0aZ74sCUUpa2uKxFhqbhu4= Received: from DFLE114.ent.ti.com (dfle114.ent.ti.com [10.64.6.35]) by lelv0266.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 356NSqRQ054804 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Tue, 6 Jun 2023 18:28:52 -0500 Received: from DFLE104.ent.ti.com (10.64.6.25) by DFLE114.ent.ti.com (10.64.6.35) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23; Tue, 6 Jun 2023 18:28:52 -0500 Received: from lelv0327.itg.ti.com (10.180.67.183) by DFLE104.ent.ti.com (10.64.6.25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23 via Frontend Transport; Tue, 6 Jun 2023 18:28:52 -0500 Received: from rs-desk.dhcp.ti.com (ileaxei01-snat2.itg.ti.com [10.180.69.6]) by lelv0327.itg.ti.com (8.15.2/8.15.2) with ESMTP id 356NSqiY043952; Tue, 6 Jun 2023 18:28:52 -0500 From: To: , , , CC: , Randolph Sapp Subject: [meta-arago][master/kirkstone][PATCHv3] arago-image.inc: fix the default systemd target Date: Tue, 6 Jun 2023 18:28:49 -0500 Message-ID: <20230606232849.2731931-1-rs@ti.com> X-Mailer: git-send-email 2.40.1 MIME-Version: 1.0 X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 List-Id: X-Webhook-Received: from li982-79.members.linode.com [45.33.32.79] by aws-us-west-2-korg-lkml-1.web.codeaurora.org with HTTPS for ; Tue, 06 Jun 2023 23:28:56 -0000 X-Groupsio-URL: https://lists.yoctoproject.org/g/meta-arago/message/14515 From: Randolph Sapp SYSTEMD_DEFAULT_TARGET is dynamically set based on the contents of IMAGE_FEATURES. Would you like to know what doesn't get updated when we use a bunch of package groups to dictate what is present in the image? This makes systemd actually start graphical applications if the opengl distro feature is set. This will need to be adjusted if further graphical environments are added. Signed-off-by: Randolph Sapp --- meta-arago-distro/recipes-core/images/arago-image.inc | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/meta-arago-distro/recipes-core/images/arago-image.inc b/meta-arago-distro/recipes-core/images/arago-image.inc index d00c1f70..a17288c6 100644 --- a/meta-arago-distro/recipes-core/images/arago-image.inc +++ b/meta-arago-distro/recipes-core/images/arago-image.inc @@ -6,6 +6,11 @@ COMPATIBLE_MACHINE = "ti-soc" IMAGE_FEATURES += "package-management splash" +# this is required to make sure the proper systemd default target gets set +IMAGE_FEATURES += " \ + ${@bb.utils.filter("DISTRO_FEATURES", "weston", d)} \ +" + # 4KB per 1 inode should be enough EXTRA_IMAGECMD:ext2.gz += "-i 4096"