Skip to content

Commit

Permalink
use cargo build-std
Browse files Browse the repository at this point in the history
  • Loading branch information
DemesneGH committed Jun 21, 2024
1 parent 9f5c62c commit fb8022c
Show file tree
Hide file tree
Showing 40 changed files with 24 additions and 496 deletions.
5 changes: 4 additions & 1 deletion environment
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,10 @@

export PATH=$PATH:$HOME/.cargo/bin
export RUST_TARGET_PATH="$(pwd)"
export RUST_COMPILER_RT_ROOT=$RUST_TARGET_PATH/rust/rust/src/llvm-project/compiler-rt
#export RUST_COMPILER_RT_ROOT=$RUST_TARGET_PATH/rust/rust/src/llvm-project/compiler-rt
# for cargo build-std, set the Rust src path
export __CARGO_TESTS_ONLY_SRC_ROOT="$(pwd)/rust/rust"

if [ -z "$OPTEE_DIR" ]
then
export OPTEE_DIR="$(pwd)/optee"
Expand Down
2 changes: 1 addition & 1 deletion examples/acipher-rs/ta/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ OUT_DIR := $(CURDIR)/target/$(TARGET)/release
all: ta strip sign

ta:
@xargo build --target $(TARGET) --release --verbose
@cargo build -Z build-std=std,panic_abort --target $(TARGET) --release

strip:
@$(OBJCOPY) --strip-unneeded $(OUT_DIR)/ta $(OUT_DIR)/stripped_ta
Expand Down
25 changes: 0 additions & 25 deletions examples/acipher-rs/ta/Xargo.toml

This file was deleted.

2 changes: 1 addition & 1 deletion examples/aes-rs/ta/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ OUT_DIR := $(CURDIR)/target/$(TARGET)/release
all: ta strip sign

ta:
@xargo build --target $(TARGET) --release --verbose
@cargo build -Z build-std=std,panic_abort --target $(TARGET) --release

strip:
@$(OBJCOPY) --strip-unneeded $(OUT_DIR)/ta $(OUT_DIR)/stripped_ta
Expand Down
25 changes: 0 additions & 25 deletions examples/aes-rs/ta/Xargo.toml

This file was deleted.

2 changes: 1 addition & 1 deletion examples/authentication-rs/ta/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ OUT_DIR := $(CURDIR)/target/$(TARGET)/release
all: ta strip sign

ta:
@xargo build --target $(TARGET) --release --verbose
@cargo build -Z build-std=std,panic_abort --target $(TARGET) --release

strip:
@$(OBJCOPY) --strip-unneeded $(OUT_DIR)/ta $(OUT_DIR)/stripped_ta
Expand Down
25 changes: 0 additions & 25 deletions examples/authentication-rs/ta/Xargo.toml

This file was deleted.

2 changes: 1 addition & 1 deletion examples/big_int-rs/ta/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ OUT_DIR := $(CURDIR)/target/$(TARGET)/release
all: ta strip sign

ta:
@xargo build --target $(TARGET) --release --verbose
@cargo build -Z build-std=std,panic_abort --target $(TARGET) --release

strip:
@$(OBJCOPY) --strip-unneeded $(OUT_DIR)/ta $(OUT_DIR)/stripped_ta
Expand Down
25 changes: 0 additions & 25 deletions examples/big_int-rs/ta/Xargo.toml

This file was deleted.

2 changes: 1 addition & 1 deletion examples/diffie_hellman-rs/ta/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ OUT_DIR := $(CURDIR)/target/$(TARGET)/release
all: ta strip sign

ta:
@xargo build --target $(TARGET) --release --verbose
@cargo build -Z build-std=std,panic_abort --target $(TARGET) --release

strip:
@$(OBJCOPY) --strip-unneeded $(OUT_DIR)/ta $(OUT_DIR)/stripped_ta
Expand Down
25 changes: 0 additions & 25 deletions examples/diffie_hellman-rs/ta/Xargo.toml

This file was deleted.

2 changes: 1 addition & 1 deletion examples/digest-rs/ta/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ OUT_DIR := $(CURDIR)/target/$(TARGET)/release
all: ta strip sign

ta:
@xargo build --target $(TARGET) --release --verbose
@cargo build -Z build-std=std,panic_abort --target $(TARGET) --release

strip:
@$(OBJCOPY) --strip-unneeded $(OUT_DIR)/ta $(OUT_DIR)/stripped_ta
Expand Down
25 changes: 0 additions & 25 deletions examples/digest-rs/ta/Xargo.toml

This file was deleted.

2 changes: 1 addition & 1 deletion examples/hello_world-rs/ta/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ OUT_DIR := $(CURDIR)/target/$(TARGET)/release
all: ta strip sign

ta:
@xargo build --target $(TARGET) --release --verbose
@cargo build -Z build-std=std,panic_abort --target $(TARGET) --release

strip:
@$(OBJCOPY) --strip-unneeded $(OUT_DIR)/ta $(OUT_DIR)/stripped_ta
Expand Down
25 changes: 0 additions & 25 deletions examples/hello_world-rs/ta/Xargo.toml

This file was deleted.

2 changes: 1 addition & 1 deletion examples/hotp-rs/ta/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ OUT_DIR := $(CURDIR)/target/$(TARGET)/release
all: ta strip sign

ta:
@xargo build --target $(TARGET) --release --verbose
@cargo build -Z build-std=std,panic_abort --target $(TARGET) --release

strip:
@$(OBJCOPY) --strip-unneeded $(OUT_DIR)/ta $(OUT_DIR)/stripped_ta
Expand Down
25 changes: 0 additions & 25 deletions examples/hotp-rs/ta/Xargo.toml

This file was deleted.

2 changes: 1 addition & 1 deletion examples/message_passing_interface-rs/ta/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ OUT_DIR := $(CURDIR)/target/$(TARGET)/release
all: ta strip sign

ta:
@xargo build --target $(TARGET) --release --verbose
@cargo build -Z build-std=std,panic_abort --target $(TARGET) --release

strip:
@$(OBJCOPY) --strip-unneeded $(OUT_DIR)/ta $(OUT_DIR)/stripped_ta
Expand Down
25 changes: 0 additions & 25 deletions examples/message_passing_interface-rs/ta/Xargo.toml

This file was deleted.

2 changes: 1 addition & 1 deletion examples/random-rs/ta/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ OUT_DIR := $(CURDIR)/target/$(TARGET)/release
all: ta strip sign

ta:
@xargo build --target $(TARGET) --release --verbose
@cargo build -Z build-std=std,panic_abort --target $(TARGET) --release

strip:
@$(OBJCOPY) --strip-unneeded $(OUT_DIR)/ta $(OUT_DIR)/stripped_ta
Expand Down
25 changes: 0 additions & 25 deletions examples/random-rs/ta/Xargo.toml

This file was deleted.

2 changes: 1 addition & 1 deletion examples/secure_storage-rs/ta/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ OUT_DIR := $(CURDIR)/target/$(TARGET)/release
all: ta strip sign

ta:
@xargo build --target $(TARGET) --release --verbose
@cargo build -Z build-std=std,panic_abort --target $(TARGET) --release

strip:
@$(OBJCOPY) --strip-unneeded $(OUT_DIR)/ta $(OUT_DIR)/stripped_ta
Expand Down
25 changes: 0 additions & 25 deletions examples/secure_storage-rs/ta/Xargo.toml

This file was deleted.

Loading

0 comments on commit fb8022c

Please sign in to comment.