]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commitdiff
scripts/dtc: Call pkg-config POSIXly correct
authorThomas Bracht Laumann Jespersen <t@laumann.xyz>
Mon, 31 Jan 2022 11:20:28 +0000 (12:20 +0100)
committerStefan Bader <stefan.bader@canonical.com>
Fri, 20 May 2022 12:38:48 +0000 (14:38 +0200)
BugLink: https://bugs.launchpad.net/bugs/1969110
[ Upstream commit a8b309ce9760943486e0585285e0125588a31650 ]

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: 067c650c456e ("dtc: Use pkg-config to locate libyaml")
Signed-off-by: Thomas Bracht Laumann Jespersen <t@laumann.xyz>
Signed-off-by: Rob Herring <robh@kernel.org>
Link: https://lore.kernel.org/r/20220131112028.7907-1-t@laumann.xyz
Signed-off-by: Sasha Levin <sashal@kernel.org>
(cherry picked from commit 34bed8dae12a9090f252055c328f36e0d0ff1f71)
Signed-off-by: Paolo Pisati <paolo.pisati@canonical.com>
scripts/dtc/Makefile

index 95aaf7431bffab05da5ee186ef3b6461dba21fd1..1cba78e1dce689914d66ff0bc0f93a259bbd599d 100644 (file)
@@ -29,7 +29,7 @@ dtc-objs      += yamltree.o
 # To include <yaml.h> 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