Received: by 2002:a05:6a10:1a4d:0:0:0:0 with SMTP id nk13csp871113pxb; Tue, 1 Feb 2022 12:08:26 -0800 (PST) X-Google-Smtp-Source: ABdhPJxZ1CriQLpAktVFnsjEDSw3iwq75zQCCBqJX0YTt4NeLJPswiPbx+8Y3IYEq7Eg7ONL62r9 X-Received: by 2002:a63:28c:: with SMTP id 134mr21988874pgc.123.1643746106651; Tue, 01 Feb 2022 12:08:26 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643746106; cv=none; d=google.com; s=arc-20160816; b=RMg0I9Jm9XYsNH3xEV7PW42pHarX9lnEthEWiY9G2ChCauFFACqFX8bhs0hpt6olEX IgEK3AnaujF4gEY64jYkgBSnBzFE55xKkEkRyocSm/dKAw22scnQK6Hiz2Ihl43l3yGA peVnW+31U5S5Eeo6NJIIvV3YuKWG0gycBCwemPRF+zY4+8/BLPx5rsGL9CDnhzfDUZXB wq9bGt6MwPcXp1jJz1G/F5csEYYD7xIODoFHbE/a2uLh41tr9H5Kw4EgERvWBRNcTwHh YktQ4z0RZbfExduFusBjT4z+Zy7LBONdL0t4UIp5p5pc74LAjZfvlJPZN4LfJwh2QNMe 9Ysg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=JYDB1xSWY0WQHZmHLRS3w1xwDpScfvJzKuT7JY80/Ek=; b=EFrTDKapSoOLNIvFe1IXAQ8f8MyUoWTzBdnF6eWTSzcNEG4GKhbBrzq/sCOt7u4sSV jrpMj8QvPpRCvf+QocxDpDv06/Uj1iqJeF5wOMiJJUaorj0NlzFTxdnDOVvurNmF2Xfr KmdVGld0CjIqdVczOpzLKZjdIFYz9qCXu4/7Q0kJV8sXbjMCTirD0FUwPpVxbEGNsb77 hdxzNTwm6pgYxPX3YJPzf/ri2Xe7eXiNHbCgA6xIJz26dvPZw8xWjOz9reFBYJviSxjD G5qyYmBeIoy2hMfooIyvaShPP8D+SrIEXM3tGKMgiMu61C9pumxZTWtQ+PqPYcQW6w5+ RRDA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@laumann.xyz header.s=key1 header.b=iKFJRGlz; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=laumann.xyz Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id q2si16808202pga.370.2022.02.01.12.08.15; Tue, 01 Feb 2022 12:08:26 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@laumann.xyz header.s=key1 header.b=iKFJRGlz; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=laumann.xyz Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1379598AbiAaLa1 (ORCPT + 99 others); Mon, 31 Jan 2022 06:30:27 -0500 Received: from out0.migadu.com ([94.23.1.103]:53048 "EHLO out0.migadu.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239602AbiAaLUl (ORCPT ); Mon, 31 Jan 2022 06:20:41 -0500 X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=laumann.xyz; s=key1; t=1643628038; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=JYDB1xSWY0WQHZmHLRS3w1xwDpScfvJzKuT7JY80/Ek=; b=iKFJRGlz2zomgwYB1L4Jc7x3tKNUjkI+C833pHGQFd0XCzX51U5/XBC4VJHR4gyGgj1ybI QMfbX/97K/4H3cIuvNuvhTRqGF7hcFKjkMHUXyQHwSGJhvDMPXKJrrLh7b3vVwF2IdgEWo vz2F7hxj294AYe7RKzvr3MjRUyeidUa5pTw9UszFxC4+4cJGGqXWqHHz6ukMw5Sv3ye50g NuVZ2K4f+E3HU+EZlqo4XZrJazCBFvZRCsTd8F8d0rRtwZ28basaJ+o/sPYWDJSV86gZlX LUXED4jhOQqRIsNe93azT8ZZZep+lffupkYRSKcWvkjZmF+qogCug6t2FnHm0A== From: Thomas Bracht Laumann Jespersen To: robh+dt@kernel.org, frowand.list@gmail.com Cc: masahiroy@kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Thomas Bracht Laumann Jespersen Subject: [PATCH] scripts/dtc: Call pkg-config POSIXly correct Date: Mon, 31 Jan 2022 12:20:28 +0100 Message-Id: <20220131112028.7907-1-t@laumann.xyz> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Migadu-Flow: FLOW_OUT X-Migadu-Auth-User: laumann.xyz Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Running with POSIXLY_CORRECT=1 in the environment the scripts/dtc build fails, because pkg-config doesn't output anything when the flags come after the arguments. Fixes: f8d8b46cd20e ("scripts/dtc: use pkg-config to include in non-standard path") Signed-off-by: Thomas Bracht Laumann Jespersen --- I'm aware that the full kernel doesn't build with POSIXLY_CORRECT set, but I asked around and was told just to submit a patch. This is based on the v5.17-rc2 tag, not sure if that's the right tree to work from, I'll happily cherry-pick to another tree if desired. scripts/dtc/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/dtc/Makefile b/scripts/dtc/Makefile index 95aaf7431bff..1cba78e1dce6 100644 --- a/scripts/dtc/Makefile +++ b/scripts/dtc/Makefile @@ -29,7 +29,7 @@ dtc-objs += yamltree.o # To include installed in a non-default path HOSTCFLAGS_yamltree.o := $(shell pkg-config --cflags yaml-0.1) # To link libyaml installed in a non-default path -HOSTLDLIBS_dtc := $(shell pkg-config yaml-0.1 --libs) +HOSTLDLIBS_dtc := $(shell pkg-config --libs yaml-0.1) endif # Generated files need one more search path to include headers in source tree -- 2.34.1