summaryrefslogtreecommitdiff
path: root/filesystems/mkspiffs
diff options
context:
space:
mode:
authorbouyer <bouyer@pkgsrc.org>2019-10-07 10:13:16 +0000
committerbouyer <bouyer@pkgsrc.org>2019-10-07 10:13:16 +0000
commit8a37f990d93d05e1bb03ceeb572c25481de53170 (patch)
treebfb084e43406181c2550d00a4806e0b8adce7beb /filesystems/mkspiffs
parent9db9a4a74a876e74b9b2560f93b535e2642492d6 (diff)
downloadpkgsrc-8a37f990d93d05e1bb03ceeb572c25481de53170.tar.gz
Add mkspiffs 0.2.3
Tool to build and unpack SPIFFS images. This package provides binaries built with the following configuration: mkspiffs-arduino-esp32: configuration compatible with the Espressif ESP32 arduino developpement environnement mkspiffs-arduino-esp8266: configuration compatible with the Espressif ESP8266 arduino developpement environnement mkspiffs-esp-idf: configuration compatible with the Espressif IoT Development Framework mkspiffs-generic: configuration using the default SPIFFS parameters
Diffstat (limited to 'filesystems/mkspiffs')
-rw-r--r--filesystems/mkspiffs/DESCR9
-rw-r--r--filesystems/mkspiffs/Makefile58
-rw-r--r--filesystems/mkspiffs/PLIST5
-rw-r--r--filesystems/mkspiffs/distinfo11
-rw-r--r--filesystems/mkspiffs/patches/patch-Makefile16
5 files changed, 99 insertions, 0 deletions
diff --git a/filesystems/mkspiffs/DESCR b/filesystems/mkspiffs/DESCR
new file mode 100644
index 00000000000..fae1e8334a0
--- /dev/null
+++ b/filesystems/mkspiffs/DESCR
@@ -0,0 +1,9 @@
+Tool to build and unpack SPIFFS images.
+This package provides binaries built with the following configuration:
+mkspiffs-arduino-esp32: configuration compatible with the Espressif ESP32
+ arduino developpement environnement
+mkspiffs-arduino-esp8266: configuration compatible with the Espressif ESP8266
+ arduino developpement environnement
+mkspiffs-esp-idf: configuration compatible with the Espressif IoT Development
+ Framework
+mkspiffs-generic: configuration using the default SPIFFS parameters
diff --git a/filesystems/mkspiffs/Makefile b/filesystems/mkspiffs/Makefile
new file mode 100644
index 00000000000..86b19bf3b22
--- /dev/null
+++ b/filesystems/mkspiffs/Makefile
@@ -0,0 +1,58 @@
+# $NetBSD: Makefile,v 1.1 2019/10/07 10:13:16 bouyer Exp $
+
+VERSION= 0.2.3
+DISTNAME= mkspiffs-${VERSION}
+CATEGORIES= filesystems
+MASTER_SITES= ${MASTER_SITE_GITHUB:=igrr/}
+GITHUB_TAG= ${VERSION}
+
+DISTFILES= ${DEFAULT_DISTFILES}
+
+SPIFFS= spiffs-f5e26c4e933189593a71c6b82cda381a7b21e41c
+DISTFILES+= ${SPIFFS}.tar.gz
+SITES.spiffs-f5e26c4e933189593a71c6b82cda381a7b21e41c.tar.gz= -https://github.com/pellepl/spiffs/archive/f5e26c4e933189593a71c6b82cda381a7b21e41c.tar.gz
+
+MAINTAINER= bouyer@NetBSD.org
+HOMEPAGE= https://github.com/igrr/mkspiffs
+COMMENT= Tool to build and unpack SPIFFS images
+LICENSE= mit
+
+USE_TOOLS+= gmake
+USE_LANGUAGES= c c++
+
+MAKE_ENV+= TARGET_OS=NetBSD VERSION=${VERSION}
+
+INSTALLATION_DIRS= bin
+
+post-extract:
+ ${RM} -r ${WRKSRC}/spiffs
+ ${CP} -r ${WRKDIR}/${SPIFFS} ${WRKSRC}/spiffs
+
+do-build:
+ cd ${WRKSRC} && \
+ env ${MAKE_ENV} ${MAKE_PROGRAM} ${BUILD_MAKE_FLAGS} dist
+ cd ${WRKSRC} && \
+ env ${MAKE_ENV} ${MAKE_PROGRAM} ${BUILD_MAKE_FLAGS} clean
+ cd ${WRKSRC} && \
+ env ${MAKE_ENV} ${MAKE_PROGRAM} ${BUILD_MAKE_FLAGS} dist \
+ BUILD_CONFIG_NAME="-arduino-esp8266" \
+ CPPFLAGS="${CPPFLAGS} -DSPIFFS_USE_MAGIC_LENGTH=0 -DSPIFFS_ALIGNED_OBJECT_INDEX_TABLES=1"
+ cd ${WRKSRC} && \
+ env ${MAKE_ENV} ${MAKE_PROGRAM} ${BUILD_MAKE_FLAGS} clean
+ cd ${WRKSRC} && \
+ env ${MAKE_ENV} ${MAKE_PROGRAM} ${BUILD_MAKE_FLAGS} dist \
+ BUILD_CONFIG_NAME="-arduino-esp32" \
+ CPPFLAGS="${CPPFLAGS} -DSPIFFS_OBJ_META_LEN=4"
+ cd ${WRKSRC} && \
+ env ${MAKE_ENV} ${MAKE_PROGRAM} ${BUILD_MAKE_FLAGS} clean
+ cd ${WRKSRC} && \
+ env ${MAKE_ENV} ${MAKE_PROGRAM} ${BUILD_MAKE_FLAGS} dist \
+ BUILD_CONFIG_NAME="-esp-idf" \
+ CPPFLAGS="${CPPFLAGS} -DSPIFFS_OBJ_META_LEN=4"
+
+do-install:
+.for i in arduino-esp32 arduino-esp8266 esp-idf generic
+ ${INSTALL_PROGRAM} ${WRKSRC}/mkspiffs-${VERSION}-$i-${OPSYS}/mkspiffs ${DESTDIR}${PREFIX}/bin/mkspiffs-$i
+.endfor
+
+.include "../../mk/bsd.pkg.mk"
diff --git a/filesystems/mkspiffs/PLIST b/filesystems/mkspiffs/PLIST
new file mode 100644
index 00000000000..6e48b47cdc1
--- /dev/null
+++ b/filesystems/mkspiffs/PLIST
@@ -0,0 +1,5 @@
+@comment $NetBSD: PLIST,v 1.1 2019/10/07 10:13:16 bouyer Exp $
+bin/mkspiffs-arduino-esp32
+bin/mkspiffs-arduino-esp8266
+bin/mkspiffs-esp-idf
+bin/mkspiffs-generic
diff --git a/filesystems/mkspiffs/distinfo b/filesystems/mkspiffs/distinfo
new file mode 100644
index 00000000000..ab28e136d88
--- /dev/null
+++ b/filesystems/mkspiffs/distinfo
@@ -0,0 +1,11 @@
+$NetBSD: distinfo,v 1.1 2019/10/07 10:13:16 bouyer Exp $
+
+SHA1 (mkspiffs-0.2.3.tar.gz) = 273a30ea9132bb3493b60aefa04c62855834a3e7
+RMD160 (mkspiffs-0.2.3.tar.gz) = ee3201759d05094b870c5fe2db6a42c82351c63f
+SHA512 (mkspiffs-0.2.3.tar.gz) = 85ad7005440ae9788c5ba4c948c63546d1bffd68aad0f5ac942d80f260e8b260a54df8050d1b877ae46baaf44ce95b07fcd76968a667e914e1c6a9b043b069bd
+Size (mkspiffs-0.2.3.tar.gz) = 41903 bytes
+SHA1 (spiffs-f5e26c4e933189593a71c6b82cda381a7b21e41c.tar.gz) = 0e3180fe474ca09ee30651a2b8d7aad378daf0ae
+RMD160 (spiffs-f5e26c4e933189593a71c6b82cda381a7b21e41c.tar.gz) = 0b967ce77389f51df6b5b08489738a61c8aaa883
+SHA512 (spiffs-f5e26c4e933189593a71c6b82cda381a7b21e41c.tar.gz) = 242cf08fbd034912bd7f25295f08f2713b2f0339f1cd05994db5ade4c4d4ba40941e0d304db97a89916696d0a69f95505dfb9f1df8c2cec040f15bce988b79db
+Size (spiffs-f5e26c4e933189593a71c6b82cda381a7b21e41c.tar.gz) = 94267 bytes
+SHA1 (patch-Makefile) = 45ea09b7f3ebfe6c96036393e24d3f75501d5188
diff --git a/filesystems/mkspiffs/patches/patch-Makefile b/filesystems/mkspiffs/patches/patch-Makefile
new file mode 100644
index 00000000000..0e562bffd92
--- /dev/null
+++ b/filesystems/mkspiffs/patches/patch-Makefile
@@ -0,0 +1,16 @@
+$NetBSD: patch-Makefile,v 1.1 2019/10/07 10:13:16 bouyer Exp $
+
+don't rely on git to find the version
+
+--- Makefile.orig 2019-10-02 23:49:32.283894050 +0200
++++ Makefile 2019-10-02 23:50:23.808967927 +0200
+@@ -53,8 +53,7 @@
+ endif
+
+
+-VERSION ?= $(shell git describe --always)
+-SPIFFS_VERSION := $(shell git -C spiffs describe --tags || echo "unknown")
++SPIFFS_VERSION := $(VERSION)
+ BUILD_CONFIG_NAME ?= -generic
+
+ OBJ := main.o \