From: Sean Christopherson <sean.j.christopherson@intel.com>
To: Jarkko Sakkinen <jarkko.sakkinen@linux.intel.com>
Cc: linux-sgx@vger.kernel.org
Subject: [PATCH for_v25 1/4] selftests/x86: Fix INCLUDES definition in SGX Makefile
Date: Fri, 20 Dec 2019 14:54:58 -0800 [thread overview]
Message-ID: <20191220225501.23476-2-sean.j.christopherson@intel.com> (raw)
In-Reply-To: <20191220225501.23476-1-sean.j.christopherson@intel.com>
Define INCLUDES to reference the top-level tools/include when building
SGX selftests in preparation of adding a missing linux/bits.h include
in sgx/arch.h.
Signed-off-by: Sean Christopherson <sean.j.christopherson@intel.com>
---
tools/testing/selftests/x86/sgx/Makefile | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/tools/testing/selftests/x86/sgx/Makefile b/tools/testing/selftests/x86/sgx/Makefile
index a09ef5f965dc..f838700029e2 100644
--- a/tools/testing/selftests/x86/sgx/Makefile
+++ b/tools/testing/selftests/x86/sgx/Makefile
@@ -6,6 +6,7 @@ ifndef OBJCOPY
OBJCOPY := $(CROSS_COMPILE)objcopy
endif
+INCLUDES := -I$(top_srcdir)/tools/include
HOST_CFLAGS := -Wall -Werror -g $(INCLUDES) -fPIC -z noexecstack
ENCL_CFLAGS := -Wall -Werror -static -nostdlib -nostartfiles -fPIC \
-fno-stack-protector -mrdrnd $(INCLUDES)
@@ -33,7 +34,7 @@ $(OUTPUT)/encl.ss: $(OUTPUT)/encl.bin
$(OUTPUT)/sgxsign signing_key.pem $(OUTPUT)/encl.bin $(OUTPUT)/encl.ss
$(OUTPUT)/sgxsign: sgxsign.c
- $(CC) -o $@ $< -lcrypto
+ $(CC) $(INCLUDES) -o $@ $< -lcrypto
EXTRA_CLEAN := \
$(OUTPUT)/encl.bin \
--
2.24.1
next prev parent reply other threads:[~2019-12-20 22:55 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-12-20 22:54 [PATCH for_v25 0/4] selftests/x86: x86/sgx: Minor selftest cleanup Sean Christopherson
2019-12-20 22:54 ` Sean Christopherson [this message]
2019-12-20 22:54 ` [PATCH for_v25 2/4] x86/sgx: Add missing linux/bits.h include in sgx/arch.h Sean Christopherson
2019-12-20 22:55 ` [PATCH for_v25 3/4] selftests/x86: Add .gitignore for SGX selftest Sean Christopherson
2019-12-20 22:55 ` [PATCH for_v25 4/4] selftests/x86: Remove redundant kernel include Sean Christopherson
2020-01-02 16:49 ` [PATCH for_v25 0/4] selftests/x86: x86/sgx: Minor selftest cleanup Jarkko Sakkinen
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20191220225501.23476-2-sean.j.christopherson@intel.com \
--to=sean.j.christopherson@intel.com \
--cc=jarkko.sakkinen@linux.intel.com \
--cc=linux-sgx@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).