提交 ab83871f 编写于 作者: T Thomas Bracht Laumann Jespersen 提交者: Zheng Zengkai

scripts/dtc: Call pkg-config POSIXly correct

stable inclusion
from stable-v5.10.110
commit 6f095441f808ee81e669ee03842c05f5c819b573
bugzilla: https://gitee.com/openeuler/kernel/issues/I574AL

Reference: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=6f095441f808ee81e669ee03842c05f5c819b573

--------------------------------

[ Upstream commit a8b309ce ]

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: 067c650c ("dtc: Use pkg-config to locate libyaml")
Signed-off-by: NThomas Bracht Laumann Jespersen <t@laumann.xyz>
Signed-off-by: NRob Herring <robh@kernel.org>
Link: https://lore.kernel.org/r/20220131112028.7907-1-t@laumann.xyzSigned-off-by: NSasha Levin <sashal@kernel.org>
Signed-off-by: NYu Liao <liaoyu15@huawei.com>
Reviewed-by: NWei Li <liwei391@huawei.com>
Signed-off-by: NZheng Zengkai <zhengzengkai@huawei.com>
上级 cf1555c4
...@@ -22,7 +22,7 @@ dtc-objs += yamltree.o ...@@ -22,7 +22,7 @@ dtc-objs += yamltree.o
# To include <yaml.h> installed in a non-default path # To include <yaml.h> installed in a non-default path
HOSTCFLAGS_yamltree.o := $(shell pkg-config --cflags yaml-0.1) HOSTCFLAGS_yamltree.o := $(shell pkg-config --cflags yaml-0.1)
# To link libyaml installed in a non-default path # 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 endif
# Generated files need one more search path to include headers in source tree # Generated files need one more search path to include headers in source tree
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册