From mboxrd@z Thu Jan 1 00:00:00 1970 X-GM-THRID: 7231063846448791552 X-Received: by 2002:ab0:16c9:0:b0:780:e1b5:6ba6 with SMTP id g9-20020ab016c9000000b00780e1b56ba6mr3841061uaf.1.1683613249222; Mon, 08 May 2023 23:20:49 -0700 (PDT) X-BeenThere: isar-users@googlegroups.com Received: by 2002:a05:6102:3fab:b0:42d:8b40:67a5 with SMTP id o43-20020a0561023fab00b0042d8b4067a5ls2991598vsv.8.-pod-prod-gmail; Mon, 08 May 2023 23:20:48 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7Bfa8a0odKCvGEJF5OcqTdeqHkzSM2vWYqLKRPoBlNDQH2jR60l2P88udC4Q9BEfGW1Zoh X-Received: by 2002:a67:ee46:0:b0:436:135d:855c with SMTP id g6-20020a67ee46000000b00436135d855cmr146363vsp.12.1683613248308; Mon, 08 May 2023 23:20:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1683613248; cv=none; d=google.com; s=arc-20160816; b=s4fnYp5f6a5618HyBbsY20tuaYIYtD8D/W8AlyNEGMaCDOKq/+Ale+mZO3jz4EgfoB rkR35zEe8J3Uih66M+S2RtaVbeTfn9SqPIjZ8QW6X0YSWJvw9Fhx6XL057Ng9JA6OsC+ kgGNyYCst30ng9BHshGWqglShd9G5TcXr+4RMsHseJARbWmxJDOmaDtGbH6WSr9xafQ1 ZT9ICvG/gj0Fe9DN1Is7ZbTA8I5sEUa0hChWjWRLxtZqkzAxXiMZEpcgUx5sN9d2JO80 MrA/2BLMMYbiCWQhJW9mSPYZ1c5zniwmUL/bqvJjVBtKJynqu0S1NuoTaX0JP9ngWXG3 WFdw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from; bh=8f9IdJ/w8WWEvnidC33Vf1KrzG7MBScvTlq4HoKSrqY=; b=reDTELX93WJ1jSf5zYyxyysCXuRYP4+EZhCjGACXpY7WrPZq0GkFwHIRQgC3ezmaV0 WHI39EF3Sb8POcXMiMS6yhV3ozjVXlZ8lMsH8mpO6dNatqgoxDfNnpp/YWfyQPT0J3s1 ddW1FZjZdswUrAgrJe65IWZUrILsCGxR+w7zYKEZ82zQ0/8gYD2UxP7PdUGkCMXIrS28 Qocexxe5MgqDTgo8BBpDX963WYj2oFNjnRh7kO5vqIVOcIhVsJgtxzOUlP+UYX/xY9uw bLJVmg0llQvWLhpGs2dwJJfqHaYHyDqBVngf2yezCTbyY+rOCOA/HMlruGj2c71kIuAR 0MzQ== ARC-Authentication-Results: i=1; gmr-mx.google.com; spf=pass (google.com: domain of venkata.pyla@toshiba-tsip.com designates 210.130.202.156 as permitted sender) smtp.mailfrom=venkata.pyla@toshiba-tsip.com Return-Path: Received: from mo-csw.securemx.jp (mo-csw1114.securemx.jp. [210.130.202.156]) by gmr-mx.google.com with ESMTPS id e13-20020a0561020f8d00b00434547639dasi743392vsv.0.2023.05.08.23.20.47 for (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Mon, 08 May 2023 23:20:48 -0700 (PDT) Received-SPF: pass (google.com: domain of venkata.pyla@toshiba-tsip.com designates 210.130.202.156 as permitted sender) client-ip=210.130.202.156; Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of venkata.pyla@toshiba-tsip.com designates 210.130.202.156 as permitted sender) smtp.mailfrom=venkata.pyla@toshiba-tsip.com Received: by mo-csw.securemx.jp (mx-mo-csw1114) id 3496KjmY018895; Tue, 9 May 2023 15:20:45 +0900 X-Iguazu-Qid: 2wHHiO38AGRSBaP9Hn X-Iguazu-QSIG: v=2; s=0; t=1683613245; q=2wHHiO38AGRSBaP9Hn; m=Fp3QcSH+wo10QBEBNbybVv1LIBGThamjJDKGj3u9Mn8= Received: from imx2-a.toshiba.co.jp (imx2-a.toshiba.co.jp [106.186.93.35]) by relay.securemx.jp (mx-mr1113) id 3496KigS008078 (version=TLSv1.2 cipher=AES128-GCM-SHA256 bits=128 verify=NOT); Tue, 9 May 2023 15:20:44 +0900 From: venkata.pyla@toshiba-tsip.com To: isar-users@googlegroups.com Cc: venkata pyla , amikan@ilbers.de, jan.kiszka@siemens.com, kazuhiro3.hayashi@toshiba.co.jp, dinesh.kumar@toshiba-tsip.com, felix.moessbauer@siemens.com Subject: [PATCH] linux: remove debug paths in assembly compilations for repro builds Date: Tue, 9 May 2023 11:50:40 +0530 X-TSB-HOP2: ON Message-Id: <20230509062040.13244-1-venkata.pyla@toshiba-tsip.com> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-OriginalArrivalTime: 09 May 2023 06:20:43.0045 (UTC) FILETIME=[62270D50:01D9823E] X-TUID: KmdA41L/VGQV From: venkata pyla vmlinux file is not reproducible in case of arm architectures, where the assembly files are compiled with debug info included with build paths, so use `-fdebug-prefix-map` to substitute the paths and produce bit identical builds. Signed-off-by: venkata pyla --- meta/recipes-kernel/linux/files/debian/isar/build.tmpl | 2 +- meta/recipes-kernel/linux/linux-custom.inc | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/meta/recipes-kernel/linux/files/debian/isar/build.tmpl b/meta/recipes-kernel/linux/files/debian/isar/build.tmpl index e7e04791..906dc580 100644 --- a/meta/recipes-kernel/linux/files/debian/isar/build.tmpl +++ b/meta/recipes-kernel/linux/files/debian/isar/build.tmpl @@ -22,7 +22,7 @@ do_build() { sed -i "s/@KR@/${KR}/g" ${S}/debian/control ${S}/debian/linux-image-${KERNEL_NAME_PROVIDED}.* # Build the Linux kernel - ${MAKE} O=${KERNEL_BUILD_DIR} ${PARALLEL_MAKE} KCFLAGS="${KCFLAGS}" + ${MAKE} O=${KERNEL_BUILD_DIR} ${PARALLEL_MAKE} KCFLAGS="${KCFLAGS}" KAFLAGS="${KAFLAGS}" # Stop tracing set +x diff --git a/meta/recipes-kernel/linux/linux-custom.inc b/meta/recipes-kernel/linux/linux-custom.inc index 42501342..1404ab0b 100644 --- a/meta/recipes-kernel/linux/linux-custom.inc +++ b/meta/recipes-kernel/linux/linux-custom.inc @@ -80,6 +80,7 @@ TEMPLATE_VARS += " \ KERNEL_NAME_PROVIDED \ KERNEL_CONFIG_FRAGMENTS \ KCFLAGS \ + KAFLAGS \ DISTRIBUTOR \ " @@ -88,6 +89,7 @@ inherit template # Add custom cflags to the kernel build KCFLAGS ?= "-fdebug-prefix-map=${CURDIR}=." +KAFLAGS ?= "-fdebug-prefix-map=${CURDIR}=." # Derive name of the kernel packages from the name of this recipe KERNEL_NAME_PROVIDED ?= "${@ d.getVar('PN').partition('linux-')[2]}" -- 2.20.1