Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Changes to build IPP Crypto from source #731

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 15 additions & 7 deletions external/ippcp_internal/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ DIR = $(CURDIR)
IPP_CONFIG = -Bbuild -DCMAKE_VERBOSE_MAKEFILE=on

# Ignore the CMAKE C/C++ compiler check to avoid conflicts with mitigation options
IPP_CONFIG += -DCMAKE_C_COMPILER_WORKS=TRUE -DCMAKE_CXX_COMPILER_WORKS=TRUE
IPP_CONFIG += -DCMAKE_C_COMPILER_WORKS=TRUE -DCMAKE_CXX_COMPILER_WORKS=TRUE
IPP_SOURCE = ipp-crypto
ARCH = intel64
IPP_CONFIG += -DARCH=$(ARCH)
Expand All @@ -59,13 +59,21 @@ else ifeq ($(MITIGATION-CVE-2020-0551), CF)
endif
OUT_DIR = lib/linux/$(ARCH)/$(SUB_DIR)/

#CHECK_SOURCE :=
## For reproducibility build in docker, the code should be
## prepared before build. So skip the code check to avoid
## triggering network request
#ifneq ($(origin NIX_PATH), environment)
#CHECK_SOURCE:= ipp_source
#endif
# FIXME temporary workaround for nix derivation
# Why can't IPP simply be a dependency like any other dependency?
# IPP library is a git submodule which must be init
CHECK_SOURCE :=
# For reproducibility build in docker, the code should be
# prepared before build. So skip the code check to avoid
# triggering network request
ifneq ($(origin NIX_PATH), environment)
CHECK_SOURCE:= ipp_source
endif
#ifeq ("$(wildcard $(LINUX_EXTERNAL_DIR)/ippcp_internal/ipp_crypto)", "")
#CHECK_SOURCE := ipp_source
#endif


.PHONY: all build_ipp
all: build_ipp
Expand Down
Loading