Use host's pkg-config for gen_touchpad_hash
This is a helper running on the host, so should use host tooling. Changing this avoids a build failure on cheza where chromeos-ec the would fail to build before the openssl package (which is supposed to work given that chromeos-ec doesn't list openssl in its dependencies, and this pkg-config invocation is not a reason to start doing so). BUG=None BRANCH=None TEST=emerge-cheza -v1 chromeos-ec Signed-off-by: Mattias Nissler <mnissler@chromium.org> Change-Id: I45161285db17a56b29a36549d3b113f42dff9362 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2550660 Reviewed-by: Nicolas Boichat <drinkcat@chromium.org>
This commit is contained in:
parent
559ad51bad
commit
7fa6cb47c9
|
@ -42,6 +42,7 @@ PKG_CONFIG?=pkg-config
|
|||
BUILDCC?=$(CCACHE) gcc
|
||||
HOSTCC?=$(CCACHE) $(HOST_CROSS_COMPILE)gcc
|
||||
HOSTCXX?=$(CCACHE) $(HOST_CROSS_COMPILE)g++
|
||||
HOST_PKG_CONFIG?=$(HOST_CROSS_COMPILE)pkg-config
|
||||
PROTOC?=protoc
|
||||
|
||||
C_WARN = -Wstrict-prototypes -Wdeclaration-after-statement -Wno-pointer-sign
|
||||
|
|
|
@ -90,11 +90,11 @@ build-util-bin += gen_touchpad_hash
|
|||
# Assume RW section (touchpad FW must be identical for both RO+RW)
|
||||
$(out)/util/gen_touchpad_hash: BUILD_LDFLAGS += -DSECTION_IS_RW=$(EMPTY)
|
||||
|
||||
OPENSSL_CFLAGS := $(shell $(PKG_CONFIG) --libs openssl)
|
||||
OPENSSL_LDFLAGS := $(shell $(PKG_CONFIG) --libs openssl)
|
||||
HOST_OPENSSL_CFLAGS := $(shell $(HOST_PKG_CONFIG) --cflags openssl)
|
||||
HOST_OPENSSL_LDFLAGS := $(shell $(HOST_PKG_CONFIG) --libs openssl)
|
||||
|
||||
$(out)/util/gen_touchpad_hash: BUILD_CFLAGS += $(OPENSSL_CFLAGS)
|
||||
$(out)/util/gen_touchpad_hash: BUILD_LDFLAGS += $(OPENSSL_LDFLAGS)
|
||||
$(out)/util/gen_touchpad_hash: BUILD_CFLAGS += $(HOST_OPENSSL_CFLAGS)
|
||||
$(out)/util/gen_touchpad_hash: BUILD_LDFLAGS += $(HOST_OPENSSL_LDFLAGS)
|
||||
|
||||
deps-y += $(out)/util/gen_touchpad_hash.d
|
||||
endif # CONFIG_TOUCHPAD_VIRTUAL_OFF
|
||||
|
|
Loading…
Reference in New Issue