Skip to content

Commit

Permalink
dist/tools: fix compilation of elf2uf2
Browse files Browse the repository at this point in the history
  • Loading branch information
fabian18 committed May 21, 2023
1 parent 0fac5e4 commit d80b35e
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions dist/tools/elf2uf2/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,13 @@ PKG_NAME=elf2uf2
PKG_URL=https://github.com/raspberrypi/pico-sdk.git
PKG_VERSION=2062372d203b372849d573f252cf7c6dc2800c0a
PKG_LICENSE=BSD-3-Clause
PKG_BUILD_DIR=$(PKG_SOURCE_DIR)/tools/elf2uf2

include $(RIOTBASE)/pkg/pkg.mk

all: $(CURDIR)/elf2uf2

$(CURDIR)/elf2uf2:
@env -i PATH="$(PATH)" cmake $(PKG_SOURCE_DIR)/tools/elf2uf2/CMakeLists.txt
$(CURDIR)/elf2uf2: $(PKG_PREPARED)
@env -i PATH="$(PATH)" cmake $(PKG_SOURCE_DIR)/tools/elf2uf2/CMakeLists.txt -B"$(PKG_BUILD_DIR)"
"$(MAKE)" -C "$(PKG_SOURCE_DIR)/tools/elf2uf2"
cp $(PKG_SOURCE_DIR)/tools/elf2uf2/elf2uf2 .
cp $(PKG_BUILD_DIR)/elf2uf2 .

0 comments on commit d80b35e

Please sign in to comment.