From patchwork Thu Dec 7 15:41:10 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: venkata.pyla@toshiba-tsip.com X-Patchwork-Id: 3227 Return-Path: Received: from shymkent.ilbers.de ([unix socket]) by shymkent (Cyrus 2.5.10-Debian-2.5.10-3+deb9u2) with LMTPA; Thu, 07 Dec 2023 16:41:30 +0100 X-Sieve: CMU Sieve 2.4 Received: from mail-il1-f192.google.com (mail-il1-f192.google.com [209.85.166.192]) by shymkent.ilbers.de (8.15.2/8.15.2/Debian-8+deb9u1) with ESMTPS id 3B7FfTo7030696 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Thu, 7 Dec 2023 16:41:29 +0100 Received: by mail-il1-f192.google.com with SMTP id e9e14a558f8ab-35d5b10fcd8sf9800185ab.2 for ; Thu, 07 Dec 2023 07:41:29 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1701963683; cv=pass; d=google.com; s=arc-20160816; b=pOTGhtgU0V1e0Zxx26wC7XBSkUTSinM3vQVrHn3egXtv9NG09lDN0PNha5RXJ7OfgS 2cQBdro7e/phQFYfKclsdel12ycUFe/PFMMFCfY0v9jB7jL0957lj1s0gzVKmPI3SpwP VF0KdXquau5ZzLFVbyDD5hgEpN/h8jGa29AJEJgdFoCYRVkSqdpb75YRfi2OMJ0B4ogK NqFM0lTepth6ito2kuqvFG+Gq1ka+lPogMp6UzhB7/XrgR0t16bg4RmbwBMttsE1OR1y 6QiliBxTpEmRSZ5icv8PRseMuiFJ9GFgX6CuNkH4YTZRFWco1VS/UMjLHA1TBE8zTCHL +S6Q== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:sender:dkim-signature; bh=fumn9qsi+bAbbqafL8XRUWSRRberGdqHTIBpIiQYALk=; fh=0lUGB2344BCNlOMKgxbVcIhrk5SvZVfMXmxQVZJT4o8=; b=pRH5HDBoutw553AUihmxkHt449ZVCqQMdH4CGcB6mYPoLZ+Itzu5E4FcVuR2kGHU7x C36fXKqm1ZN16uQV266CF4HQF6liFeJWG8boZhiecb5rqFRep2fYNbWv2hTIZryLGKMv aai2/gEqR+bnuRIiXyHFJ/S3cSVUq/yaU+S4xn4nA/ABluCeaY3mkqlCkWm30AkzDs9E gsLMLTCTVegccxobDgCkKUUYUl3pUuybN3cDFTZ9xstPKZZUfhLco0XqWCv15Lw59ZQo M66XMv+nh9Of2XgyGNhD+F3F2k2kt0pWeQcoIyNi+cxBMiADe9NKb/5rhubKfcqQrnxZ l8Ow== ARC-Authentication-Results: i=2; gmr-mx.google.com; spf=pass (google.com: domain of venkata.pyla@toshiba-tsip.com designates 210.130.202.132 as permitted sender) smtp.mailfrom=venkata.pyla@toshiba-tsip.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20230601; t=1701963683; x=1702568483; darn=isar-build.org; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:x-original-authentication-results :x-original-sender:mime-version:references:in-reply-to:message-id :date:subject:cc:to:from:sender:from:to:cc:subject:date:message-id :reply-to; bh=fumn9qsi+bAbbqafL8XRUWSRRberGdqHTIBpIiQYALk=; b=d13Qy5OpJIsvNVEgLwbdF27gVOHLA4GD03ovRJK+fYCrA4xxJ+eo3Fc3YOfSJz4zjy 7KeiBexaig8ZqlXZnDudErZ8qid7cGH8aGlVJAe3M8f+g2kM2b0qxgN+yw4JtanQ77/P wbWAxVe3yH/HieiyJD3Vj/SP2e0DXoVT6Mw6ZiCXDJU+xH7CHlLbiH3SIyP2uLpwh8ZJ yCHU5Yrk+EIboAiMgypgQjQpC77uytUkcZ0EbxAuhblnc8G1hqyI0/G3gWWeI/i0knzV AZe0RriASK/76evqS3+lU9y71qRTWSHSfl3oAnhZULhlaEA3XGNES5Qb2vX2Xvkbpjp3 ULng== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1701963683; x=1702568483; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :x-spam-checked-in-group:list-id:mailing-list:precedence :x-original-authentication-results:x-original-sender:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :x-beenthere:x-gm-message-state:sender:from:to:cc:subject:date :message-id:reply-to; bh=fumn9qsi+bAbbqafL8XRUWSRRberGdqHTIBpIiQYALk=; b=rfzMdZcynh0IkMHQ/rXQTlmHEtYfI8Pr7P2r+vlofloVDi2QUpHE5Zzb+Vts+3TnRn WD759M1YziN6fPFVEjEem2hSLUmUXEvRx4jPowCgX6yz0mK5Upij3Z3HVCWdM5cCWLQ8 E65Mj4g4FhSHgF8eIksJwhqc9eLRfd3BTGQc9FSmuUumbLjd04ntYtbahJ+ZjdxoESNp v2eylbYTZ1G6cgf7g0yOrLwkYsL9KCD/O52NSJrlmWP6Iu41/XeG1yQtMGxHTDYuI/4i M/LjVsa2NJq0Oq/ryc7fBqBC0xaMA51aKq0ZUae+grCqZTQAK3LKJeBaF8flsirEfbMk cTYQ== Sender: isar-users@googlegroups.com X-Gm-Message-State: AOJu0YzwXAknXT6Cso236UFN6637KI1NZ+sGrL7BxD+I/gs8WiZ6Xi8d 49m4iyApfEbFZoVPw7V5ZzY= X-Google-Smtp-Source: AGHT+IGbBn/3vTp8BfYjQbmcProU3uM+dYn5ENOZusLZiLmZoUjkOfTufbcwMLDeEG8+ZtB/GxDWyg== X-Received: by 2002:a92:b709:0:b0:35d:6579:f6de with SMTP id k9-20020a92b709000000b0035d6579f6demr3003758ili.21.1701963683585; Thu, 07 Dec 2023 07:41:23 -0800 (PST) X-BeenThere: isar-users@googlegroups.com Received: by 2002:a92:c846:0:b0:35c:d0b2:2d3 with SMTP id b6-20020a92c846000000b0035cd0b202d3ls721418ilq.1.-pod-prod-09-us; Thu, 07 Dec 2023 07:41:23 -0800 (PST) X-Received: by 2002:a05:6e02:1a08:b0:359:6e32:70ae with SMTP id s8-20020a056e021a0800b003596e3270aemr4166190ild.4.1701963682760; Thu, 07 Dec 2023 07:41:22 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701963682; cv=none; d=google.com; s=arc-20160816; b=iM0pkPsZpkgS1mtxDgD/twTSVXjWm90GLB/TmGBksOrTGecvQsvwtNSCgTddHw191i oYdDAO5SRizdPPDDIMzop8c7bETx8m8AlgPJu3XISZ3m39QR6RfhQfjoU9ZerfGCHdnH PIu14qiIcWVw0+RCK7bx7dSsCHRfT6EieLBnmdtHHnX3uwiYmLBwL8NyaXEk1tGT41E5 LAEMyR5xIr6E0sHiLQm4/s00gPafKMuo86Q07yGFA5HHmE/rdoJ4w8QyNjbAaM5oHMSc tKpp/pwHpel71EQhBywMHXRvbshWkQIGbGT+HrNVO7rVJSgfqZYZ5sx9xvygk0LG5wnu Ps8w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from; bh=uc7rBtnBW+ExfvcYJqdHVE3DuUt4r3BkGCAW08vhRMU=; fh=0lUGB2344BCNlOMKgxbVcIhrk5SvZVfMXmxQVZJT4o8=; b=YX3X8HH44kSqyEQoXezEP8ykV81rE53uZIWg8WwX7EIaf0415LRuwZRbNluaCWAO1q j0p105dLRf7vaATpBEG2OCNY9VjAXBxrXHtHLS5CkIj5sAUN+9uPvdgUxU5a/UEsAguY +dj/vGDRHfvn7zJz2gSxY2CZqwrOcnqCVo5VK+Dxwbb1zY4kRa1WGlbNWl6CMoPIN9rL unLZWosrV8wakyN+YTLUpLQFI+07R5cAxbzqnzO1wbICy5HQWkFf/DUDGaJXaFCyTF1F eYAsNLgrXPOUo+yg62WWj9IChqE+N7D1RceSPc4i9NsT8HXGgvv447QSeNxIwF9HefNi yoGg== ARC-Authentication-Results: i=1; gmr-mx.google.com; spf=pass (google.com: domain of venkata.pyla@toshiba-tsip.com designates 210.130.202.132 as permitted sender) smtp.mailfrom=venkata.pyla@toshiba-tsip.com Received: from mo-csw.securemx.jp (mo-csw1121.securemx.jp. [210.130.202.132]) by gmr-mx.google.com with ESMTPS id b5-20020a92c845000000b0035d661cac44si184414ilq.5.2023.12.07.07.41.21 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 07 Dec 2023 07:41:21 -0800 (PST) Received-SPF: pass (google.com: domain of venkata.pyla@toshiba-tsip.com designates 210.130.202.132 as permitted sender) client-ip=210.130.202.132; Received: by mo-csw.securemx.jp (mx-mo-csw1121) id 3B7FfJ4d298604; Fri, 8 Dec 2023 00:41:19 +0900 X-Iguazu-Qid: 2rWhQFUwauhZLLNurJ X-Iguazu-QSIG: v=2; s=0; t=1701963679; q=2rWhQFUwauhZLLNurJ; m=fg7d1a3cGIEOzeyoiNIxt2OJXYLeb/nRu1puf0W7QvM= Received: from imx12-a.toshiba.co.jp ([38.106.60.135]) by relay.securemx.jp (mx-mr1122) id 3B7FfIfN2876603 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NOT); Fri, 8 Dec 2023 00:41:18 +0900 From: venkata.pyla@toshiba-tsip.com To: isar-users@googlegroups.com Cc: venkata pyla , jan.kiszka@siemens.com, kazuhiro3.hayashi@toshiba.co.jp, dinesh.kumar@toshiba-tsip.com, felix.moessbauer@siemens.com Subject: [PATCH 1/5] linux-module: Use debug-prefix-map to build modules deterministically Date: Thu, 7 Dec 2023 21:11:10 +0530 X-TSB-HOP2: ON Message-Id: <20231207154114.20400-2-venkata.pyla@toshiba-tsip.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20231207154114.20400-1-venkata.pyla@toshiba-tsip.com> References: <20231207154114.20400-1-venkata.pyla@toshiba-tsip.com> MIME-Version: 1.0 X-OriginalArrivalTime: 07 Dec 2023 15:41:14.0558 (UTC) FILETIME=[CFABADE0:01DA2923] X-Original-Sender: venkata.pyla@toshiba-tsip.com X-Original-Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of venkata.pyla@toshiba-tsip.com designates 210.130.202.132 as permitted sender) smtp.mailfrom=venkata.pyla@toshiba-tsip.com 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=-0.9 required=5.0 tests=DKIMWL_WL_MED,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_EF,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RCVD_IN_MSPIKE_H2,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-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= From: venkata pyla The custom linux modules are built non-determinstically due to the reason that the kernel build includes absolute paths in the debug information which is not necessary and can be trimmed using `debug-prefix-map` option. Signed-off-by: venkata pyla Acked-by: Felix Moessbauer --- meta/recipes-kernel/linux-module/files/debian/rules.tmpl | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/meta/recipes-kernel/linux-module/files/debian/rules.tmpl b/meta/recipes-kernel/linux-module/files/debian/rules.tmpl index 7d950e38..20d5f670 100755 --- a/meta/recipes-kernel/linux-module/files/debian/rules.tmpl +++ b/meta/recipes-kernel/linux-module/files/debian/rules.tmpl @@ -45,11 +45,14 @@ KERNEL_DEP := $(shell dpkg-query -W -f '$${Depends}' ${KERNEL_HEADERS_PKG} | sed KDIR := $(shell dpkg -L $(KERNEL_DEP) | grep "/lib/modules/.*/build") endif +KCFLAGS := "-fdebug-prefix-map=$(PWD)=." +KAFLAGS := "-fdebug-prefix-map=$(PWD)=." + override_dh_auto_clean: $(MAKE) -C $(KDIR) M=$(PWD) clean override_dh_auto_build: - $(MAKE) -C $(KDIR) M=$(PWD) $(PARALLEL_MAKE) modules + $(MAKE) -C $(KDIR) M=$(PWD) $(PARALLEL_MAKE) KCFLAGS="$(KCFLAGS)" KAFLAGS="$(KAFLAGS)" modules ifneq ($(filter pkg.sign,$(DEB_BUILD_PROFILES)),) find . -name "*.ko" -print -exec $(KDIR)/scripts/sign-file ${SIGNATURE_HASHFN} ${SIGNATURE_KEYFILE} ${SIGNATURE_CERTFILE} {} \; endif