Skip to content

Commit

Permalink
sdk: Remove duplicated examples
Browse files Browse the repository at this point in the history
Signed-off-by: Sangwan Kwon <sangwan.kwon@samsung.com>
  • Loading branch information
bitboom committed Dec 22, 2023
1 parent 56e3d52 commit 2e6f488
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 46 deletions.
6 changes: 3 additions & 3 deletions sdk/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ sdk:
@$(OPENSSL_ARM64_FLAG) cargo build -r --target=aarch64-unknown-linux-gnu

sdk-example:
@$(OPENSSL_ARM64_FLAG) cargo build -r --example aarch64 --target=aarch64-unknown-linux-gnu
@$(OPENSSL_ARM64_FLAG) cargo build -r --example attest_n_seal --target=aarch64-unknown-linux-gnu

sdk-example-c: examples/c_api/attest_seal_test.cc
@$(OPENSSL_ARM64_FLAG) RUSTFLAGS="-C target-feature=-crt-static" cargo build -r --target=aarch64-unknown-linux-gnu
Expand All @@ -31,7 +31,7 @@ simulated:
@cargo build -r --target=x86_64-unknown-linux-gnu

run-simulated:
@cargo run -r --example simulated --target=x86_64-unknown-linux-gnu
@cargo run -r --example attest_n_seal --target=x86_64-unknown-linux-gnu

run-simulated-c:
@cargo build -r --target=x86_64-unknown-linux-gnu
Expand All @@ -44,7 +44,7 @@ run-simulated-c:

fvp: sdk sdk-example
@mkdir -p $(SHARED_DIR)
@install -m755 $(ROOT)/out/aarch64-unknown-linux-gnu/release/examples/aarch64 $(SHARED_DIR)/sdk-example
@install -m755 $(ROOT)/out/aarch64-unknown-linux-gnu/release/examples/attest_n_seal $(SHARED_DIR)/sdk-example
@$(MAKE) sdk-example-c
@cp -p $(ROOT)/out/aarch64-unknown-linux-gnu/release/libislet_sdk.a $(SHARED_DIR)
@install -m755 sdk-example-c $(SHARED_DIR)
Expand Down
42 changes: 0 additions & 42 deletions sdk/examples/aarch64.rs

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ fn sealing() -> Result<(), Error> {
}

fn main() {
println!("# ISLET SDK examples: A simulated app running on x86_64");
println!("Attestation result {:?}", attestation());
println!("Sealing result {:?}", sealing());
}

0 comments on commit 2e6f488

Please sign in to comment.