From mboxrd@z Thu Jan 1 00:00:00 1970 Delivery-date: Wed, 05 Jun 2024 11:55:30 +0200 Received: from metis.whiteo.stw.pengutronix.de ([2a0a:edc0:2:b01:1d::104]) by lore.white.stw.pengutronix.de with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1sEnMg-001UO0-1V for lore@lore.pengutronix.de; Wed, 05 Jun 2024 11:55:30 +0200 Received: from localhost ([127.0.0.1] helo=metis.whiteo.stw.pengutronix.de) by metis.whiteo.stw.pengutronix.de with esmtp (Exim 4.92) (envelope-from ) id 1sEnMg-0007ag-6O; Wed, 05 Jun 2024 11:55:30 +0200 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 1sEnMN-0007aR-My; Wed, 05 Jun 2024 11:55:11 +0200 Received: from [2a0a:edc0:0:1101:1d::ac] (helo=dude04.red.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 1sEnMN-000Jp6-Aa; Wed, 05 Jun 2024 11:55:11 +0200 Received: from rhi by dude04.red.stw.pengutronix.de with local (Exim 4.96) (envelope-from ) id 1sEnMN-00DrOc-0u; Wed, 05 Jun 2024 11:55:11 +0200 From: Roland Hieber To: ptxdist@pengutronix.de Date: Wed, 5 Jun 2024 11:54:58 +0200 Message-Id: <20240605095458.3303464-1-rhi@pengutronix.de> X-Mailer: git-send-email 2.39.2 MIME-Version: 1.0 Mail-Followup-To: Roland Hieber , ptxdist@pengutronix.de Content-Transfer-Encoding: 8bit Subject: [ptxdist] [PATCH] ptxd_lib_dgen: improve error message X-BeenThere: ptxdist@pengutronix.de X-Mailman-Version: 2.1.29 Precedence: list List-Id: PTXdist Development Mailing List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: ptxdist@pengutronix.de Cc: Roland Hieber Sender: "ptxdist" X-SA-Exim-Connect-IP: 127.0.0.1 X-SA-Exim-Mail-From: ptxdist-bounces@pengutronix.de X-SA-Exim-Scanned: No (on metis.whiteo.stw.pengutronix.de); SAEximRunCond expanded to false Make clear why that error happens, just in case someone decides to create a target package named "image-viewer". Signed-off-by: Roland Hieber --- scripts/lib/ptxd_lib_dgen.awk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/lib/ptxd_lib_dgen.awk b/scripts/lib/ptxd_lib_dgen.awk index 1e01939d8018..8a08bcc44e8e 100644 --- a/scripts/lib/ptxd_lib_dgen.awk +++ b/scripts/lib/ptxd_lib_dgen.awk @@ -100,7 +100,7 @@ $0 ~ /^include[[:space:]]+\/.*\.make$/ { $1 ~ /^\$\(STATEDIR\)\/(image-.*|host-.*|cross-.*)\.targetinstall(.post)?:/ { match($0, /\$\(STATEDIR\)\/((image-.*|host-.*|cross-.*)\.targetinstall(.post)?):/, m); print "\nError in " old_filename " line " lineno ":\n" \ - " '" m[1] "' stage will be ignored.\n" \ + " '" m[1] "' stage in host/cross/image rule will be ignored.\n" \ " See section 'Rule File Layout' in the PTXdist reference for more info:\n" \ " https://www.ptxdist.org/doc/ref_manual.html#rule-file-layout" exit 1; -- 2.39.2