Skip to content

feat: unified maple_upload and dfu_util scripts (remove maple_loader.jar usage) #89

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 9 commits into from
Feb 20, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -33,4 +33,5 @@ __pycache__/
!.vscode/tasks.json
!.vscode/launch.json
!.vscode/extensions.json
*.code-workspace
*.code-workspace
*.o
40 changes: 40 additions & 0 deletions dfu-util.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
#!/bin/sh -
#
# Use the correct dfu-util program based on the architecture
#

# Get the directory where the script is running.
DIR=$(cd "$(dirname "$0")" && pwd)
UNAME_OS="$(uname -s)"
case "${UNAME_OS}" in
Linux*)
# Choose dfu program by arch
if [ "$(uname -m)" = "x86_64" ]; then
DFU_UTIL=${DIR}/linux/dfu-util_x86_64/dfu-util
else
DFU_UTIL=${DIR}/linux/dfu-util/dfu-util
fi
;;
Darwin*)
DFU_UTIL=${DIR}/macosx/dfu-util/dfu-util
if [ ! -x "${DFU_UTIL}" ]; then
DFU_UTIL=/opt/local/bin/dfu-util
fi
;;
Windows*)
DFU_UTIL=${DIR}/win/dfu-util.exe
;;
*)
echo "Unknown host OS: ${UNAME_OS}."
exit 1
;;
esac

# Not found!
if [ ! -x "${DFU_UTIL}" ]; then
echo "$0: error: cannot find ${DFU_UTIL}" >&2
exit 2
fi

# Pass all parameters through
"${DFU_UTIL}" "$@"
23 changes: 0 additions & 23 deletions linux/dfu-util.sh

This file was deleted.

64 changes: 0 additions & 64 deletions linux/maple_upload.sh

This file was deleted.

15 changes: 0 additions & 15 deletions linux/src/build_dfu-util.sh

This file was deleted.

30 changes: 0 additions & 30 deletions linux/src/dfu-util/AUTHORS

This file was deleted.

Loading