Received: by 2002:ab2:5c0e:0:b0:1ef:a325:1205 with SMTP id i14csp639lqk; Wed, 13 Mar 2024 14:20:17 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVOrGCyV0NKkcQsiifw9pnN1vwcC3PhzNYy63SaIiuCENscneLLb9/0llzf2Oy5biuuaEIXaWjrNm5/wfHAFH5iEKPXdDRrSw293PhCtw== X-Google-Smtp-Source: AGHT+IFtLTkUqXIVz/hXOcJHrRKVGaACBGel63XUUTpoiKQEYbI1TXJZ6M36k09bgqwdks07/i4H X-Received: by 2002:a05:6a20:4292:b0:1a3:3d9a:e622 with SMTP id o18-20020a056a20429200b001a33d9ae622mr170838pzj.11.1710364817488; Wed, 13 Mar 2024 14:20:17 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1710364817; cv=pass; d=google.com; s=arc-20160816; b=EzZv9RulXch0syzYKSYAgs5HYTtXxM8F1DGgWtGlcw8JlV0nlXo2AsiPsrtzJtB30q AUXj3YdRbb29xS3SrUXDLdYDEIzGk5I4BpJrZCF18ARA9ADJ7aB4BT5mqVstujY+M2cl lCgczJnquNQJsJybI/+DXIPZrPuYQT02hmbUBD4gOupGEVMsIKcrf1x2UBR/Teqlilaz e95WL+tfIZbCYrt/qWi/kq0svqtWw601b5WikrOGvNp5o/nhOATL7pENOYaK88CFuRGn 3QtS3vJ+q3XlvxSR5poRjixHbSDcapPt9IaKBexmxsu9qtt4gG1c1jSippj3uAfQ/cZx +Kgw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from; bh=IacdXL1S+QzGrFgTWdr5joBLgahpCW6YGdIV828x2KU=; fh=f9c96nf+UzngGPMjuCwvhEh1XTSRmz6cTmha4gB+f+k=; b=OuF+MoStu+8AEo3tfmnA44upFpEZ63WUvL+J3aG0nQ0Y4RtBAr3ffZG6BjgFDrDy54 hU+akzNM7mJmzs7NLxak1UAl1bd8QIDK7Vi7qZy2SWj6w21ji1JfAgvjV4ASVP6ncZzU 0TaQ1fFRuq5+fa48l40PCpR/AOSmM+Ov0IJg+GqF306ML5vhuiSE7Bepsh0iYfguiT/M 86jthuvaVdEYbgPBHvcS8mLDaDu0FsFqcXO3GK+bis5EFIxDp8zh1I7gSdUzjfE+bDs2 xDndXD/QrfTS4i8HGffEfBU2DabIb31NmaUk2tkbYMTlbc7nbtEMKBP3cGYuPyfvSMeT VL8w==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=pengutronix.de); spf=pass (google.com: domain of linux-kernel+bounces-102528-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-102528-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id 26-20020a63135a000000b005dc12a99c6esi149968pgt.355.2024.03.13.14.20.17 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 13 Mar 2024 14:20:17 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-102528-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=pengutronix.de); spf=pass (google.com: domain of linux-kernel+bounces-102528-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-102528-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id B0299287E2B for ; Wed, 13 Mar 2024 21:20:15 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 37E5453811; Wed, 13 Mar 2024 21:20:08 +0000 (UTC) Received: from metis.whiteo.stw.pengutronix.de (metis.whiteo.stw.pengutronix.de [185.203.201.7]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 184842570 for ; Wed, 13 Mar 2024 21:20:05 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=185.203.201.7 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710364807; cv=none; b=mAAOLgCkcGrGIJccc7jnzmIzjLJnc6/5W3e+H9Af1izIKSLZmjszd63DQl06tyFhQkNSn9vxYZS6ac5Smncv8WhbhiEJW5mnjLFsyAG0fhf98Xh3WNbXY1w1o3ylWWdcHFsiASB6R36/xfEwnzThLNySzEezPq6xr2hqA6aWgcY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710364807; c=relaxed/simple; bh=4qn7eSAfjsV1EzkrCEj4rzVTWbR4k8GOK6ohHb3Wwe8=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:Content-Type; b=rUBWpW+nZzqT/8cAr2pV0XitnAmweqf3fN6bw74D3yIbDtDVSKhqq6IK7gV0DrOpFifJSME9drSCGf3MNqfUlFDE3g7J8kCJf3GOdDOQHU0fV6DJHdlXNdecZ2ezEHG1EqsYL32eI0iOuVOwnaJm3gQ1/Hug4ZjjznJtxgBmGr0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=pengutronix.de; spf=pass smtp.mailfrom=pengutronix.de; arc=none smtp.client-ip=185.203.201.7 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=pengutronix.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=pengutronix.de Received: from drehscheibe.grey.stw.pengutronix.de ([2a0a:edc0:0:c01:1d::a2]) by metis.whiteo.stw.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1rkW12-00074e-CM; Wed, 13 Mar 2024 22:20:00 +0100 Received: from [2a0a:edc0:0:900:1d::77] (helo=ptz.office.stw.pengutronix.de) by drehscheibe.grey.stw.pengutronix.de with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1rkW11-006Bfi-Kg; Wed, 13 Mar 2024 22:19:59 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.96) (envelope-from ) id 1rkW11-005g0M-1n; Wed, 13 Mar 2024 22:19:59 +0100 From: =?UTF-8?q?Uwe=20Kleine-K=C3=B6nig?= To: Andrew Morton Cc: Masahiro Yamada , kernel@pengutronix.de, linux-kbuild@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v2] lib/build_OID_registry: Don't mention the full path of the script in output Date: Wed, 13 Mar 2024 22:19:56 +0100 Message-ID: <20240313211957.884561-2-u.kleine-koenig@pengutronix.de> X-Mailer: git-send-email 2.43.0 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Developer-Signature: v=1; a=openpgp-sha256; l=1818; i=u.kleine-koenig@pengutronix.de; h=from:subject; bh=4qn7eSAfjsV1EzkrCEj4rzVTWbR4k8GOK6ohHb3Wwe8=; b=owEBbQGS/pANAwAKAY+A+1h9Ev5OAcsmYgBl8hh9xTSSm4BMuL5+UkJ+u9CTm1Zh3jTBiImnp vw03SWLrJ+JATMEAAEKAB0WIQQ/gaxpOnoeWYmt/tOPgPtYfRL+TgUCZfIYfQAKCRCPgPtYfRL+ TlEuCACEOrbQ3FvkaU4OxNnchuCyMVc1c14oNRP/Lqc051/0AipaO90Gd/OoU/+QmjtUBdRExP1 hCDGmXYEb5HcNRDenADJOGZf2vqQO6EpMYeiQ0zOtFKMOjj++1WXCIK/ZdeNT54VhcfLGn03dxJ swBZ1A4QY7fjxKcAr/uz/MzNm4LAiE5IU9//fxIg10GKSeg1oxdD5ZmmQuX1Sp775yWPdO7faCp eH1r+GG8xxZYYZ03DiZblIrk/e352HK305croMqvVkoPsxXXOo0+L7XtbHJ9qzjKWyxAw/svZlw XBWcEJ36omeiuom2cCrRf+cCb82QBqM0PailXYWJG0QsefB9 X-Developer-Key: i=u.kleine-koenig@pengutronix.de; a=openpgp; fpr=0D2511F322BFAB1C1580266BE2DCDD9132669BD6 Content-Transfer-Encoding: 8bit X-SA-Exim-Connect-IP: 2a0a:edc0:0:c01:1d::a2 X-SA-Exim-Mail-From: ukl@pengutronix.de X-SA-Exim-Scanned: No (on metis.whiteo.stw.pengutronix.de); SAEximRunCond expanded to false X-PTX-Original-Recipient: linux-kernel@vger.kernel.org This change strips the full path of the script generating lib/oid_registry_data.c to just lib/build_OID_registry. The motivation for this change is Yocto emitting a build warning File /usr/src/debug/linux-lxatac/6.7-r0/lib/oid_registry_data.c in package linux-lxatac-src contains reference to TMPDIR [buildpaths] So this change brings us one step closer to make the build result reproducible independent of the build path. Signed-off-by: Uwe Kleine-König --- Changes since (implicit) v1, archived at https://lore.kernel.org/lkml/20240311110121.459581-2-u.kleine-koenig@pengutronix.de: - Handle abs_srctree not being exported any more The v1 patch made it into next but im combination with commit e2bad142bb3d ("kbuild: unexport abs_srctree and abs_objtree") resulted in a build warning about $ENV{"abs_srctree"} being uninitialized which required this respin. Best regards Uwe lib/build_OID_registry | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/build_OID_registry b/lib/build_OID_registry index d7fc32ea8ac2..56d8bafeb848 100755 --- a/lib/build_OID_registry +++ b/lib/build_OID_registry @@ -8,6 +8,7 @@ # use strict; +use Cwd qw(abs_path); my @names = (); my @oids = (); @@ -17,6 +18,8 @@ if ($#ARGV != 1) { exit(2); } +my $abs_srctree = abs_path($ENV{'srctree'}); + # # Open the file to read from # @@ -35,7 +38,7 @@ close IN_FILE || die; # open C_FILE, ">$ARGV[1]" or die; print C_FILE "/*\n"; -print C_FILE " * Automatically generated by ", $0, ". Do not edit\n"; +print C_FILE " * Automatically generated by ", $0 =~ s#^\Q$abs_srctree/\E##r, ". Do not edit\n"; print C_FILE " */\n"; # base-commit: e8f897f4afef0031fe618a8e94127a0934896aba -- 2.43.0