mirror of
https://github.com/intel/linux-sgx
synced 2026-06-08 14:49:32 +00:00
Linux 2.9 Open Source Gold Release
Fixed bugs. Signed-off-by: Li, Xun <xun.li@intel.com>
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (C) 2011-2019 Intel Corporation. All rights reserved.
|
||||
* Copyright (C) 2011-2020 Intel Corporation. All rights reserved.
|
||||
*
|
||||
* Redistribution and use in source and binary forms, with or without
|
||||
* modification, are permitted provided that the following conditions
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (C) 2011-2019 Intel Corporation. All rights reserved.
|
||||
* Copyright (C) 2011-2020 Intel Corporation. All rights reserved.
|
||||
*
|
||||
* Redistribution and use in source and binary forms, with or without
|
||||
* modification, are permitted provided that the following conditions
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (C) 2011-2019 Intel Corporation. All rights reserved.
|
||||
* Copyright (C) 2011-2020 Intel Corporation. All rights reserved.
|
||||
*
|
||||
* Redistribution and use in source and binary forms, with or without
|
||||
* modification, are permitted provided that the following conditions
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (C) 2011-2019 Intel Corporation. All rights reserved.
|
||||
* Copyright (C) 2011-2020 Intel Corporation. All rights reserved.
|
||||
*
|
||||
* Redistribution and use in source and binary forms, with or without
|
||||
* modification, are permitted provided that the following conditions
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (C) 2011-2019 Intel Corporation. All rights reserved.
|
||||
* Copyright (C) 2011-2020 Intel Corporation. All rights reserved.
|
||||
*
|
||||
* Redistribution and use in source and binary forms, with or without
|
||||
* modification, are permitted provided that the following conditions
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (C) 2011-2019 Intel Corporation. All rights reserved.
|
||||
* Copyright (C) 2011-2020 Intel Corporation. All rights reserved.
|
||||
*
|
||||
* Redistribution and use in source and binary forms, with or without
|
||||
* modification, are permitted provided that the following conditions
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
#
|
||||
# Copyright (C) 2011-2019 Intel Corporation. All rights reserved.
|
||||
# Copyright (C) 2011-2020 Intel Corporation. All rights reserved.
|
||||
#
|
||||
# Redistribution and use in source and binary forms, with or without
|
||||
# modification, are permitted provided that the following conditions
|
||||
@@ -29,20 +29,18 @@
|
||||
#
|
||||
#
|
||||
|
||||
SGX_SDK ?= /opt/intel/sgxsdk
|
||||
|
||||
App_Objects := App/sample.o App/enclave_entry.o
|
||||
|
||||
sample: $(App_Objects)
|
||||
@$(CXX) $^ -o $@ -z noexecstack -L. -lsgx_enclave_common
|
||||
@$(CXX) $^ -o $@ -z noexecstack -lsgx_enclave_common
|
||||
@echo "LINK => $@"
|
||||
|
||||
App/%.o: App/%.cpp
|
||||
@$(CXX) -c $< -o $@ -I./Include -I$(SGX_SDK)/include
|
||||
@$(CXX) -c $< -o $@ -I./Include
|
||||
@echo "GEN => $@"
|
||||
|
||||
App/%.o: App/%.S
|
||||
@$(CC) -c $< -o $@ -I./Include -I$(SGX_SDK)/include
|
||||
@$(CC) -c $< -o $@ -I./Include
|
||||
@echo "GEN => $@"
|
||||
|
||||
.PHONY: clean
|
||||
|
||||
@@ -10,15 +10,13 @@ The project demonstrates how to use these Enclave Common Loader Layer APIs:
|
||||
------------------------------------
|
||||
How to Build/Execute the Sample Code
|
||||
------------------------------------
|
||||
1. Install Intel(R) Software Guard Extensions (Intel(R) SGX) PSW and Intel(R) SGX SDK for Linux* OS
|
||||
2. Make sure your environment is set:
|
||||
$ source ${sgx-sdk-install-path}/environment
|
||||
3. Build the project with the prepared Makefile:
|
||||
1. Install Intel(R) Software Guard Extensions (Intel(R) SGX) Enclave Common Loader and its development package for Linux* OS
|
||||
2. Build the project with the prepared Makefile:
|
||||
a. Build the project
|
||||
$ make
|
||||
b. Clean the project
|
||||
$ make clean
|
||||
c. Re-build the project
|
||||
$ make rebuild
|
||||
4. Execute the binary directly:
|
||||
3. Execute the binary directly:
|
||||
$ ./sample
|
||||
|
||||
Reference in New Issue
Block a user