diff options
author | Chun-Tse Shao <ctshao@google.com> | 2022-04-01 23:18:02 +0000 |
---|---|---|
committer | Masahiro Yamada <masahiroy@kernel.org> | 2022-04-05 17:03:31 +0900 |
commit | d5ea4fece4508bf8e72b659cd22fa4840d8d61e5 (patch) | |
tree | 49ecc02e36b4d45f4cd53911a5307f4b8feb5f82 /tools/objtool/Makefile | |
parent | 9a22717b9b074d75baf7dd6041487730e53b4dbb (diff) | |
download | linux-stable-d5ea4fece4508bf8e72b659cd22fa4840d8d61e5.tar.gz linux-stable-d5ea4fece4508bf8e72b659cd22fa4840d8d61e5.tar.bz2 linux-stable-d5ea4fece4508bf8e72b659cd22fa4840d8d61e5.zip |
kbuild: Allow kernel installation packaging to override pkg-config
Add HOSTPKG_CONFIG to allow tooling that builds the kernel to override
what pkg-config and parameters are used.
Signed-off-by: Chun-Tse Shao <ctshao@google.com>
Reviewed-by: Nick Desaulniers <ndesaulniers@google.com>
Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
Diffstat (limited to 'tools/objtool/Makefile')
-rw-r--r-- | tools/objtool/Makefile | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/objtool/Makefile b/tools/objtool/Makefile index 0dbd397f319d..29a92781b2ae 100644 --- a/tools/objtool/Makefile +++ b/tools/objtool/Makefile @@ -19,8 +19,8 @@ LIBSUBCMD = $(LIBSUBCMD_OUTPUT)libsubcmd.a OBJTOOL := $(OUTPUT)objtool OBJTOOL_IN := $(OBJTOOL)-in.o -LIBELF_FLAGS := $(shell pkg-config libelf --cflags 2>/dev/null) -LIBELF_LIBS := $(shell pkg-config libelf --libs 2>/dev/null || echo -lelf) +LIBELF_FLAGS := $(shell $(HOSTPKG_CONFIG) libelf --cflags 2>/dev/null) +LIBELF_LIBS := $(shell $(HOSTPKG_CONFIG) libelf --libs 2>/dev/null || echo -lelf) all: $(OBJTOOL) |