2021-12-05 00:52:33 +01:00
|
|
|
PKG_NAME=elf2uf2
|
|
|
|
PKG_URL=https://github.com/raspberrypi/pico-sdk.git
|
|
|
|
PKG_VERSION=2062372d203b372849d573f252cf7c6dc2800c0a
|
|
|
|
PKG_LICENSE=BSD-3-Clause
|
2023-05-12 23:19:43 +02:00
|
|
|
PKG_BUILD_DIR=$(PKG_SOURCE_DIR)/tools/elf2uf2
|
2021-12-05 00:52:33 +01:00
|
|
|
|
|
|
|
include $(RIOTBASE)/pkg/pkg.mk
|
|
|
|
|
|
|
|
all: $(CURDIR)/elf2uf2
|
|
|
|
|
2023-05-12 23:19:43 +02:00
|
|
|
$(CURDIR)/elf2uf2: $(PKG_PREPARED)
|
|
|
|
@env -i PATH="$(PATH)" cmake $(PKG_SOURCE_DIR)/tools/elf2uf2/CMakeLists.txt -B"$(PKG_BUILD_DIR)"
|
2021-12-05 00:52:33 +01:00
|
|
|
"$(MAKE)" -C "$(PKG_SOURCE_DIR)/tools/elf2uf2"
|
2023-05-12 23:19:43 +02:00
|
|
|
cp $(PKG_BUILD_DIR)/elf2uf2 .
|