rename build_paths to something more standard

tmp/arduino-cli-pre-rebase
Jesse Vincent 4 years ago
parent 5a71ea4524
commit 36f9582135
No known key found for this signature in database
GPG Key ID: CC228463465E40BC

@ -136,7 +136,7 @@ _set_executable_paths() {
: "${AVR_SIZE:=${COMPILER_PATH}/${COMPILER_PREFIX}size}"
}
_build_paths() {
_set_build_paths() {
# We need that echo because we\re piping to cksum
# shellcheck disable=SC2005
SKETCH_IDENTIFIER="$(echo "${SKETCH_FILE_PATH}" | cksum | cut -d ' ' -f 1)-${SKETCH_FILE_NAME}"
@ -227,7 +227,7 @@ _prompt_before_flashing() {
flash() {
_find_sketch
_ensure_sketch_found
_build_paths
_set_build_paths
_set_executable_paths
@ -256,7 +256,7 @@ flash() {
hex_with_bootloader() {
_find_sketch
_ensure_sketch_found
_build_paths
_set_build_paths
_set_executable_paths
: "${BOOTLOADER_PATH:=$(_arduino_prop 'runtime.platform.path')/bootloaders/$(_arduino_prop 'bootloader.file')}"
@ -278,7 +278,7 @@ hex_with_bootloader() {
compile() {
_find_sketch
_ensure_sketch_found
_build_paths
_set_build_paths
_set_executable_paths
install -d "${OUTPUT_PATH}"
@ -342,7 +342,7 @@ compile() {
size_map() {
_find_sketch
_ensure_sketch_found
_build_paths
_set_build_paths
_set_executable_paths
"${AVR_NM}" --size-sort -C -r -l -t decimal "${ELF_FILE_PATH}"
}
@ -350,7 +350,7 @@ size_map() {
disassemble() {
_find_sketch
_ensure_sketch_found
_build_paths
_set_build_paths
_set_executable_paths
"${AVR_OBJDUMP}" -C -d "${ELF_FILE_PATH}"
}
@ -358,7 +358,7 @@ disassemble() {
clean() {
_find_sketch
_ensure_sketch_found
_build_paths
_set_build_paths
_set_executable_paths
if [ -d "$OUTPUT_PATH" ]; then
rm -rf -- "${OUTPUT_PATH}"

Loading…
Cancel
Save