From patchwork Tue Nov 22 10:28:25 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alejandro Cabrera Aldaya X-Patchwork-Id: 1707781 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; spf=none (no SPF record) smtp.mailfrom=lists.infradead.org (client-ip=2607:7c80:54:3::133; helo=bombadil.infradead.org; envelope-from=opensbi-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org; receiver=) Authentication-Results: legolas.ozlabs.org; dkim=pass (2048-bit key; secure) header.d=lists.infradead.org header.i=@lists.infradead.org header.a=rsa-sha256 header.s=bombadil.20210309 header.b=M3khJ+0Y; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20210112 header.b=ilxxl66N; dkim-atps=neutral Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:3::133]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4NGgVL639Jz23nl for ; Tue, 22 Nov 2022 21:29:30 +1100 (AEDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:Cc :To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=EWwKHSFIuwlC0mkYcibAXiAGDHg6OMe5iZe213GhgSs=; b=M3khJ+0YoZfRiu sepuUaNp3MMIzlzocKCOVr6wal6L0iqk9dmSzOY6aKVP0ajTNcsaytsiP+HsjmT3t9s+3tHCHEpPh y4RTCy6rUVvkwhmdRe+ue4yxt0uwmaaEbkAChdybuLajM+tEN/pvaXBH3QKAyV7KP+hh5Kztj7v9e iyw8rf0Ey5Qdht0ubllg9qUP7fWxduNXBsbWPJoJWbRAOWQKHN7IHgj1gpBOst1OY5K7K1liPJdWD OjpEtam4C6m5wM/QBy3duheNt4LyPcv1geaRWsfREFLUGpuycV6WZV17ogF7DM55NW3q4sSu2HyGA YY8q5/ewjlSTEuf9IDkg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1oxQWc-007pF7-QD; Tue, 22 Nov 2022 10:29:10 +0000 Received: from mail-lf1-x130.google.com ([2a00:1450:4864:20::130]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1oxQW9-007ozd-Ec for opensbi@lists.infradead.org; Tue, 22 Nov 2022 10:28:43 +0000 Received: by mail-lf1-x130.google.com with SMTP id r12so22954587lfp.1 for ; Tue, 22 Nov 2022 02:28:38 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=eU2pejj93VM/3/InyhXJMBq1z4qKvS2ETjbmAfpR1XA=; b=ilxxl66Nmda2KH6OBxRvp9meFnZOl2TuZvjVYOZoXKNiaK0mtNslbXTpxPuZIp2Ag/ IgEEn1WLCk+/vq0KCBivRo4bo+nHzG3abMV0VFguEW86Qh097yx9QDTCTinxQ8BcSFLj OpuDbtkXyWvz2cx7CpLmKUtsoBq7eW8vbs776HKUDnM8LTBWjYMUG8pjfDFA2PeIkSEQ Zu0aI7f9dIQUXuTqF8xHe0Trhas80AZzbIr8VudXmhMpuwrVAhl5ccI0vq3swL02GOpm F3JuSX45dE4HBLII0fCM+nRNA85ncF0tYiPzy89NktZrqSeWHN1Yz/BT1Z/5zQzXfpwD fUnA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=eU2pejj93VM/3/InyhXJMBq1z4qKvS2ETjbmAfpR1XA=; b=tly+x19h7q4A8Y6v6mmCVhJ+9aWcYI1E0oiWp1NDLrCkB8RtPDcRKBxV/eJSJIzf7R 77n+geKUgpCWvLWkfw9+2iXv8Hgn3B8MVqT4LdgGMXgx29Ks/XEIrUayPkjI/r4wXbUy 4itZY5ECCBZMWyKCoBt7JXGPwlwqnygq8RqC2zCxkMHpQDP3LEtLD6Eot4hl30IQ3adQ ov1DISw7LMhnHFeNwUwnE/Y++CB6ODmqaA9ojIKP+rYHszu3zsLZUG4hSmIbkPoxbGak g7y4p64U9Pa2Q2F+rk7HU4uK9blLjbVYRiK98Std8JEQAtsddFQMgsjVaD5GLfuY2RlM bfTQ== X-Gm-Message-State: ANoB5pkZHZI6Oot2y8LlAhh2EXitNMi30UvnKm51nzh49Ru1Jj4+WzhE AUwK6Fm2iXtPFr8NB03e4KA5bp9XSaY= X-Google-Smtp-Source: AA0mqf7GUzdfLak8FT5AcaPGwllKmGduMubcxKQrkgMiSgNfuOHMkIqsnOzMBFCZ173Y+4KS6u4PDQ== X-Received: by 2002:a05:6512:3f19:b0:4ac:7d84:cb99 with SMTP id y25-20020a0565123f1900b004ac7d84cb99mr7226917lfa.412.1669112916392; Tue, 22 Nov 2022 02:28:36 -0800 (PST) Received: from slimpearl.lan (dsl-trebng11-54f912-245.dhcp.inet.fi. [84.249.18.245]) by smtp.gmail.com with ESMTPSA id c5-20020a056512324500b004b48cc444ccsm2443563lfr.100.2022.11.22.02.28.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 22 Nov 2022 02:28:36 -0800 (PST) From: Alejandro Cabrera Aldaya To: opensbi@lists.infradead.org Cc: Alejandro Cabrera Aldaya Subject: [PATCH] Makefile: bugfix for handling platform paths Date: Tue, 22 Nov 2022 12:28:25 +0200 Message-Id: <20221122102825.88440-1-aldaya@gmail.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20221122_022841_520122_7BF355B7 X-CRM114-Status: UNSURE ( 9.37 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -0.2 (/) X-Spam-Report: Spam detection software, running on the system "bombadil.infradead.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: If the path where this repo is located contains the platform name on it, the original Makefile replaced its occurrences from the path making it an invalid path. This commit prevents this behavior repl [...] Content analysis details: (-0.2 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [2a00:1450:4864:20:0:0:0:130 listed in] [list.dnswl.org] -0.0 SPF_PASS SPF: sender matches SPF record 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider [aldaya[at]gmail.com] -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID_EF Message has a valid DKIM or DK signature from envelope-from domain X-BeenThere: opensbi@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "opensbi" Errors-To: opensbi-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org If the path where this repo is located contains the platform name on it, the original Makefile replaced its occurrences from the path making it an invalid path. This commit prevents this behavior replacing only the last part of the path as intended. Signed-off-by: Alejandro Cabrera Aldaya Reviewed-by: Xiang W Reviewed-by: Andrew Jones Reviewed-by: Anup Patel --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 8db6eab..32d4c48 100644 --- a/Makefile +++ b/Makefile @@ -47,7 +47,7 @@ ifdef PLATFORM_DIR platform_parent_dir=$(platform_dir_path) else PLATFORM=$(shell basename $(platform_dir_path)) - platform_parent_dir=$(subst $(PLATFORM),,$(platform_dir_path)) + platform_parent_dir=$(shell dirname $(shell realpath $(platform_dir_path))) endif else platform_parent_dir=$(src_dir)/platform