Skip to content

Commit

Permalink
♻ Example ELF build script
Browse files Browse the repository at this point in the history
  • Loading branch information
clabby committed Aug 3, 2024
1 parent 4ebb2b9 commit 4366833
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 21 deletions.
21 changes: 0 additions & 21 deletions example/Makefile

This file was deleted.

Binary file modified example/bin/claim.elf
Binary file not shown.
Binary file modified example/bin/hello.elf
Binary file not shown.
9 changes: 9 additions & 0 deletions example/justfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
elf:
#!/bin/bash
for d in */ ; do
myarray=(`find $d -maxdepth 1 -name "*.elf"`)
if [ ${#myarray[@]} -eq 0 ]; then
(cd $d && GOOS=linux GOARCH=mips64 GOMIPS64=softfloat GODEBUG=gcstoptheworld=1 go build -o ../bin/$(basename $d).elf .)
echo "Built $(basename $d).elf"
fi
done

0 comments on commit 4366833

Please sign in to comment.