From patchwork Fri Sep 13 13:40:48 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Khem Raj X-Patchwork-Id: 173757 Delivered-To: patch@linaro.org Received: by 2002:a05:6e02:ce:0:0:0:0 with SMTP id r14csp172260ilq; Fri, 13 Sep 2019 06:41:06 -0700 (PDT) X-Google-Smtp-Source: APXvYqwjXZh3R88R3xtKFXBxcy0PIPq3EE30iA+rfpOfqawAeDAclyQ3rY+y7Dr5LDbkArscdbeT X-Received: by 2002:a17:902:14b:: with SMTP id 69mr10376650plb.286.1568382066278; Fri, 13 Sep 2019 06:41:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1568382066; cv=none; d=google.com; s=arc-20160816; b=mg0nGDKmIC/lZ7gXJHLiBPj5N8BEp4xIYqSPc8TW9ilHJFl/EjCx3NpqV8Aw2u9Xrt aLAZBj0iao4qar1OPlrg+q0vJhBoVE/QKrpA26PGjjXRC348BP44yfsmCvhcSa5TPJ// mANFS9MhfIDtYgwVQwntfdE30r3/dTH+HXenDoZx2YCmW0bw9+xS1y0cDawYW/dHI4EO 10FMy1kmmGHtFZmU2QbJuXqPzpomOqL57y3/M9uBKLN3jxo8s1j97bZ3upIu9giI7kt/ 9tY18oD17jDpoEj7O9BlvURbfiE0uAMUHA5IXWaidHxq1jnrNJMickhk4OOews2INoNi /pvw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=errors-to:sender:content-transfer-encoding:list-subscribe:list-help :list-post:list-archive:list-unsubscribe:list-id:precedence:subject :mime-version:message-id:date:to:from:dkim-signature:delivered-to; bh=7D7+Jee0kZuwcoLLkjPj8LZQL4Tu9epCELFWjxW6s1I=; b=ygdD0Zd9zSnJl/kGxRKgP3nTCLcwQkxEHuFy/pg9CzUFvyJiOyqN+3gw7Z+zy5T0tc BU/5Jn+6PUaW+SqpMKflliYzVTykmYpaGlUtDjVIB4G5+AHw6vLyKgoinO6f7ARhNq2q bqFl9LRF9BpiToMhp8JefGxLtBpi3ybEgDo6+eOkqzA1tNltsqU9jRH3Q+DY0onkgZLZ JG3HA9SiGper98ujsYV5C/3T/y64DG/H5p7Ic+VeoY1zjonrouY0iRBtbMSTmYAC/xnX llL4XlRAmh+U+gaQyvXvLWcwjT9afYyRhzZFoeSnU7aW+MwAFF+YLlHG4GeblDx3Wpj5 4Pbw== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com header.s=20161025 header.b=Yl6MyCBY; spf=pass (google.com: best guess record for domain of openembedded-core-bounces@lists.openembedded.org designates 140.211.169.62 as permitted sender) smtp.mailfrom=openembedded-core-bounces@lists.openembedded.org; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from mail.openembedded.org (mail.openembedded.org. [140.211.169.62]) by mx.google.com with ESMTP id a3si30332575pfr.229.2019.09.13.06.41.05; Fri, 13 Sep 2019 06:41:06 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of openembedded-core-bounces@lists.openembedded.org designates 140.211.169.62 as permitted sender) client-ip=140.211.169.62; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com header.s=20161025 header.b=Yl6MyCBY; spf=pass (google.com: best guess record for domain of openembedded-core-bounces@lists.openembedded.org designates 140.211.169.62 as permitted sender) smtp.mailfrom=openembedded-core-bounces@lists.openembedded.org; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from ec2-34-214-78-129.us-west-2.compute.amazonaws.com (localhost [127.0.0.1]) by mail.openembedded.org (Postfix) with ESMTP id E26DC7EC48; Fri, 13 Sep 2019 13:41:00 +0000 (UTC) X-Original-To: openembedded-core@lists.openembedded.org Delivered-To: openembedded-core@lists.openembedded.org Received: from mail-pl1-f169.google.com (mail-pl1-f169.google.com [209.85.214.169]) by mail.openembedded.org (Postfix) with ESMTP id F18696BA11 for ; Fri, 13 Sep 2019 13:40:58 +0000 (UTC) Received: by mail-pl1-f169.google.com with SMTP id y10so13241078pll.7 for ; Fri, 13 Sep 2019 06:41:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=e0WynzKY9pF9i7Ms7cw1mVrtdZVZa1W2iCWMXzNRyKw=; b=Yl6MyCBYFnCmBcbDNcqPTNhpBHxr6q1D5HsP/AF8L6wyw+24Uwp8bavnSzXd+Q0wv3 IJzys+aMBw0/bgZX4gdXdZSNxkxz4Hdh+OOfQm7MKdby628sI3g2Tl4A/EhzQIdovS9q V9Lh3bO+I+giVppM2LlCLWhQYT5eGAcBCBuGt+frgUiBe0uHI57ML3GYKj1jLZgkXcBW 1XLHAK2pjbrfWd3h/oSfLJrGYVtwiA13KblH+TD85P69UYTUVD0bv919qcYnXZ7rYRSw 1eW5/FOlE0dcWADXbEJIpsvIcmWr1SUc6g0C8pQeM6ADvepNzE1ZUkySR4eRZ+f6XNuP qlsQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=e0WynzKY9pF9i7Ms7cw1mVrtdZVZa1W2iCWMXzNRyKw=; b=OdwoejZr1WM0Z2vfBkHEozUgWtGR9m2JDzbWU1tJPRAqWSdIcfDe/MOKWMZ8nRKdBZ JAcIHbZQ88xisg7pvLCI/GJHaIFKsXg6lOY5ZzIIyhQG2WCnm14jTDPXWTEBFdjU6vfP WYTR5KKy9zljZiLN2b7KQyeOdnheRA2AcwwtynGtc1neXVlc7a5iGefk3H66lIdILcsW IphrxwhZ+cPmffnt2ePRaMcuao6WnxUnlbb5xBzQ0tXyywVH/GAZeZPJXoPrHXrgSsVv wHxcI6C0jZyyduoMeOE31B3oOW6iwoIyGcZPoKDiSoVwMRtbq0uudMSnwuxaXCLlrr21 CpVw== X-Gm-Message-State: APjAAAVexuiZF616LL8khJEpadgnxovQS7G1LnRk8GU47FgNxK2DpdLw kSi93C+unrjcBgIUumWchOJb+uvWjl0= X-Received: by 2002:a17:902:8541:: with SMTP id d1mr49694854plo.39.1568382059303; Fri, 13 Sep 2019 06:40:59 -0700 (PDT) Received: from apollo.hsd1.ca.comcast.net (c-73-71-176-3.hsd1.ca.comcast.net. [73.71.176.3]) by smtp.gmail.com with ESMTPSA id u2sm15001853pgp.66.2019.09.13.06.40.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 13 Sep 2019 06:40:58 -0700 (PDT) From: Khem Raj To: openembedded-core@lists.openembedded.org Date: Fri, 13 Sep 2019 06:40:48 -0700 Message-Id: <20190913134049.2700261-1-raj.khem@gmail.com> X-Mailer: git-send-email 2.23.0 MIME-Version: 1.0 Subject: [OE-core] [PATCH 1/2] musl: Update to latest master 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: , Sender: openembedded-core-bounces@lists.openembedded.org Errors-To: openembedded-core-bounces@lists.openembedded.org * Added copy_file_range posix_spawn_file_actions_add[f]chdir API * optreset is added to getopt * pthread fixes * Conditionally add legacy long definition of wchar_t Details [1] [1] https://git.musl-libc.org/cgit/musl/log/?qt=range&q=6ad514e4e278f0c3b18eb2db1d45638c9af1c07f..1f0e9f9cc2e3fa354f94e18b3b362de5f1ec7272 Signed-off-by: Khem Raj --- meta/recipes-core/musl/musl_git.bb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.23.0 -- _______________________________________________ Openembedded-core mailing list Openembedded-core@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-core diff --git a/meta/recipes-core/musl/musl_git.bb b/meta/recipes-core/musl/musl_git.bb index 9341bf5d58..87453be07f 100644 --- a/meta/recipes-core/musl/musl_git.bb +++ b/meta/recipes-core/musl/musl_git.bb @@ -4,7 +4,7 @@ require musl.inc inherit linuxloader -SRCREV = "6ad514e4e278f0c3b18eb2db1d45638c9af1c07f" +SRCREV = "1f0e9f9cc2e3fa354f94e18b3b362de5f1ec7272" BASEVER = "1.1.23" From patchwork Fri Sep 13 13:40:49 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Khem Raj X-Patchwork-Id: 173758 Delivered-To: patch@linaro.org Received: by 2002:a05:6e02:ce:0:0:0:0 with SMTP id r14csp172660ilq; Fri, 13 Sep 2019 06:41:27 -0700 (PDT) X-Google-Smtp-Source: APXvYqyAqpscOssJyVwZjkAcCNC5iA98gC/Lb1/0d09Cj0R423dh3RYcO+JJUBO2TnfZCqEU8NOA X-Received: by 2002:a65:62c4:: with SMTP id m4mr42664447pgv.243.1568382087235; Fri, 13 Sep 2019 06:41:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1568382087; cv=none; d=google.com; s=arc-20160816; b=E5mYNmFL1KIU8OsTbsihM0CptO1INh2DUb1/7uMz6L3RQb6qznhjGnsrk+HTqqTkBi 85q5RdttEWjCP1/rN8R93ugE02U/dI2oxkAKnHqwAR1qmxN8M5EtAqmfpBgmFUlnsO6n iwNiC2emvhI4K+DfprNATS6KGqPM30bbPbwMKTdOS3N1diaFfSIc7HBknKKPHgaXBv3m oncG6d35RSmNkZUIjMGANjPM/mxSYJ4fDF6kj5DtTutJ4Ug6a/fyxX712eT91ljxh0/s nMDgZjw9Lf1Whj0ykxZrqrDoy1/QlTQOHOa+eb2yVZsC2P6utmoTHZhxR8stqROn4yFf mj4Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=errors-to:sender:content-transfer-encoding:list-subscribe:list-help :list-post:list-archive:list-unsubscribe:list-id:precedence:subject :cc:mime-version:references:in-reply-to:message-id:date:to:from :dkim-signature:delivered-to; bh=2gowCuy/aj8cgknirFeibFxclmR6699vJyJxy8jIVlI=; b=AluVV/k8WGMj50iZh37y+OBAUsYuyCktsitLOby44rmtaF1mHufePNU8/2f9Aj9Psf PIFGbYh5fDF13X8TWEplo+5O8m22O48iZR8bjDEP8KHNV+dNjEqYONf7hdFKwf8jGxs8 10nXzxN3rugHpZyWzyOsWq3bF7w2KoxKqp3wC3SdUgLoFPoZ6cuVQsnHG04FI6Yg6daG KoxV+oskNM5azacL7g+1qkbBO54ARuKXAzkB9147SncmiNh6j8REUxi2ap9SMYaHFnI5 mVK2lgi8SgnAQ2HwJcZPv9KoLDZPtSSVEU4/l5Qrs8r1Uyj180QavpAn9yTfHbtlp8Cy 3PgQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com header.s=20161025 header.b=tphEHcFm; spf=pass (google.com: best guess record for domain of openembedded-core-bounces@lists.openembedded.org designates 140.211.169.62 as permitted sender) smtp.mailfrom=openembedded-core-bounces@lists.openembedded.org; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from mail.openembedded.org (mail.openembedded.org. [140.211.169.62]) by mx.google.com with ESMTP id e63si29497560pfh.145.2019.09.13.06.41.26; Fri, 13 Sep 2019 06:41:27 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of openembedded-core-bounces@lists.openembedded.org designates 140.211.169.62 as permitted sender) client-ip=140.211.169.62; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com header.s=20161025 header.b=tphEHcFm; spf=pass (google.com: best guess record for domain of openembedded-core-bounces@lists.openembedded.org designates 140.211.169.62 as permitted sender) smtp.mailfrom=openembedded-core-bounces@lists.openembedded.org; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from ec2-34-214-78-129.us-west-2.compute.amazonaws.com (localhost [127.0.0.1]) by mail.openembedded.org (Postfix) with ESMTP id 12E1C7EC95; Fri, 13 Sep 2019 13:41:24 +0000 (UTC) X-Original-To: openembedded-core@lists.openembedded.org Delivered-To: openembedded-core@lists.openembedded.org Received: from mail-pl1-f180.google.com (mail-pl1-f180.google.com [209.85.214.180]) by mail.openembedded.org (Postfix) with ESMTP id B70026BA11 for ; Fri, 13 Sep 2019 13:40:59 +0000 (UTC) Received: by mail-pl1-f180.google.com with SMTP id x3so13241782plr.12 for ; Fri, 13 Sep 2019 06:41:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=BkofC+joNzw7H5zrWaqlR/M22g+l3cjYRq3G4edC4c4=; b=tphEHcFm0NWuw74zz0jo0rH+o2oa/72l/XX+AGi1z+hsit3pQ+fK6hFCyZ2bP8nM/P 7Fpof333rqD9kbotnxwtWlV0/TwnabbImb/2aH+beFrR0/sw2hYmcx/NrU3aAIpCFIdd XNQRUZrQooK+B8hQpYFPXyhoa69TjoMW5AeFaEtvfZuvyMxaCwRiq/cn2y9uZVZG/J+v H5zf6xNGlmUQxuCvNivspGQ6yN5mFFOJSOsT0dXLUdjj9GfkTGThd8cbH/jLND3VTq3H m3kDTo/JNl6nw+4wDUqtxVjuc1MS61DlHECFtxwKm99w6HF6/ZYlHp0VKZ7bfBAhqVzO S2bA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=BkofC+joNzw7H5zrWaqlR/M22g+l3cjYRq3G4edC4c4=; b=COY4Ee/g3Tm0ix0puzNOLIXVuXRygrwJXrnaTvcZXtGZfF7vS7b2MK4Iyj1Kh2cXtP vj9Wz8usdVDlUcwWcDVrGezEgb/pL6EO+PPGHavAQScTYp3/u7Yu0unafit/mCOikUow o12FGD3WUa2h4j5LQk57ypIF36g+R/tfk2nog4PJc6xKwAOYyCdtVmm96HTM4i7PnfDU vvq5WOtcPqrZm9H9uy9vpJ/KvW4pcndOR0tC5w/4AclDQnHioY7/rQ9xqdk89Kg/qgov Kg3N5TH0mdBfCBDDDoBL97owYwLdYop984DHMOR7FpN2IGgwbiBkmEHZ07x7mb8CLTU+ NEjg== X-Gm-Message-State: APjAAAW8zthMib8FpVzh42svu3vGlkx5xApbCeMwhcgX6fqyASloU13e qy73DKqU3cZKS+YLamQR09dcYzFE5a0= X-Received: by 2002:a17:902:c05:: with SMTP id 5mr9211303pls.99.1568382060215; Fri, 13 Sep 2019 06:41:00 -0700 (PDT) Received: from apollo.hsd1.ca.comcast.net (c-73-71-176-3.hsd1.ca.comcast.net. [73.71.176.3]) by smtp.gmail.com with ESMTPSA id u2sm15001853pgp.66.2019.09.13.06.40.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 13 Sep 2019 06:40:59 -0700 (PDT) From: Khem Raj To: openembedded-core@lists.openembedded.org Date: Fri, 13 Sep 2019 06:40:49 -0700 Message-Id: <20190913134049.2700261-2-raj.khem@gmail.com> X-Mailer: git-send-email 2.23.0 In-Reply-To: <20190913134049.2700261-1-raj.khem@gmail.com> References: <20190913134049.2700261-1-raj.khem@gmail.com> MIME-Version: 1.0 Cc: Otavio Salvador Subject: [OE-core] [PATCH V4 2/2] weston-init: Add possibility to run weston as non-root user 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: , Sender: openembedded-core-bounces@lists.openembedded.org Errors-To: openembedded-core-bounces@lists.openembedded.org These changes are from meta-96boards primarily Launch the session via a udev rule based on what kind of display device is available delete weston-conf and move the fuctionality into weston-init other layers are doing same Signed-off-by: Khem Raj Cc: Otavio Salvador --- v2: Drop duplicate isntall rule and use systemd_system_unitdir v3: Use systemd_system_unitdir in FILES section too v4: Move weston-conf logic into weston-init and delete it meta/conf/distro/include/maintainers.inc | 1 - meta/recipes-graphics/wayland/weston-conf.bb | 35 --------- meta/recipes-graphics/wayland/weston-init.bb | 24 +++++- .../wayland/weston-init/71-weston-drm.rules | 2 + .../wayland/weston-init/qemux86-64/weston.ini | 2 + .../wayland/weston-init/qemux86/weston.ini | 2 + .../wayland/weston-init/weston.ini | 74 +++++++++++++++++++ .../wayland/weston-init/weston.service | 13 ---- .../wayland/weston-init/weston@.service | 37 ++++++++++ meta/recipes-graphics/wayland/weston_7.0.0.bb | 2 +- 10 files changed, 138 insertions(+), 54 deletions(-) delete mode 100644 meta/recipes-graphics/wayland/weston-conf.bb create mode 100644 meta/recipes-graphics/wayland/weston-init/71-weston-drm.rules create mode 100644 meta/recipes-graphics/wayland/weston-init/qemux86-64/weston.ini create mode 100644 meta/recipes-graphics/wayland/weston-init/qemux86/weston.ini create mode 100644 meta/recipes-graphics/wayland/weston-init/weston.ini delete mode 100644 meta/recipes-graphics/wayland/weston-init/weston.service create mode 100644 meta/recipes-graphics/wayland/weston-init/weston@.service -- 2.23.0 -- _______________________________________________ Openembedded-core mailing list Openembedded-core@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-core diff --git a/meta/conf/distro/include/maintainers.inc b/meta/conf/distro/include/maintainers.inc index 5f21f98b2b..ab0c6c5541 100644 --- a/meta/conf/distro/include/maintainers.inc +++ b/meta/conf/distro/include/maintainers.inc @@ -718,7 +718,6 @@ RECIPE_MAINTAINER_pn-wayland = "Denys Dmytriyenko " RECIPE_MAINTAINER_pn-wayland-protocols = "Denys Dmytriyenko " RECIPE_MAINTAINER_pn-webkitgtk = "Alexander Kanavin " RECIPE_MAINTAINER_pn-weston = "Denys Dmytriyenko " -RECIPE_MAINTAINER_pn-weston-conf = "Denys Dmytriyenko " RECIPE_MAINTAINER_pn-weston-init = "Denys Dmytriyenko " RECIPE_MAINTAINER_pn-wget = "Yi Zhao " RECIPE_MAINTAINER_pn-which = "Anuj Mittal " diff --git a/meta/recipes-graphics/wayland/weston-conf.bb b/meta/recipes-graphics/wayland/weston-conf.bb deleted file mode 100644 index f52200c46a..0000000000 --- a/meta/recipes-graphics/wayland/weston-conf.bb +++ /dev/null @@ -1,35 +0,0 @@ -SUMMARY = "Weston, a Wayland compositor, configuration files" -HOMEPAGE = "http://wayland.freedesktop.org" -LICENSE = "MIT" -LIC_FILES_CHKSUM = "file://${COREBASE}/meta/COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de20420" - -PACKAGE_ARCH = "${MACHINE_ARCH}" - -CONFFILES_${PN} = "${sysconfdir}/xdg/weston/weston.ini" - -FILES_${PN} = "${sysconfdir}/xdg/weston/weston.ini" - -PACKAGES = "${PN}" - -do_configure[noexec] = '1' -do_compile[noexec] = '1' - -do_install() { - : -} - -do_install_qemux86() { - mkdir -p ${D}/${sysconfdir}/xdg/weston - cat << EOF > ${D}/${sysconfdir}/xdg/weston/weston.ini -[core] -backend=fbdev-backend.so -EOF -} - -do_install_qemux86-64() { - mkdir -p ${D}/${sysconfdir}/xdg/weston - cat << EOF > ${D}/${sysconfdir}/xdg/weston/weston.ini -[core] -backend=fbdev-backend.so -EOF -} diff --git a/meta/recipes-graphics/wayland/weston-init.bb b/meta/recipes-graphics/wayland/weston-init.bb index 22ba5f3fb3..2c1cd1046c 100644 --- a/meta/recipes-graphics/wayland/weston-init.bb +++ b/meta/recipes-graphics/wayland/weston-init.bb @@ -3,15 +3,25 @@ LICENSE = "MIT" LIC_FILES_CHKSUM = "file://${COREBASE}/meta/COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de20420" SRC_URI = "file://init \ - file://weston.service \ + file://weston.ini \ + file://weston@.service \ + file://71-weston-drm.rules \ file://weston-start" S = "${WORKDIR}" do_install() { install -Dm755 ${WORKDIR}/init ${D}/${sysconfdir}/init.d/weston - install -Dm0644 ${WORKDIR}/weston.service ${D}${systemd_system_unitdir}/weston.service - + install -D -p -m0644 ${WORKDIR}/weston.ini ${D}${sysconfdir}/xdg/weston/weston.ini + + # Install Weston systemd service and accompanying udev rule + install -D -p -m0644 ${WORKDIR}/weston@.service ${D}${systemd_system_unitdir}/weston@.service + sed -i -e s:/etc:${sysconfdir}:g \ + -e s:/usr/bin:${bindir}:g \ + -e s:/var:${localstatedir}:g \ + ${D}${systemd_unitdir}/system/weston@.service + install -D -p -m0644 ${WORKDIR}/71-weston-drm.rules \ + ${D}${sysconfdir}/udev/rules.d/71-weston-drm.rules # Install weston-start script install -Dm755 ${WORKDIR}/weston-start ${D}${bindir}/weston-start sed -i 's,@DATADIR@,${datadir},g' ${D}${bindir}/weston-start @@ -28,4 +38,10 @@ RDEPENDS_${PN} = "weston kbd" INITSCRIPT_NAME = "weston" INITSCRIPT_PARAMS = "start 9 5 2 . stop 20 0 1 6 ." -SYSTEMD_SERVICE_${PN} = "weston.service" +FILES_${PN} += "${sysconfdir}/xdg/weston/weston.ini ${systemd_system_unitdir}/weston@.service" + +CONFFILES_${PN} += "${sysconfdir}/xdg/weston/weston.ini" + +SYSTEMD_SERVICE_${PN} = "weston@%i.service" +SYSTEMD_AUTO_ENABLE = "disable" + diff --git a/meta/recipes-graphics/wayland/weston-init/71-weston-drm.rules b/meta/recipes-graphics/wayland/weston-init/71-weston-drm.rules new file mode 100644 index 0000000000..1a1b8bbda4 --- /dev/null +++ b/meta/recipes-graphics/wayland/weston-init/71-weston-drm.rules @@ -0,0 +1,2 @@ +ACTION=="add", SUBSYSTEM=="graphics", KERNEL=="fb0", TAG+="systemd", ENV{SYSTEMD_WANTS}+="weston@root.service" +ACTION=="add", SUBSYSTEM=="drm", KERNEL=="card0", TAG+="systemd", ENV{SYSTEMD_WANTS}+="weston@root.service" diff --git a/meta/recipes-graphics/wayland/weston-init/qemux86-64/weston.ini b/meta/recipes-graphics/wayland/weston-init/qemux86-64/weston.ini new file mode 100644 index 0000000000..17ebd7fdab --- /dev/null +++ b/meta/recipes-graphics/wayland/weston-init/qemux86-64/weston.ini @@ -0,0 +1,2 @@ +[core] +backend=fbdev-backend.so diff --git a/meta/recipes-graphics/wayland/weston-init/qemux86/weston.ini b/meta/recipes-graphics/wayland/weston-init/qemux86/weston.ini new file mode 100644 index 0000000000..17ebd7fdab --- /dev/null +++ b/meta/recipes-graphics/wayland/weston-init/qemux86/weston.ini @@ -0,0 +1,2 @@ +[core] +backend=fbdev-backend.so diff --git a/meta/recipes-graphics/wayland/weston-init/weston.ini b/meta/recipes-graphics/wayland/weston-init/weston.ini new file mode 100644 index 0000000000..1eecf48bc1 --- /dev/null +++ b/meta/recipes-graphics/wayland/weston-init/weston.ini @@ -0,0 +1,74 @@ +# configuration file for Weston + +#[core] +#modules=xwayland.so,cms-colord.so +#shell=desktop-shell.so +#gbm-format=xrgb2101010 + +#[shell] +#background-image=/usr/share/backgrounds/gnome/Aqua.jpg +#background-color=0xff002244 +#background-type=tile +#clock-format=minutes +#panel-color=0x90ff0000 +#locking=true +#animation=zoom +#startup-animation=fade +#binding-modifier=ctrl +#num-workspaces=6 +#cursor-theme=whiteglass +#cursor-size=24 + +#lockscreen-icon=/usr/share/icons/gnome/256x256/actions/lock.png +#lockscreen=/usr/share/backgrounds/gnome/Garden.jpg +#homescreen=/usr/share/backgrounds/gnome/Blinds.jpg +#animation=fade + +#[launcher] +#icon=/usr/share/icons/gnome/24x24/apps/utilities-terminal.png +#path=/usr/bin/gnome-terminal + +#[launcher] +#icon=/usr/share/icons/gnome/24x24/apps/utilities-terminal.png +#path=/usr/bin/weston-terminal + +#[launcher] +#icon=/usr/share/icons/hicolor/24x24/apps/google-chrome.png +#path=/usr/bin/google-chrome + +#[launcher] +#icon=/usr/share/icons/gnome/24x24/apps/arts.png +#path=/build/weston-0lEgCh/weston-1.11.0/weston-flower + +#[input-method] +#path=/usr/lib/weston/weston-keyboard + +#[output] +#name=LVDS1 +#mode=1680x1050 +#transform=90 +#icc_profile=/usr/share/color/icc/colord/Bluish.icc + +#[output] +#name=VGA1 +#mode=173.00 1920 2048 2248 2576 1080 1083 1088 1120 -hsync +vsync +#transform=flipped + +#[output] +#name=X1 +#mode=1024x768 +#transform=flipped-90 + +#[libinput] +#enable_tap=true + +#[touchpad] +#constant_accel_factor = 50 +#min_accel_factor = 0.16 +#max_accel_factor = 1.0 + +#[screen-share] +#command=/usr/bin/weston --backend=rdp-backend.so --shell=fullscreen-shell.so --no-clients-resize + +#[xwayland] +#path=/usr/bin/Xwayland diff --git a/meta/recipes-graphics/wayland/weston-init/weston.service b/meta/recipes-graphics/wayland/weston-init/weston.service deleted file mode 100644 index 18f72626e0..0000000000 --- a/meta/recipes-graphics/wayland/weston-init/weston.service +++ /dev/null @@ -1,13 +0,0 @@ -[Unit] -Description=Weston Wayland Compositor -RequiresMountsFor=/run - -[Service] -User=root -PAMName=login -EnvironmentFile=-/etc/default/weston -ExecStart=/usr/bin/weston-start -v -e -- $OPTARGS - -[Install] -WantedBy=multi-user.target - diff --git a/meta/recipes-graphics/wayland/weston-init/weston@.service b/meta/recipes-graphics/wayland/weston-init/weston@.service new file mode 100644 index 0000000000..9ecf2ab069 --- /dev/null +++ b/meta/recipes-graphics/wayland/weston-init/weston@.service @@ -0,0 +1,37 @@ +[Unit] +Description=Weston Wayland Compositor (on tty7) +RequiresMountsFor=/run +Conflicts=getty@tty7.service plymouth-quit.service +After=systemd-user-sessions.service getty@tty7.service plymouth-quit-wait.service + +[Service] +User=%i +PermissionsStartOnly=true + +# Log us in via PAM so we get our XDG & co. environment and +# are treated as logged in so we can use the tty: +PAMName=login + +# Grab tty7 +UtmpIdentifier=tty7 +TTYPath=/dev/tty7 +TTYReset=yes +TTYVHangup=yes +TTYVTDisallocate=yes + +# stderr to journal so our logging doesn't get thrown into /dev/null +StandardOutput=tty +StandardInput=tty +StandardError=journal + +EnvironmentFile=-/etc/default/weston + +# Weston does not successfully change VT, nor does systemd place us on +# the VT it just activated for us. Switch manually: +ExecStartPre=/usr/bin/chvt 7 +ExecStart=/usr/bin/weston --log=${XDG_RUNTIME_DIR}/weston.log $OPTARGS + +IgnoreSIGPIPE=no + +#[Install] +#Alias=multi-user.target.wants/weston.service diff --git a/meta/recipes-graphics/wayland/weston_7.0.0.bb b/meta/recipes-graphics/wayland/weston_7.0.0.bb index 5d2a9336f3..583798368e 100644 --- a/meta/recipes-graphics/wayland/weston_7.0.0.bb +++ b/meta/recipes-graphics/wayland/weston_7.0.0.bb @@ -104,7 +104,7 @@ FILES_${PN}-xwayland = "${libdir}/libweston-${WESTON_MAJOR_VERSION}/xwayland.so" RDEPENDS_${PN}-xwayland += "xserver-xorg-xwayland" RDEPENDS_${PN} += "xkeyboard-config" -RRECOMMENDS_${PN} = "weston-conf liberation-fonts" +RRECOMMENDS_${PN} = "weston-init liberation-fonts" RRECOMMENDS_${PN}-dev += "wayland-protocols" USERADD_PACKAGES = "${PN}"