Skip to content

Commit

Permalink
Remove do.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
mvines committed Oct 22, 2020
1 parent 07a853d commit 61be155
Show file tree
Hide file tree
Showing 28 changed files with 10 additions and 159 deletions.
10 changes: 5 additions & 5 deletions programs/bpf/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -94,16 +94,16 @@ fn main() {
program
);
assert!(Command::new("bash")
.current_dir("rust")
.args(&["./do.sh", "build", program])
.current_dir(format!("rust/{}", program))
.args(&["../../../../cargo-build-bpf"])
.status()
.expect("Error calling do.sh from build.rs")
.expect("Error calling cargo-build-bpf from build.rs")
.success());
let src = format!(
"target/bpfel-unknown-unknown/release/solana_bpf_rust_{}.so",
"rust/{0}/solana_bpf_rust_{0}.so",
program,
);
assert!(Command::new("cp")
assert!(Command::new("mv")
.arg(&src)
.arg(&install_dir)
.status()
Expand Down
1 change: 0 additions & 1 deletion programs/bpf/rust/128bit/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@

# Note: This crate must be built using do.sh

[package]
name = "solana-bpf-rust-128bit"
Expand Down
1 change: 0 additions & 1 deletion programs/bpf/rust/128bit_dep/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@

# Note: This crate must be built using do.sh

[package]
name = "solana-bpf-rust-128bit-dep"
Expand Down
1 change: 0 additions & 1 deletion programs/bpf/rust/alloc/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@

# Note: This crate must be built using do.sh

[package]
name = "solana-bpf-rust-alloc"
Expand Down
1 change: 0 additions & 1 deletion programs/bpf/rust/call_depth/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@

# Note: This crate must be built using do.sh

[package]
name = "solana-bpf-rust-call-depth"
Expand Down
1 change: 0 additions & 1 deletion programs/bpf/rust/custom_heap/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@

# Note: This crate must be built using do.sh

[package]
name = "solana-bpf-rust-custom-heap"
Expand Down
1 change: 0 additions & 1 deletion programs/bpf/rust/dep_crate/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@

# Note: This crate must be built using do.sh

[package]
name = "solana-bpf-rust-dep-crate"
Expand Down
1 change: 0 additions & 1 deletion programs/bpf/rust/deprecated_loader/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@

# Note: This crate must be built using do.sh

[package]
name = "solana-bpf-rust-deprecated_loader"
Expand Down
123 changes: 0 additions & 123 deletions programs/bpf/rust/do.sh

This file was deleted.

1 change: 0 additions & 1 deletion programs/bpf/rust/dup_accounts/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@

# Note: This crate must be built using do.sh

[package]
name = "solana-bpf-rust-dup-accounts"
Expand Down
1 change: 0 additions & 1 deletion programs/bpf/rust/error_handling/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@

# Note: This crate must be built using do.sh

[package]
name = "solana-bpf-rust-error-handling"
Expand Down
1 change: 0 additions & 1 deletion programs/bpf/rust/external_spend/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@

# Note: This crate must be built using do.sh

[package]
name = "solana-bpf-rust-external-spend"
Expand Down
1 change: 0 additions & 1 deletion programs/bpf/rust/instruction_introspection/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@

# Note: This crate must be built using do.sh

[package]
name = "solana-bpf-rust-instruction-introspection"
Expand Down
1 change: 0 additions & 1 deletion programs/bpf/rust/invoke/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@

# Note: This crate must be built using do.sh

[package]
name = "solana-bpf-rust-invoke"
Expand Down
1 change: 0 additions & 1 deletion programs/bpf/rust/invoked/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@

# Note: This crate must be built using do.sh

[package]
name = "solana-bpf-rust-invoked"
Expand Down
1 change: 0 additions & 1 deletion programs/bpf/rust/iter/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@

# Note: This crate must be built using do.sh

[package]
name = "solana-bpf-rust-iter"
Expand Down
1 change: 0 additions & 1 deletion programs/bpf/rust/many_args/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@

# Note: This crate must be built using do.sh

[package]
name = "solana-bpf-rust-many-args"
Expand Down
1 change: 0 additions & 1 deletion programs/bpf/rust/many_args_dep/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@

# Note: This crate must be built using do.sh

[package]
name = "solana-bpf-rust-many-args-dep"
Expand Down
1 change: 0 additions & 1 deletion programs/bpf/rust/noop/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@

# Note: This crate must be built using do.sh

[package]
name = "solana-bpf-rust-noop"
Expand Down
1 change: 0 additions & 1 deletion programs/bpf/rust/panic/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@

# Note: This crate must be built using do.sh

[package]
name = "solana-bpf-rust-panic"
Expand Down
1 change: 0 additions & 1 deletion programs/bpf/rust/param_passing/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@

# Note: This crate must be built using do.sh

[package]
name = "solana-bpf-rust-param-passing"
Expand Down
1 change: 0 additions & 1 deletion programs/bpf/rust/param_passing_dep/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@

# Note: This crate must be built using do.sh

[package]
name = "solana-bpf-rust-param-passing-dep"
Expand Down
1 change: 0 additions & 1 deletion programs/bpf/rust/rand/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@

# Note: This crate must be built using do.sh

[package]
name = "solana-bpf-rust-rand"
Expand Down
1 change: 0 additions & 1 deletion programs/bpf/rust/ristretto/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@

# Note: This crate must be built using do.sh

[package]
name = "solana-bpf-rust-ristretto"
Expand Down
1 change: 0 additions & 1 deletion programs/bpf/rust/sanity/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@

# Note: This crate must be built using do.sh

[package]
name = "solana-bpf-rust-sanity"
Expand Down
1 change: 0 additions & 1 deletion programs/bpf/rust/sha256/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@

# Note: This crate must be built using do.sh

[package]
name = "solana-bpf-rust-sha256"
Expand Down
1 change: 0 additions & 1 deletion programs/bpf/rust/sysval/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@

# Note: This crate must be built using do.sh

[package]
name = "solana-bpf-rust-sysval"
Expand Down
11 changes: 5 additions & 6 deletions sdk/bpf/scripts/bpf-trace.py
Original file line number Diff line number Diff line change
@@ -1,14 +1,13 @@
#!/usr/bin/env python

#
#
# Prints a BPF program call trace with instruction counts for each call
#
# This script requires a dump file containing the instruction dump of the ELF
# and a trace file that contains the trace output of the BPF VM
#
# You can create the dump file with do.sh:
# $ do.sh dump <project>
# Or directly:
# You can create the dump file by passing the --dump flag to `cargo build-bpf`,
# or directly:
# $ llvm-objdump -print-imm-hex --source --disassemble <ELF file path>
#
# You can create the trace file by running the program and setting RUST_LOG:
Expand Down Expand Up @@ -53,7 +52,7 @@ def parse_line(rxs, line):
sys.exit(' Usage: ' + sys.argv[0] + ' dump_file trace_file')
dumppath = sys.argv[1]
tracepath = sys.argv[2]

# parse the dump file to create a map
# of instruction numbers to symbols
symbols = {}
Expand All @@ -76,7 +75,7 @@ def parse_line(rxs, line):
line = file_object.readline()
if len(symbols) == 0:
sys.exit("Error: No instruction dump in: " + dumppath)

# parse the trace file to build a call list
calls = [] # all the calls made
with open(tracepath, 'r') as file_object:
Expand Down

0 comments on commit 61be155

Please sign in to comment.