From mboxrd@z Thu Jan 1 00:00:00 1970 X-GM-THRID: 7309878352299425792 X-Received: by 2002:a92:c26c:0:b0:35d:a6b8:c4b1 with SMTP id h12-20020a92c26c000000b0035da6b8c4b1mr720936ild.56.1701963683680; 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-Google-Smtp-Source: AGHT+IGTh76BH01mqnsfVXSkiOSV81GCTSvCkwMJAZTUYxwkPeOsPGQ/yzICE9B3pTXYahwAkc/3 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 Return-Path: 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; 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 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 Content-Transfer-Encoding: 8bit X-OriginalArrivalTime: 07 Dec 2023 15:41:14.0558 (UTC) FILETIME=[CFABADE0:01DA2923] X-TUID: 3qH5ejwnNjks 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 --- 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 -- 2.20.1