From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from shymkent.ilbers.de ([unix socket]) by shymkent (Cyrus 2.5.10-Debian-2.5.10-3+deb9u2) with LMTPA; Sun, 07 Sep 2025 22:43:22 +0200 X-Sieve: CMU Sieve 2.4 Received: from mail-wr1-f62.google.com (mail-wr1-f62.google.com [209.85.221.62]) by shymkent.ilbers.de (8.15.2/8.15.2/Debian-8+deb9u1) with ESMTPS id 587KhL6a032088 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Sun, 7 Sep 2025 22:43:21 +0200 Received: by mail-wr1-f62.google.com with SMTP id ffacd0b85a97d-3e1260394dcsf1831401f8f.0 for ; Sun, 07 Sep 2025 13:43:21 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1757277795; cv=pass; d=google.com; s=arc-20240605; b=egb0yOGLDS8z3XscxKn4xX9edbueYOHicF2k1fAhNRh//S5tQOsdGNVRK5xRf6IqJ+ HdC5QT9+5MemgB09+lNUoeycxig+21DwAWyuaTGWNVtv5ZtjoGvFhgcxPCWr70nBuUWz A/VzM+voeRxJNnzo1Gj0ADsMPTFc6E0AIcbXleKu1/cuMQ1zHa50pdAZj3A7izd5otkc v6fbBmpcRdXnF+5rhdpaHYbYR+LcmzNxzA4JLIYCdVJbKg58KH+Eqa5nTV4rNZJHih06 JLqq/wWI3JUMyrhRmvjojLxqFdt5EYuEVjn+/uHLDAmVAfxZhXPtfO0ySWvZtBfqBI1h sswQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:reply-to:feedback-id:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=3KiOcnRDBzf7Mdn1IFG34+7x7wU9qpcL8ET4BFTByqs=; fh=mXVbBq6IUpr8EzS3ogpeI1witCNPaWFe5gpUL9pehbA=; b=GPvy/0T2eQEvJv3ll6bnyWREqpQD0eNWulXEH4B3rOR7rwfTtBroGMI6OCFMbN8YpK KhUbtSB031DKbZJOTcb87Ed+zCuPecDo1/4NO8/2rE5aXBHpOowe82rgJhgMD0SVjTrB 4DZ58rCAN89VqSzaA4Cmj5lw97uzJYim+dEfIoN3q5gKCAmYJIJd5Xj4VD2b9Nnf2eaN NbsE7T5mVVKGC5hg1mat+auhAdCoHZeKG97Zg0F74j2fRACPhnz7YlAZMwHVPTl04lI9 2Jq7yKORwJHywHmacib72xgV7FbPrzwupxjgAe33rp8bCiY9wocn3JLI9ZtPLwIEbCmK +iAA==; darn=ilbers.de ARC-Authentication-Results: i=2; gmr-mx.google.com; dkim=pass header.i=@siemens.com header.s=fm1 header.b=G8zKWG+M; spf=pass (google.com: domain of fm-1328765-20250907204311c8bb3cb715000207aa-ru6tzh@rts-flowmailer.siemens.com designates 185.136.65.228 as permitted sender) smtp.mailfrom=fm-1328765-20250907204311c8bb3cb715000207aa-RU6tZh@rts-flowmailer.siemens.com; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=siemens.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20230601; t=1757277795; x=1757882595; darn=ilbers.de; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:reply-to :x-original-authentication-results:x-original-sender:feedback-id :mime-version:message-id:date:subject:cc:to:from:from:to:cc:subject :date:message-id:reply-to; bh=3KiOcnRDBzf7Mdn1IFG34+7x7wU9qpcL8ET4BFTByqs=; b=uF7BszEvqVR7roSeD99mQ+4sH7L/WKrIe80eT5x9ep699biOlrFF06VbTbzFMwVA3/ pu/S8ObnC0j5QgKcwQmN7IUvMSq9t/VrjJNooBOCYKHCJcxbfye3SGgiXKBNEpSC6SQd d1vjjgKPe2NqgsebHZ3EslVfAegTNeSVmmwWf7gdyeaomDrweYe18laCkVwwicdiq8PU WE6YxNXz8ortrKQ+Eu5KN46BlMJ/9m0N+8kAui1hQIHM/6/eTwgHvD+eeNdUly4klM6X OZqXwi+ha1P7DwJHNtCkv0zBpR6dU5GCptAgy3KamBvKaXEw3SEWlzKQGu627xrgb7L6 dFGg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1757277795; x=1757882595; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :x-spam-checked-in-group:list-id:mailing-list:precedence:reply-to :x-original-authentication-results:x-original-sender:feedback-id :mime-version:message-id:date:subject:cc:to:from:x-beenthere :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=3KiOcnRDBzf7Mdn1IFG34+7x7wU9qpcL8ET4BFTByqs=; b=a1GTWtpbDNK24SyieDfMgBfFkwtVeHBKvs/0Io1pkmWWG+1nSFJGg2AJHhnwektiuK uShZ963l76ntUsx2CAbBXF1K4MeLOWAL0l1AJ6FSnY0nL6ZygsFxgbLrwz99IReNQOPV M1Ec0EcbGH73xZx4U3OMb62oKqyS+bakTLqQtVPdvYJT8fLcYAO+iBl/4xvbzM134HCM PkU2Lxhvwzm/X9nkhK3Fu/X3UOkpd8wYCeakGOiSJu4UcAaNn2xz3XKAMyuEDw59oKp3 I2YY4TCHqWb2UuyCgjjJwmg1KHpNavJrZ04bvQIHaw3WoYErBByRIze7dESS6M3yG1Ki Ix9g== X-Forwarded-Encrypted: i=2; AJvYcCVD+Eo/n1dRTv4kjuq+QVrgQpnBCwFt+W1qG3JDsuZIOtbu9KIyMLUvmP0061l/YErTGwt1@ilbers.de X-Gm-Message-State: AOJu0Yw/JmKLH7UV6EP/V+p7HvouUISf2rXisOYmSIagRqwajrHMNDV+ Y3FpX7id1ln4ynDHeXgodEBKapeepzFZS1VY13qzkeGd/+Qk8nBBMwot X-Google-Smtp-Source: AGHT+IHgdvyfTzUF6Rv0bJ9nEWEFROY5Fx01WeaiQqyKjOdUcsqD3iyiwZkLEjpqA/rFDaTOs+l89A== X-Received: by 2002:a05:6000:26cd:b0:3e0:2a95:dc9e with SMTP id ffacd0b85a97d-3e64ce50347mr3785790f8f.57.1757277795221; Sun, 07 Sep 2025 13:43:15 -0700 (PDT) X-BeenThere: isar-users@googlegroups.com; h=ARHlJd5oQl81KXDFMP4ZBqvRBVhKOSNjokQy6swYjSBsHJBbFw== Received: by 2002:a05:6000:4006:b0:3cb:48b0:f7c2 with SMTP id ffacd0b85a97d-3e3af3002c4ls803120f8f.0.-pod-prod-01-eu; Sun, 07 Sep 2025 13:43:12 -0700 (PDT) X-Received: by 2002:a05:6000:1acf:b0:3d4:15a2:11e9 with SMTP id ffacd0b85a97d-3e64d22b88bmr3807122f8f.61.1757277792209; Sun, 07 Sep 2025 13:43:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1757277792; cv=none; d=google.com; s=arc-20240605; b=fjWe5/XtaN1ZJzdy2sU9ANKs4xePz3e6ms4J4XT9NJ08vA0HVcqDWSs3yZLBWntrPI l+QbaSTxU45rnC0owT3JoTfQ0SwWhvyKwmnm4pndOLpCYZvIPiI3o/0YPOmwrbD6ih3N K1HdrFpM/gBG3qFFa+fpvQLQRkQXpW5k/d9veBTanQkOR4MOgbhLrDkGtotfxCkmN/PH u+yYjm4uerTDYDsenStH+C4pWzkAnXjgjEtP2KpZwYVJlmsuNOqSdP09Dfeakg+1MfEo CxBCMJhIXtvc2lX0xO0xHIvwqaBItN1ldfNlI0FhRPWSqiXrxV5z8f7OsEXVnZfMEXV/ InvQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=feedback-id:content-transfer-encoding:mime-version:message-id:date :subject:cc:to:from:dkim-signature; bh=x/ticgdUrJ/uLNfaHcIaJ3zUfaxMcLNyTymWb5qkgds=; fh=IVe7tedBjrVO7NMfxxhSNfR9HdaoPf8yp1e13zSf5B8=; b=h0hHevXXhiYCt5i/q+gSPPKP+x20xhSBOf9XE8+ayXsjXyq2xSOHpJwNNTwYQn9YVa F4oGZg1QtC3aLq5aD/qABpLIFFMSTxAxlGncI7+fJgbuJmEuMCXPVvlXHGs3MhOMGEO6 3GSJ2O+navLSqof0sl/IuwBth7izfuMFumNLkS/4Jj+6UhXjg6XgYlfkXurp2HrZ/hq1 Rrm+ciKp1oBpcwADhrdtB2IaIozULd/D4KqcsoBXRAfCZbybBfcyn5v9UiAKv66GHO4L JGu65Z5BbU51v+GvV0sPor09JwA1sNbWW8eBhu3QsNe5/yiYXwdBtQ2jE+SMkAzAie85 Dhow==; dara=google.com ARC-Authentication-Results: i=1; gmr-mx.google.com; dkim=pass header.i=@siemens.com header.s=fm1 header.b=G8zKWG+M; spf=pass (google.com: domain of fm-1328765-20250907204311c8bb3cb715000207aa-ru6tzh@rts-flowmailer.siemens.com designates 185.136.65.228 as permitted sender) smtp.mailfrom=fm-1328765-20250907204311c8bb3cb715000207aa-RU6tZh@rts-flowmailer.siemens.com; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=siemens.com Received: from mta-65-228.siemens.flowmailer.net (mta-65-228.siemens.flowmailer.net. [185.136.65.228]) by gmr-mx.google.com with ESMTPS id ffacd0b85a97d-3d250adf694si322681f8f.2.2025.09.07.13.43.12 for (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Sun, 07 Sep 2025 13:43:12 -0700 (PDT) Received-SPF: pass (google.com: domain of fm-1328765-20250907204311c8bb3cb715000207aa-ru6tzh@rts-flowmailer.siemens.com designates 185.136.65.228 as permitted sender) client-ip=185.136.65.228; Received: by mta-65-228.siemens.flowmailer.net with ESMTPSA id 20250907204311c8bb3cb715000207aa for ; Sun, 07 Sep 2025 22:43:11 +0200 From: "'Badrikesh Prusty' via isar-users" To: isar-users@googlegroups.com Cc: badrikesh prusty Subject: [PATCH] meta: default "Rules-Requires-Root: no", make it configurable Date: Sun, 7 Sep 2025 16:42:58 -0400 Message-ID: <20250907204258.201718-1-badrikesh.prusty@siemens.com> MIME-Version: 1.0 X-Flowmailer-Platform: Siemens Feedback-ID: 519:519-1328765:519-21489:flowmailer X-Original-Sender: badrikesh.prusty@siemens.com X-Original-Authentication-Results: gmr-mx.google.com; dkim=pass header.i=@siemens.com header.s=fm1 header.b=G8zKWG+M; spf=pass (google.com: domain of fm-1328765-20250907204311c8bb3cb715000207aa-ru6tzh@rts-flowmailer.siemens.com designates 185.136.65.228 as permitted sender) smtp.mailfrom=fm-1328765-20250907204311c8bb3cb715000207aa-RU6tZh@rts-flowmailer.siemens.com; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=siemens.com X-Original-From: Badrikesh Prusty Reply-To: Badrikesh Prusty Content-Type: text/plain; charset="UTF-8" Precedence: list Mailing-list: list isar-users@googlegroups.com; contact isar-users+owners@googlegroups.com List-ID: X-Spam-Checked-In-Group: isar-users@googlegroups.com X-Google-Group-Id: 914930254986 List-Post: , List-Help: , List-Archive: , List-Unsubscribe: , X-Spam-Status: No, score=-4.9 required=5.0 tests=DKIMWL_WL_MED,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, RCVD_IN_DNSWL_BLOCKED,RCVD_IN_MSPIKE_H2,RCVD_IN_RP_CERTIFIED, RCVD_IN_RP_RNBL,RCVD_IN_RP_SAFE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on shymkent.ilbers.de X-TUID: T1V49vwga+SE From: badrikesh prusty Setting "Rules-Requires-Root: no" in the debian/control file avoids unnecessarily calling fakeroot in the build environment. Packages which require root can override the new "DEBIAN_RULES_REQUIRES_ROOT" variable with the desired value. Debian recommends not using fakeroot to build a package if it is not required i.e., if a package's build doesn't require any privileged operations such as changing ownership to root, installing/modifying files as root. This also fixes hangs observed during fakeroot calls in dpkg-buildpackage. References: https://github.com/ilbers/isar/issues/113 https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1114644 https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1072521 Signed-off-by: Badrikesh Prusty --- meta/recipes-bsp/optee-ftpm/files/debian/control.tmpl | 1 + meta/recipes-bsp/optee-ftpm/optee-ftpm.inc | 3 +++ meta/recipes-bsp/optee-os/files/debian/control.tmpl | 1 + meta/recipes-bsp/optee-os/optee-os.inc | 4 +++- meta/recipes-bsp/trusted-firmware-a/files/debian/control.tmpl | 1 + .../trusted-firmware-a/trusted-firmware-a-custom.inc | 4 +++- meta/recipes-bsp/u-boot/files/debian/control.tmpl | 1 + meta/recipes-bsp/u-boot/u-boot-custom.inc | 4 +++- meta/recipes-kernel/linux-module/files/debian/control.tmpl | 1 + meta/recipes-kernel/linux-module/module.inc | 2 ++ meta/recipes-kernel/linux/files/debian/control.tmpl | 1 + meta/recipes-kernel/linux/linux-custom.inc | 2 ++ 12 files changed, 22 insertions(+), 3 deletions(-) diff --git a/meta/recipes-bsp/optee-ftpm/files/debian/control.tmpl b/meta/recipes-bsp/optee-ftpm/files/debian/control.tmpl index e6af7554..d4374909 100644 --- a/meta/recipes-bsp/optee-ftpm/files/debian/control.tmpl +++ b/meta/recipes-bsp/optee-ftpm/files/debian/control.tmpl @@ -4,6 +4,7 @@ Priority: optional Standards-Version: 3.9.6 Maintainer: Unknown maintainer Build-Depends: debhelper-compat (= ${DEBIAN_COMPAT}), ${DEBIAN_BUILD_DEPENDS} +Rules-Requires-Root: ${DEBIAN_RULES_REQUIRES_ROOT} Package: ${PN} Architecture: any diff --git a/meta/recipes-bsp/optee-ftpm/optee-ftpm.inc b/meta/recipes-bsp/optee-ftpm/optee-ftpm.inc index 738b694a..257c5c4c 100644 --- a/meta/recipes-bsp/optee-ftpm/optee-ftpm.inc +++ b/meta/recipes-bsp/optee-ftpm/optee-ftpm.inc @@ -23,6 +23,8 @@ DEBIAN_BUILD_DEPENDS ?= " \ optee-os-tadevkit-${OPTEE_NAME} \ " +DEBIAN_RULES_REQUIRES_ROOT ?= "no" + TA_CPU ?= "unknown" TA_DEV_KIT_DIR ?= "unknown" OPTEE_FTPM_BUILD_ARGS_EXTRA ?= " " @@ -30,6 +32,7 @@ OPTEE_FTPM_BUILD_ARGS_EXTRA ?= " " TEMPLATE_FILES = "debian/rules.tmpl debian/control.tmpl" TEMPLATE_VARS += "DEBIAN_BUILD_DEPENDS \ DEBIAN_COMPAT \ + DEBIAN_RULES_REQUIRES_ROOT \ OPTEE_FTPM_BUILD_ARGS_EXTRA \ TA_CPU \ TA_DEV_KIT_DIR" diff --git a/meta/recipes-bsp/optee-os/files/debian/control.tmpl b/meta/recipes-bsp/optee-os/files/debian/control.tmpl index 7bcd6edb..443578bd 100644 --- a/meta/recipes-bsp/optee-os/files/debian/control.tmpl +++ b/meta/recipes-bsp/optee-os/files/debian/control.tmpl @@ -4,6 +4,7 @@ Priority: optional Standards-Version: 3.9.6 Build-Depends: debhelper-compat (= ${DEBIAN_COMPAT}), ${DEBIAN_BUILD_DEPENDS} Maintainer: ISAR project +Rules-Requires-Root: ${DEBIAN_RULES_REQUIRES_ROOT} Package: ${DEBIAN_PACKAGE_NAME} Architecture: ${DISTRO_ARCH} diff --git a/meta/recipes-bsp/optee-os/optee-os.inc b/meta/recipes-bsp/optee-os/optee-os.inc index eac75ae8..edd21f58 100644 --- a/meta/recipes-bsp/optee-os/optee-os.inc +++ b/meta/recipes-bsp/optee-os/optee-os.inc @@ -22,8 +22,10 @@ DEBIAN_PACKAGE_NAME ?= "optee-os-${OPTEE_NAME}" DEBIAN_BUILD_DEPENDS ?= "python3-pycryptodome:native, python3-pyelftools" +DEBIAN_RULES_REQUIRES_ROOT ?= "no" + TEMPLATE_FILES = "debian/control.tmpl debian/rules.tmpl" -TEMPLATE_VARS += "DEBIAN_COMPAT DEBIAN_PACKAGE_NAME OPTEE_NAME DEBIAN_BUILD_DEPENDS OPTEE_PLATFORM OPTEE_EXTRA_BUILDARGS" +TEMPLATE_VARS += "DEBIAN_COMPAT DEBIAN_PACKAGE_NAME DEBIAN_RULES_REQUIRES_ROOT OPTEE_NAME DEBIAN_BUILD_DEPENDS OPTEE_PLATFORM OPTEE_EXTRA_BUILDARGS" # split strip platform flavor, if any, from the specified platform string OPTEE_PLATFORM_BASE = "${@d.getVar('OPTEE_PLATFORM').split('-')[0]}" diff --git a/meta/recipes-bsp/trusted-firmware-a/files/debian/control.tmpl b/meta/recipes-bsp/trusted-firmware-a/files/debian/control.tmpl index cf4607e3..311b44c0 100644 --- a/meta/recipes-bsp/trusted-firmware-a/files/debian/control.tmpl +++ b/meta/recipes-bsp/trusted-firmware-a/files/debian/control.tmpl @@ -4,6 +4,7 @@ Priority: optional Standards-Version: 3.9.6 Build-Depends: debhelper-compat (= ${DEBIAN_COMPAT}), ${DEBIAN_BUILD_DEPENDS} Maintainer: ISAR project +Rules-Requires-Root: ${DEBIAN_RULES_REQUIRES_ROOT} Package: trusted-firmware-a-${TF_A_NAME} Architecture: ${DISTRO_ARCH} diff --git a/meta/recipes-bsp/trusted-firmware-a/trusted-firmware-a-custom.inc b/meta/recipes-bsp/trusted-firmware-a/trusted-firmware-a-custom.inc index 9f143b13..4ea7cc6c 100644 --- a/meta/recipes-bsp/trusted-firmware-a/trusted-firmware-a-custom.inc +++ b/meta/recipes-bsp/trusted-firmware-a/trusted-firmware-a-custom.inc @@ -20,10 +20,12 @@ TF_A_BINARIES ?= "release/bl31.bin" DEBIAN_BUILD_DEPENDS ?= "" +DEBIAN_RULES_REQUIRES_ROOT ?= "no" + PROVIDES += "trusted-firmware-a-${TF_A_NAME}" TEMPLATE_FILES = "debian/control.tmpl debian/rules.tmpl" -TEMPLATE_VARS += "DEBIAN_COMPAT \ +TEMPLATE_VARS += "DEBIAN_COMPAT DEBIAN_RULES_REQUIRES_ROOT \ TF_A_NAME DEBIAN_BUILD_DEPENDS TF_A_PLATFORM TF_A_EXTRA_BUILDARGS" do_prepare_build() { diff --git a/meta/recipes-bsp/u-boot/files/debian/control.tmpl b/meta/recipes-bsp/u-boot/files/debian/control.tmpl index 006982c2..6cbdf02c 100644 --- a/meta/recipes-bsp/u-boot/files/debian/control.tmpl +++ b/meta/recipes-bsp/u-boot/files/debian/control.tmpl @@ -4,6 +4,7 @@ Priority: optional Standards-Version: 3.9.6 Build-Depends: debhelper-compat (= ${DEBIAN_COMPAT}), ${DEBIAN_BUILD_DEPENDS} Maintainer: ISAR project +Rules-Requires-Root: ${DEBIAN_RULES_REQUIRES_ROOT} Package: u-boot-${MACHINE} Architecture: ${DISTRO_ARCH} diff --git a/meta/recipes-bsp/u-boot/u-boot-custom.inc b/meta/recipes-bsp/u-boot/u-boot-custom.inc index 2d6dd8e0..e3081ce9 100644 --- a/meta/recipes-bsp/u-boot/u-boot-custom.inc +++ b/meta/recipes-bsp/u-boot/u-boot-custom.inc @@ -20,12 +20,14 @@ SRC_URI += "file://debian/" DEBIAN_BUILD_DEPENDS ?= "bc, bison, flex, device-tree-compiler, git" +DEBIAN_RULES_REQUIRES_ROOT ?= "no" + U_BOOT_BIN_INSTALL ?= "${U_BOOT_BIN}" U_BOOT_EXTRA_BUILDARGS ??= "BL31=${BL31} TEE=${TEE}" TEMPLATE_FILES = "debian/control.tmpl debian/rules.tmpl" -TEMPLATE_VARS += "MACHINE DEBIAN_BUILD_DEPENDS U_BOOT_CONFIG U_BOOT_BIN \ +TEMPLATE_VARS += "MACHINE DEBIAN_BUILD_DEPENDS DEBIAN_RULES_REQUIRES_ROOT U_BOOT_CONFIG U_BOOT_BIN \ U_BOOT_EXTRA_BUILDARGS DEBIAN_COMPAT" U_BOOT_TOOLS_PACKAGE ?= "0" diff --git a/meta/recipes-kernel/linux-module/files/debian/control.tmpl b/meta/recipes-kernel/linux-module/files/debian/control.tmpl index 45fcbc0e..914733d8 100644 --- a/meta/recipes-kernel/linux-module/files/debian/control.tmpl +++ b/meta/recipes-kernel/linux-module/files/debian/control.tmpl @@ -4,6 +4,7 @@ Priority: optional Standards-Version: 3.9.6 Build-Depends: debhelper-compat (= ${DEBIAN_COMPAT}), ${DEBIAN_BUILD_DEPENDS} Maintainer: ${MAINTAINER} +Rules-Requires-Root: ${DEBIAN_RULES_REQUIRES_ROOT} Package: ${PN} Architecture: any diff --git a/meta/recipes-kernel/linux-module/module.inc b/meta/recipes-kernel/linux-module/module.inc index d2a41766..b51e8965 100644 --- a/meta/recipes-kernel/linux-module/module.inc +++ b/meta/recipes-kernel/linux-module/module.inc @@ -34,6 +34,7 @@ KERNEL_MODULE_SIGNATURES ??= "" DEB_BUILD_PROFILES += "${@'pkg.signwith' if bb.utils.to_boolean(d.getVar('KERNEL_MODULE_SIGNATURES')) else ''}" DEPENDS += "${@'module-signer secure-boot-secrets' if bb.utils.to_boolean(d.getVar('KERNEL_MODULE_SIGNATURES')) else ''}" DEBIAN_BUILD_DEPENDS .= "${@', module-signer, secure-boot-secrets' if bb.utils.to_boolean(d.getVar('KERNEL_MODULE_SIGNATURES')) else ''}" +DEBIAN_RULES_REQUIRES_ROOT ?= "no" SRC_URI += "file://debian/" @@ -63,6 +64,7 @@ TEMPLATE_VARS += " \ KAFLAGS \ MODULE_DIR \ DEBIAN_BUILD_DEPENDS \ + DEBIAN_RULES_REQUIRES_ROOT \ SIGNATURE_KEYFILE \ SIGNATURE_CERTFILE \ SIGNATURE_HASHFN \ diff --git a/meta/recipes-kernel/linux/files/debian/control.tmpl b/meta/recipes-kernel/linux/files/debian/control.tmpl index a79b86c4..479f8ff0 100644 --- a/meta/recipes-kernel/linux/files/debian/control.tmpl +++ b/meta/recipes-kernel/linux/files/debian/control.tmpl @@ -4,6 +4,7 @@ Priority: optional Maintainer: ${MAINTAINER} Build-Depends: debhelper-compat (= ${DEBIAN_COMPAT}), bc, kmod, cpio, ${KBUILD_DEPENDS} Homepage: http://www.kernel.org/ +Rules-Requires-Root: ${DEBIAN_RULES_REQUIRES_ROOT} Package: linux-image-${KERNEL_NAME_PROVIDED} Build-Profiles: diff --git a/meta/recipes-kernel/linux/linux-custom.inc b/meta/recipes-kernel/linux/linux-custom.inc index 01e9bff7..e073206f 100644 --- a/meta/recipes-kernel/linux/linux-custom.inc +++ b/meta/recipes-kernel/linux/linux-custom.inc @@ -17,6 +17,8 @@ DISTRIBUTOR ?= "ISAR" # pinned due to known or possible issues with compat 12 DEBIAN_COMPAT:buster = "10" +DEBIAN_RULES_REQUIRES_ROOT ?= "no" + KBUILD_DEPENDS ?= "build-essential:native, \ libelf-dev:native, \ libncurses-dev:native, \ -- 2.47.3 -- You received this message because you are subscribed to the Google Groups "isar-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to isar-users+unsubscribe@googlegroups.com. To view this discussion visit https://groups.google.com/d/msgid/isar-users/20250907204258.201718-1-badrikesh.prusty%40siemens.com.