Commit 3da16402 authored by Shuah Khan's avatar Shuah Khan

Revert "selftests/sgx: Include KHDR_INCLUDES in Makefile"

This reverts commit 2c3b8f8f.

The framework change to add D_GNU_SOURCE to KHDR_INCLUDES
to Makefile, lib.mk, and kselftest_harness.h is reverted
as it is causing build failures and warnings.

Revert this change as this change depends on the framework
change.
Reported-by: default avatarMark Brown <broonie@kernel.org>
Signed-off-by: default avatarShuah Khan <skhan@linuxfoundation.org>
parent cee27ae5
...@@ -12,7 +12,7 @@ OBJCOPY := $(CROSS_COMPILE)objcopy ...@@ -12,7 +12,7 @@ OBJCOPY := $(CROSS_COMPILE)objcopy
endif endif
INCLUDES := -I$(top_srcdir)/tools/include INCLUDES := -I$(top_srcdir)/tools/include
HOST_CFLAGS := -Wall -Werror $(KHDR_INCLUDES) -g $(INCLUDES) -fPIC HOST_CFLAGS := -Wall -Werror -g $(INCLUDES) -fPIC
HOST_LDFLAGS := -z noexecstack -lcrypto HOST_LDFLAGS := -z noexecstack -lcrypto
ENCL_CFLAGS += -Wall -Werror -static-pie -nostdlib -ffreestanding -fPIE \ ENCL_CFLAGS += -Wall -Werror -static-pie -nostdlib -ffreestanding -fPIE \
-fno-stack-protector -mrdrnd $(INCLUDES) -fno-stack-protector -mrdrnd $(INCLUDES)
......
// SPDX-License-Identifier: GPL-2.0 // SPDX-License-Identifier: GPL-2.0
/* Copyright(c) 2016-20 Intel Corporation. */ /* Copyright(c) 2016-20 Intel Corporation. */
#define _GNU_SOURCE
#include <assert.h> #include <assert.h>
#include <getopt.h> #include <getopt.h>
#include <stdbool.h> #include <stdbool.h>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment