Skip to content

Commit

Permalink
Replace dfu-convert.c by hex2dfu.c
Browse files Browse the repository at this point in the history
  • Loading branch information
bvernoux committed Jun 12, 2024
1 parent 9f99167 commit 43ce1d4
Show file tree
Hide file tree
Showing 5 changed files with 585 additions and 274 deletions.
11 changes: 2 additions & 9 deletions src/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,6 @@
.SUFFIXES: # Delete the default suffixes
MAKEFLAGS += --no-builtin-rules

ifeq ($(OS), Windows_NT)
PYTHON = python
else ifeq ($(shell which python3),)
PYTHON = python
else
PYTHON = python3
endif

# Set CPU target (default STM32F4XX)
export STM32F4XX ?= 1

Expand Down Expand Up @@ -345,7 +337,8 @@ FORCE:

%.dfu: %.hex $(LDSCRIPT)
$(OUT_LOG) echo Creating $@
$(OUT_CMD) build-scripts/dfu-convert -r $(FW_REVISION) -i $< $@
$(OUT_LOG) echo ./build-scripts/hex2dfu -l ST... -r $(FW_REVISION) -i $< -o $@
$(OUT_CMD) ./build-scripts/hex2dfu -l ST... -r $(FW_REVISION) -i $< -o $@

# This rule hook is defined in the ChibiOS build system
PRE_MAKE_ALL_RULE_HOOK: ./common/hydrafw_version.hdr
Expand Down
4 changes: 2 additions & 2 deletions src/build-scripts/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@ CC = gcc
CFLAGS = -Wall -Wextra -std=c99

# Source files
SRCS = dfu-convert.c
SRCS = hex2dfu.c

# Output executable
TARGET = dfu-convert
TARGET = hex2dfu

# Default target
all: $(TARGET)
Expand Down
263 changes: 0 additions & 263 deletions src/build-scripts/dfu-convert.c

This file was deleted.

Loading

0 comments on commit 43ce1d4

Please sign in to comment.