added my Recipes
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
SUMMARY = "read and write exFAT driver for FUSE"
|
||||
DESCRIPTION = "fuse-exfat is a read and write driver implementing the \
|
||||
extended file allocation table as a filesystem in userspace. A mounthelper \
|
||||
is provided under the name mount.exfat-fuse. \
|
||||
"
|
||||
HOMEPAGE = "https://github.com/relan/exfat"
|
||||
SECTION = "universe/otherosfs"
|
||||
LICENSE = "GPL-2.0-or-later"
|
||||
LIC_FILES_CHKSUM = "file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263"
|
||||
SRC_URI = "https://github.com/relan/exfat/releases/download/v${PV}/${BP}.tar.gz"
|
||||
|
||||
UPSTREAM_CHECK_URI = "https://github.com/relan/exfat/releases"
|
||||
|
||||
DEPENDS = "fuse virtual/libc"
|
||||
RRECOMMENDS:${PN} = "util-linux-mount"
|
||||
|
||||
inherit autotools pkgconfig
|
||||
|
||||
SRC_URI[md5sum] = "846b8c36bfa4684719f9e08e9d3a6bff"
|
||||
SRC_URI[sha256sum] = "07652136064da5e4d32df5555f88c138ffa4835a23b88a5bae2015f21006e0d3"
|
||||
|
||||
EXTRA_OECONF += "sbindir=${base_sbindir}"
|
||||
@@ -0,0 +1,22 @@
|
||||
SUMMARY = "This is a filesystem client based on the HTTP using FUSE"
|
||||
HOMEPAGE = "http://httpfs.sourceforge.net"
|
||||
LICENSE = "GPL-2.0-only"
|
||||
LIC_FILES_CHKSUM = "file://debian/copyright;md5=83f224c5182f148ec92e0b9f84b3c6c7"
|
||||
|
||||
inherit pkgconfig
|
||||
|
||||
DEPENDS += "fuse"
|
||||
RDEPENDS:${PN} += "fuse"
|
||||
|
||||
SRC_URI += "${SOURCEFORGE_MIRROR}/project/httpfs/httpfs2/httpfs2-${PV}.tar.gz"
|
||||
SRC_URI[sha256sum] = "01cb4bb38deb344f540da6f1464dc7edbdeb51213ad810b8c9c282c1e17e0fc1"
|
||||
|
||||
S = "${WORKDIR}/httpfs2-${PV}"
|
||||
|
||||
do_compile() {
|
||||
oe_runmake -C ${S} httpfs2
|
||||
}
|
||||
|
||||
do_install() {
|
||||
install -Dm 0755 ${S}/httpfs2 ${D}${bindir}/httpfs2
|
||||
}
|
||||
@@ -0,0 +1,13 @@
|
||||
SUMMARY = "A fuse filesystem to access the contents of an iPhone or iPod Touch"
|
||||
LICENSE = "LGPL-2.1-only"
|
||||
LIC_FILES_CHKSUM = "file://COPYING;md5=6ab17b41640564434dda85c06b7124f7"
|
||||
HOMEPAGE ="http://www.libimobiledevice.org/"
|
||||
|
||||
DEPENDS = "fuse libimobiledevice"
|
||||
|
||||
SRC_URI = "https://github.com/libimobiledevice/ifuse/releases/download/${PV}/ifuse-${PV}.tar.bz2"
|
||||
|
||||
SRC_URI[md5sum] = "cd31fbd0ea945b2ff1e39eac8d198fdd"
|
||||
SRC_URI[sha256sum] = "3550702ef94b2f5f16c7db91c6b3282b2aed1340665834a03e47458e09d98d87"
|
||||
|
||||
inherit autotools pkgconfig
|
||||
@@ -0,0 +1,7 @@
|
||||
SUMMARY = "meta-filesystems build test image"
|
||||
|
||||
IMAGE_INSTALL = "packagegroup-core-boot"
|
||||
|
||||
LICENSE = "MIT"
|
||||
|
||||
inherit core-image
|
||||
@@ -0,0 +1,3 @@
|
||||
require meta-filesystems-image-base.bb
|
||||
|
||||
IMAGE_INSTALL += "packagegroup-meta-filesystems"
|
||||
@@ -0,0 +1,46 @@
|
||||
From a322794f80f2718ae4463669c4b6ab2fbb15ffec Mon Sep 17 00:00:00 2001
|
||||
From: Khem Raj <raj.khem@gmail.com>
|
||||
Date: Wed, 5 Apr 2017 17:36:45 +0000
|
||||
Subject: [PATCH] Add $(LDFLAGS) to linker cmdline
|
||||
|
||||
Signed-off-by: Khem Raj <raj.khem@gmail.com>
|
||||
---
|
||||
Makefile | 4 ++--
|
||||
1 file changed, 2 insertions(+), 2 deletions(-)
|
||||
|
||||
Index: git/Makefile
|
||||
===================================================================
|
||||
--- git.orig/Makefile
|
||||
+++ git/Makefile
|
||||
@@ -14,7 +14,7 @@ ZLIB_O := crc32.o deflate.o adler32.o co
|
||||
CC := gcc
|
||||
CHECK := cgcc
|
||||
CHECKFLAGS := -D__CHECK_ENDIAN__
|
||||
-CFLAGS := -std=gnu99
|
||||
+CFLAGS += -std=gnu99
|
||||
CFLAGS += -Wall
|
||||
CFLAGS += -Os
|
||||
CFLAGS += -D_FILE_OFFSET_BITS=64
|
||||
@@ -28,18 +28,18 @@ $(ZLIB_O): /usr/lib/libz.a
|
||||
|
||||
ifdef S
|
||||
EXTRA_OBJ := $(ZLIB_O)
|
||||
-CFLAGS += -static
|
||||
+LDFLAGS += -static
|
||||
else
|
||||
-CFLAGS += -lz
|
||||
+LDFLAGS += -lz
|
||||
endif
|
||||
|
||||
mklogfs: $(EXTRA_OBJ)
|
||||
mklogfs: mkfs.o lib.o btree.o segment.o readwrite.o
|
||||
- $(CC) $(CFLAGS) -o $@ $^
|
||||
+ $(CC) $(CFLAGS) -o $@ $^ $(LDFLAGS)
|
||||
|
||||
logfsck: $(ZLIB_O)
|
||||
logfsck: fsck.o lib.o journal.o super.o
|
||||
- $(CC) $(CFLAGS) -o $@ $^
|
||||
+ $(CC) $(CFLAGS) -o $@ $^ $(LDFLAGS)
|
||||
|
||||
$(OBJ): kerncompat.h logfs.h logfs_abi.h btree.h
|
||||
|
||||
@@ -0,0 +1,135 @@
|
||||
From 5a8e26157d9642f022587cc1ca7525213c7a5379 Mon Sep 17 00:00:00 2001
|
||||
From: Khem Raj <raj.khem@gmail.com>
|
||||
Date: Thu, 13 Jul 2017 18:41:53 -0700
|
||||
Subject: [PATCH] btree: Avoid conflicts with libc namespace about setkey()
|
||||
|
||||
This issue is highlighted with musl mainly because the
|
||||
function signature from stdlib.h does not match the local
|
||||
static function
|
||||
|
||||
Signed-off-by: Khem Raj <raj.khem@gmail.com>
|
||||
---
|
||||
btree.c | 32 ++++++++++++++++----------------
|
||||
1 file changed, 16 insertions(+), 16 deletions(-)
|
||||
|
||||
diff --git a/btree.c b/btree.c
|
||||
index eddc33b..dd3fef9 100644
|
||||
--- a/btree.c
|
||||
+++ b/btree.c
|
||||
@@ -123,7 +123,7 @@ static unsigned long bval(struct btree_geo *geo, unsigned long *node, int n)
|
||||
return node[geo->no_pairs * geo->keylen + n];
|
||||
}
|
||||
|
||||
-static void setkey(struct btree_geo *geo, unsigned long *node,
|
||||
+static void _setkey(struct btree_geo *geo, unsigned long *node,
|
||||
unsigned long *key, int n)
|
||||
{
|
||||
longcpy(bkey(geo, node, n), key, geo->keylen);
|
||||
@@ -292,7 +292,7 @@ static unsigned long *find_level(struct btree_head *head, struct btree_geo *geo,
|
||||
/* FIXME: If the right-most key on higher levels is
|
||||
* always zero, this wouldn't be necessary. */
|
||||
i--;
|
||||
- setkey(geo, node, key, i);
|
||||
+ _setkey(geo, node, key, i);
|
||||
}
|
||||
BUG_ON(i < 0);
|
||||
node = (unsigned long *)bval(geo, node, i);
|
||||
@@ -311,7 +311,7 @@ static int btree_grow(struct btree_head *head, struct btree_geo *geo)
|
||||
return -ENOMEM;
|
||||
if (head->node) {
|
||||
fill = getfill(geo, head->node, 0);
|
||||
- setkey(geo, node, bkey(geo, head->node, fill - 1), 0);
|
||||
+ _setkey(geo, node, bkey(geo, head->node, fill - 1), 0);
|
||||
setval(geo, node, (unsigned long)head->node, 0);
|
||||
}
|
||||
head->node = node;
|
||||
@@ -342,16 +342,16 @@ static void steal_l(struct btree_head *head, struct btree_geo *geo, int level,
|
||||
|
||||
for (i = rfill - 1; i >= 0; i--) {
|
||||
/* Shift entries on the right */
|
||||
- setkey(geo, right, bkey(geo, right, i), i + no_entries);
|
||||
+ _setkey(geo, right, bkey(geo, right, i), i + no_entries);
|
||||
setval(geo, right, bval(geo, right, i), i + no_entries);
|
||||
}
|
||||
for (i = 0; i < no_entries; i++) {
|
||||
/* Move some entries to the right */
|
||||
- setkey(geo, right, bkey(geo, left, lfill - no_entries + i), i);
|
||||
+ _setkey(geo, right, bkey(geo, left, lfill - no_entries + i), i);
|
||||
setval(geo, right, bval(geo, left, lfill - no_entries + i), i);
|
||||
}
|
||||
/* Set parent key */
|
||||
- setkey(geo, parent, bkey(geo, left, lfill - no_entries - 1), lpos);
|
||||
+ _setkey(geo, parent, bkey(geo, left, lfill - no_entries - 1), lpos);
|
||||
for (i = lfill - no_entries; i < lfill; i++)
|
||||
clearpair(geo, left, i);
|
||||
}
|
||||
@@ -366,14 +366,14 @@ static void steal_r(struct btree_head *head, struct btree_geo *geo, int level,
|
||||
|
||||
for (i = 0; i < no_entries; i++) {
|
||||
/* Move some entries to the left */
|
||||
- setkey(geo, left, bkey(geo, right, i), lfill + i);
|
||||
+ _setkey(geo, left, bkey(geo, right, i), lfill + i);
|
||||
setval(geo, left, bval(geo, right, i), lfill + i);
|
||||
}
|
||||
/* Set parent key */
|
||||
- setkey(geo, parent, bkey(geo, right, no_entries - 1), lpos);
|
||||
+ _setkey(geo, parent, bkey(geo, right, no_entries - 1), lpos);
|
||||
/* Shift entries on the right */
|
||||
for ( ; i < rfill; i++) {
|
||||
- setkey(geo, right, bkey(geo, right, i), i - no_entries);
|
||||
+ _setkey(geo, right, bkey(geo, right, i), i - no_entries);
|
||||
setval(geo, right, bval(geo, right, i), i - no_entries);
|
||||
}
|
||||
for (i = rfill - no_entries; i < rfill; i++)
|
||||
@@ -399,14 +399,14 @@ static int split(struct btree_head *head, struct btree_geo *geo,
|
||||
return err;
|
||||
}
|
||||
for (i = 0; i < fill / 2; i++) {
|
||||
- setkey(geo, new, bkey(geo, node, i), i);
|
||||
+ _setkey(geo, new, bkey(geo, node, i), i);
|
||||
setval(geo, new, bval(geo, node, i), i);
|
||||
- setkey(geo, node, bkey(geo, node, i + fill / 2), i);
|
||||
+ _setkey(geo, node, bkey(geo, node, i + fill / 2), i);
|
||||
setval(geo, node, bval(geo, node, i + fill / 2), i);
|
||||
clearpair(geo, node, i + fill / 2);
|
||||
}
|
||||
if (fill & 1) {
|
||||
- setkey(geo, node, bkey(geo, node, fill - 1), i);
|
||||
+ _setkey(geo, node, bkey(geo, node, fill - 1), i);
|
||||
setval(geo, node, bval(geo, node, fill - 1), i);
|
||||
clearpair(geo, node, fill - 1);
|
||||
}
|
||||
@@ -487,10 +487,10 @@ retry:
|
||||
|
||||
/* shift and insert */
|
||||
for (i = fill; i > pos; i--) {
|
||||
- setkey(geo, node, bkey(geo, node, i - 1), i);
|
||||
+ _setkey(geo, node, bkey(geo, node, i - 1), i);
|
||||
setval(geo, node, bval(geo, node, i - 1), i);
|
||||
}
|
||||
- setkey(geo, node, key, pos);
|
||||
+ _setkey(geo, node, key, pos);
|
||||
setval(geo, node, val, pos);
|
||||
|
||||
return 0;
|
||||
@@ -513,7 +513,7 @@ static void merge(struct btree_head *head, struct btree_geo *geo, int level,
|
||||
|
||||
for (i = 0; i < rfill; i++) {
|
||||
/* Move all entries to the left */
|
||||
- setkey(geo, left, bkey(geo, right, i), lfill + i);
|
||||
+ _setkey(geo, left, bkey(geo, right, i), lfill + i);
|
||||
setval(geo, left, bval(geo, right, i), lfill + i);
|
||||
}
|
||||
/* Exchange left and right child in parent */
|
||||
@@ -615,7 +615,7 @@ static void *btree_remove_level(struct btree_head *head, struct btree_geo *geo,
|
||||
|
||||
/* remove and shift */
|
||||
for (i = pos; i < fill - 1; i++) {
|
||||
- setkey(geo, node, bkey(geo, node, i + 1), i);
|
||||
+ _setkey(geo, node, bkey(geo, node, i + 1), i);
|
||||
setval(geo, node, bval(geo, node, i + 1), i);
|
||||
}
|
||||
clearpair(geo, node, fill - 1);
|
||||
--
|
||||
2.13.2
|
||||
|
||||
@@ -0,0 +1,24 @@
|
||||
From 3b02acbb3d5bc93422a6821ce47568633ef4ae5e Mon Sep 17 00:00:00 2001
|
||||
From: Khem Raj <raj.khem@gmail.com>
|
||||
Date: Sat, 11 Aug 2018 15:09:24 -0700
|
||||
Subject: [PATCH] include sys/sysmacros.h for major/minor definition
|
||||
|
||||
Upstream-Status: Pending
|
||||
|
||||
Signed-off-by: Khem Raj <raj.khem@gmail.com>
|
||||
---
|
||||
mkfs.c | 1 +
|
||||
1 file changed, 1 insertion(+)
|
||||
|
||||
diff --git a/mkfs.c b/mkfs.c
|
||||
index e612cbd..b6aa63d 100644
|
||||
--- a/mkfs.c
|
||||
+++ b/mkfs.c
|
||||
@@ -21,6 +21,7 @@
|
||||
#include <sys/ioctl.h>
|
||||
#include <sys/stat.h>
|
||||
#include <sys/types.h>
|
||||
+#include <sys/sysmacros.h>
|
||||
#define __USE_UNIX98
|
||||
#include <unistd.h>
|
||||
#include <zlib.h>
|
||||
@@ -0,0 +1,30 @@
|
||||
SUMMARY = "LogFS Programs: used to create LogFS file system"
|
||||
DESCRIPTION = "\
|
||||
LogFS is a Linux log-structured and scalable flash file system, intended \
|
||||
for use on large devices of flash memory. It is written by Jörn Engel and \
|
||||
in part sponsored by the CE Linux Forum. \
|
||||
LogFS is included in the mainline Linux kernel and was introduced in \
|
||||
version 2.6.34, released on May 16, 2010."
|
||||
HOMEPAGE = "https://github.com/prasad-joshi/logfsprogs"
|
||||
SECTION = "base"
|
||||
LICENSE = "GPL-2.0-only"
|
||||
LIC_FILES_CHKSUM = "file://fsck.c;md5=3859dc73da97909ff1d0125e88a27e02"
|
||||
DEPENDS = "zlib"
|
||||
|
||||
SRC_URI = "git://github.com/prasad-joshi/logfsprogs.git;branch=master;protocol=https \
|
||||
file://0001-Add-LDFLAGS-to-linker-cmdline.patch \
|
||||
file://0001-btree-Avoid-conflicts-with-libc-namespace-about-setk.patch \
|
||||
file://0001-include-sys-sysmacros.h-for-major-minor-definition.patch \
|
||||
"
|
||||
SRCREV = "45b72c81ce3c6fa17ca19bafc207ea93e76312f4"
|
||||
|
||||
S = "${WORKDIR}/git"
|
||||
|
||||
EXTRA_OEMAKE = "CC="${CC}" LD="${LD}" AR="${AR}""
|
||||
|
||||
do_install () {
|
||||
mkdir -p ${D}${bindir}
|
||||
install -m 0755 ${S}/mklogfs ${D}${bindir}/mklogfs
|
||||
}
|
||||
|
||||
BBCLASSEXTEND = "native nativesdk"
|
||||
@@ -0,0 +1,52 @@
|
||||
From 575591caf1e8972f765885679b76787ef92de77b Mon Sep 17 00:00:00 2001
|
||||
From: Hongxu Jia <hongxu.jia@windriver.com>
|
||||
Date: Mon, 24 Apr 2017 04:24:10 -0400
|
||||
Subject: [PATCH] libntfs-3g/Makefile.am: fix install failed while host dir not exist
|
||||
|
||||
While cross compiling, if the dir of "$(rootlibdir)" and "$(libdir)"
|
||||
(such as "/usr/lib64") do not exist on host system, the do_instal failed.
|
||||
-----------------------
|
||||
make[3]: Entering directory `tmp/work/core2-64-wrs-linux/ntfs-3g-ntfsprogs/2017.3.23-r0/build/libntfs-3g'
|
||||
if [ ! "/usr/lib64" -ef "/usr/lib64" ]; then \
|
||||
mv -f "tmp/work/core2-64-wrs-linux/ntfs-3g-ntfsprogs/2017.3.23-r0/image//usr/lib64"/libntfs-3g.so* \
|
||||
"tmp/work/core2-64-wrs-linux/ntfs-3g-ntfsprogs/2017.3.23-r0/image//usr/lib64"; \
|
||||
fi
|
||||
mv:...are the same file
|
||||
-----------------------
|
||||
|
||||
Use `=' rather than `-ef' to compare them, the cross compile does not
|
||||
care about host dir.
|
||||
|
||||
Upstream-Status: Pending
|
||||
|
||||
Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
|
||||
---
|
||||
libntfs-3g/Makefile.am | 6 +++---
|
||||
1 file changed, 3 insertions(+), 3 deletions(-)
|
||||
|
||||
diff --git a/libntfs-3g/Makefile.am b/libntfs-3g/Makefile.am
|
||||
index d6b150e..806109d 100644
|
||||
--- a/libntfs-3g/Makefile.am
|
||||
+++ b/libntfs-3g/Makefile.am
|
||||
@@ -59,15 +59,15 @@ endif
|
||||
# And create ldscript or symbolic link from /usr
|
||||
install-exec-hook: install-rootlibLTLIBRARIES
|
||||
if INSTALL_LIBRARY
|
||||
- if [ ! "$(rootlibdir)" -ef "$(libdir)" ]; then \
|
||||
+ if [ "$(rootlibdir)" != "$(libdir)" ]; then \
|
||||
$(MV) -f "$(DESTDIR)/$(libdir)"/libntfs-3g.so* "$(DESTDIR)/$(rootlibdir)"; \
|
||||
fi
|
||||
if GENERATE_LDSCRIPT
|
||||
- if [ ! "$(rootlibdir)" -ef "$(libdir)" ]; then \
|
||||
+ if [ "$(rootlibdir)" != "$(libdir)" ]; then \
|
||||
$(install_sh_PROGRAM) "libntfs-3g.script.so" "$(DESTDIR)/$(libdir)/libntfs-3g.so"; \
|
||||
fi
|
||||
else
|
||||
- if [ ! "$(rootlibdir)" -ef "$(libdir)" ]; then \
|
||||
+ if [ "$(rootlibdir)" != "$(libdir)" ]; then \
|
||||
$(LN_S) "$(rootlibdir)/libntfs-3g.so" "$(DESTDIR)/$(libdir)/libntfs-3g.so"; \
|
||||
fi
|
||||
endif
|
||||
--
|
||||
2.8.1
|
||||
|
||||
@@ -0,0 +1,53 @@
|
||||
DESCRIPTION = "The NTFS-3G driver is an open source, freely available NTFS driver for Linux with read and write support."
|
||||
HOMEPAGE = "http://www.ntfs-3g.org/"
|
||||
DEPENDS = "fuse libgcrypt"
|
||||
PROVIDES = "ntfsprogs ntfs-3g"
|
||||
LICENSE = "GPL-2.0-only & LGPL-2.0-only"
|
||||
LIC_FILES_CHKSUM = "file://COPYING;md5=59530bdf33659b29e73d4adb9f9f6552 \
|
||||
file://COPYING.LIB;md5=f30a9716ef3762e3467a2f62bf790f0a"
|
||||
|
||||
SRC_URI = "http://tuxera.com/opensource/ntfs-3g_ntfsprogs-${PV}.tgz \
|
||||
file://0001-libntfs-3g-Makefile.am-fix-install-failed-while-host.patch \
|
||||
"
|
||||
S = "${WORKDIR}/ntfs-3g_ntfsprogs-${PV}"
|
||||
SRC_URI[sha256sum] = "f20e36ee68074b845e3629e6bced4706ad053804cbaf062fbae60738f854170c"
|
||||
|
||||
UPSTREAM_CHECK_URI = "https://www.tuxera.com/community/open-source-ntfs-3g/"
|
||||
UPSTREAM_CHECK_REGEX = "ntfs-3g_ntfsprogs-(?P<pver>\d+(\.\d+)+)\.tgz"
|
||||
|
||||
inherit autotools pkgconfig
|
||||
|
||||
PACKAGECONFIG ??= ""
|
||||
PACKAGECONFIG[uuid] = "--with-uuid,--without-uuid,util-linux"
|
||||
|
||||
# required or it calls ldconfig at install step
|
||||
EXTRA_OEMAKE = "LDCONFIG=echo"
|
||||
|
||||
PACKAGES =+ "ntfs-3g ntfsprogs libntfs-3g"
|
||||
|
||||
FILES:ntfs-3g = "${base_sbindir}/*.ntfs-3g ${bindir}/ntfs-3g* ${base_sbindir}/mount.ntfs"
|
||||
RDEPENDS:ntfs-3g += "fuse"
|
||||
RRECOMMENDS:ntfs-3g = "util-linux-mount"
|
||||
|
||||
FILES:ntfsprogs = "${base_sbindir}/* ${bindir}/* ${sbindir}/*"
|
||||
FILES:libntfs-3g = "${libdir}/*${SOLIBS}"
|
||||
|
||||
do_install:append() {
|
||||
# Standard mount will execute the program /sbin/mount.TYPE when called.
|
||||
# Add a symbolic link to let mount find ntfs.
|
||||
ln -sf mount.ntfs-3g ${D}${base_sbindir}/mount.ntfs
|
||||
rmdir ${D}${libdir}/ntfs-3g
|
||||
|
||||
# Handle when usrmerge is in effect. Some files are installed to /sbin
|
||||
# regardless of the value of ${base_sbindir}.
|
||||
if [ "${base_sbindir}" != /sbin ] && [ -d ${D}/sbin ]; then
|
||||
mkdir -p ${D}${base_sbindir}
|
||||
mv ${D}/sbin/* ${D}${base_sbindir}
|
||||
rmdir ${D}/sbin
|
||||
fi
|
||||
}
|
||||
|
||||
# Satisfy the -dev runtime dependency
|
||||
ALLOW_EMPTY:${PN} = "1"
|
||||
|
||||
CVE_PRODUCT = "tuxera:ntfs-3g"
|
||||
@@ -0,0 +1,25 @@
|
||||
From dfeadd4eb43e829aafb0d10f611fa22ae81bfca4 Mon Sep 17 00:00:00 2001
|
||||
From: Zheng Ruoqin <zhengrq.fnst@cn.fujitsu.com>
|
||||
Date: Sun, 20 Oct 2019 17:00:45 +0900
|
||||
Subject: [PATCH] Add build rule for README.
|
||||
|
||||
fix do_configure error:
|
||||
Makefile.am: required file `./README' not found
|
||||
|
||||
Signed-off-by: Zheng Ruoqin <zhengrq.fnst@cn.fujitsu.com>
|
||||
---
|
||||
Makefile.am | 1 +
|
||||
1 file changed, 1 insertion(+)
|
||||
|
||||
diff --git a/Makefile.am b/Makefile.am
|
||||
index e0c4ad6..0449321 100644
|
||||
--- a/Makefile.am
|
||||
+++ b/Makefile.am
|
||||
@@ -35,3 +35,4 @@ rpmcvs: preparerpm
|
||||
@LN_S@ -f `pwd`/@PACKAGE@-@VERSION@.tar.gz ${RPMDIR}/SOURCES/@PACKAGE@-@VERSION@_cvs_`date +"%Y%m%d"`.tar.gz
|
||||
cd ${RPMDIR}/SPECS && @RPMBUILD@ -ba @PACKAGE@.spec --define 'cvs 1'
|
||||
|
||||
+README: README.md
|
||||
--
|
||||
2.7.4
|
||||
|
||||
@@ -0,0 +1,44 @@
|
||||
From a812202d22a2861318b8e39f1cd74cd222f8e76f Mon Sep 17 00:00:00 2001
|
||||
From: "Azamat H. Hackimov" <azamat.hackimov@gmail.com>
|
||||
Date: Tue, 9 Jun 2020 11:30:38 +0300
|
||||
Subject: [PATCH] Fix compilation with GCC10
|
||||
|
||||
Fixed compilation with -fno-common, which enabled in GCC 10 by default.
|
||||
See https://bugs.gentoo.org/707438.
|
||||
|
||||
Upstream-Status: Backport [https://github.com/owfs/owfs/pull/62]
|
||||
Signed-off-by: Khem Raj <raj.khem@gmail.com>
|
||||
---
|
||||
module/owserver/src/c/owserver.c | 2 ++
|
||||
module/owserver/src/include/owserver.h | 2 +-
|
||||
2 files changed, 3 insertions(+), 1 deletion(-)
|
||||
|
||||
diff --git a/module/owserver/src/c/owserver.c b/module/owserver/src/c/owserver.c
|
||||
index db29988e..2ed29161 100644
|
||||
--- a/module/owserver/src/c/owserver.c
|
||||
+++ b/module/owserver/src/c/owserver.c
|
||||
@@ -36,6 +36,8 @@
|
||||
|
||||
#include "owserver.h"
|
||||
|
||||
+pthread_mutex_t persistence_mutex ;
|
||||
+
|
||||
/* --- Prototypes ------------ */
|
||||
static void SetupAntiloop(int argc, char **argv);
|
||||
|
||||
diff --git a/module/owserver/src/include/owserver.h b/module/owserver/src/include/owserver.h
|
||||
index 8be582f0..a257ed02 100644
|
||||
--- a/module/owserver/src/include/owserver.h
|
||||
+++ b/module/owserver/src/include/owserver.h
|
||||
@@ -18,7 +18,7 @@
|
||||
#include "ow.h"
|
||||
#include "ow_connection.h"
|
||||
|
||||
-pthread_mutex_t persistence_mutex ;
|
||||
+extern pthread_mutex_t persistence_mutex ;
|
||||
#define PERSISTENCELOCK _MUTEX_LOCK( persistence_mutex ) ;
|
||||
#define PERSISTENCEUNLOCK _MUTEX_UNLOCK( persistence_mutex ) ;
|
||||
|
||||
--
|
||||
2.28.0
|
||||
|
||||
60
meta-openembedded/meta-filesystems/recipes-filesystems/owfs/owfs/owhttpd
Executable file
60
meta-openembedded/meta-filesystems/recipes-filesystems/owfs/owfs/owhttpd
Executable file
@@ -0,0 +1,60 @@
|
||||
#!/bin/sh
|
||||
|
||||
PATH=/sbin:/bin:/usr/bin
|
||||
|
||||
DAEMON="owhttpd"
|
||||
|
||||
test -f /usr/bin/${DAEMON} || exit 0
|
||||
|
||||
if test -f /etc/default/${DAEMON} ; then
|
||||
. /etc/default/${DAEMON}
|
||||
else
|
||||
:
|
||||
fi
|
||||
|
||||
if [ "$START_OWHTTPD" != "yes" ]
|
||||
then
|
||||
exit 0
|
||||
fi
|
||||
|
||||
|
||||
startdaemon(){
|
||||
echo -n "Starting ${DAEMON}: "
|
||||
start-stop-daemon --start -x /usr/bin/${DAEMON} -- ${CMDLINE} --pid_file /var/run/${DAEMON}.pid
|
||||
echo "done"
|
||||
}
|
||||
|
||||
stopdaemon(){
|
||||
echo -n "Stopping ${DAEMON}: "
|
||||
start-stop-daemon --stop -p /var/run/${DAEMON}.pid
|
||||
echo "done"
|
||||
}
|
||||
|
||||
|
||||
|
||||
case "$1" in
|
||||
start)
|
||||
startdaemon
|
||||
;;
|
||||
stop)
|
||||
stopdaemon
|
||||
;;
|
||||
force-reload)
|
||||
stopdaemon
|
||||
startdaemon
|
||||
;;
|
||||
restart)
|
||||
stopdaemon
|
||||
startdaemon
|
||||
;;
|
||||
reload)
|
||||
stopdaemon
|
||||
startdaemon
|
||||
;;
|
||||
*)
|
||||
echo "Usage: ${DAEMON} { start | stop | restart | reload }" >&2
|
||||
exit 1
|
||||
;;
|
||||
esac
|
||||
|
||||
exit 0
|
||||
59
meta-openembedded/meta-filesystems/recipes-filesystems/owfs/owfs/owserver
Executable file
59
meta-openembedded/meta-filesystems/recipes-filesystems/owfs/owfs/owserver
Executable file
@@ -0,0 +1,59 @@
|
||||
#!/bin/sh
|
||||
|
||||
PATH=/sbin:/bin:/usr/bin
|
||||
|
||||
DAEMON="owserver"
|
||||
|
||||
test -f /usr/bin/${DAEMON} || exit 0
|
||||
|
||||
if test -f /etc/default/${DAEMON} ; then
|
||||
. /etc/default/${DAEMON}
|
||||
else
|
||||
:
|
||||
fi
|
||||
|
||||
if [ "$START_OWSERVER" != "yes" ]
|
||||
then
|
||||
exit 0
|
||||
fi
|
||||
|
||||
startdaemon(){
|
||||
echo -n "Starting ${DAEMON}: "
|
||||
start-stop-daemon --start -x /usr/bin/${DAEMON} -- ${CMDLINE} --pid_file /var/run/${DAEMON}.pid
|
||||
echo "done"
|
||||
}
|
||||
|
||||
stopdaemon(){
|
||||
echo -n "Stopping ${DAEMON}: "
|
||||
start-stop-daemon --stop -p /var/run/${DAEMON}.pid
|
||||
echo "done"
|
||||
}
|
||||
|
||||
|
||||
|
||||
case "$1" in
|
||||
start)
|
||||
startdaemon
|
||||
;;
|
||||
stop)
|
||||
stopdaemon
|
||||
;;
|
||||
force-reload)
|
||||
stopdaemon
|
||||
startdaemon
|
||||
;;
|
||||
restart)
|
||||
stopdaemon
|
||||
startdaemon
|
||||
;;
|
||||
reload)
|
||||
stopdaemon
|
||||
startdaemon
|
||||
;;
|
||||
*)
|
||||
echo "Usage: ${DAEMON} { start | stop | restart | reload }" >&2
|
||||
exit 1
|
||||
;;
|
||||
esac
|
||||
|
||||
exit 0
|
||||
@@ -0,0 +1,81 @@
|
||||
SUMMARY = "1-Wire file system"
|
||||
DESCRIPTION = "OWFS is an easy way to use the powerful 1-wire system of Dallas/Maxim"
|
||||
HOMEPAGE = "http://www.owfs.org/"
|
||||
SECTION = "console/network"
|
||||
|
||||
LICENSE = "GPL-2.0-only & LGPL-2.0-only"
|
||||
LIC_FILES_CHKSUM = "file://COPYING;md5=628b867016631792781a8735a04760e5 \
|
||||
file://COPYING.LIB;md5=9021b7435efdd9fb22beef8291134099"
|
||||
|
||||
DEPENDS = "fuse virtual/libusb0"
|
||||
# v3.2p3
|
||||
SRCREV = "3744375dfaa350e31c9b360eb1e1a517bbeb5c47"
|
||||
SRC_URI = "git://github.com/owfs/owfs;branch=master;protocol=https \
|
||||
file://0001-Add-build-rule-for-README.patch \
|
||||
file://0001-Fix-compilation-with-GCC10.patch \
|
||||
file://owhttpd \
|
||||
file://owserver \
|
||||
"
|
||||
|
||||
S = "${WORKDIR}/git"
|
||||
|
||||
inherit autotools-brokensep update-rc.d pkgconfig systemd
|
||||
|
||||
EXTRA_OECONF = " \
|
||||
--with-fuseinclude=${STAGING_INCDIR} \
|
||||
--with-fuselib=${STAGING_LIBDIR} \
|
||||
--enable-owfs \
|
||||
--enable-owhttpd \
|
||||
--enable-w1 \
|
||||
--disable-swig \
|
||||
--disable-owtcl \
|
||||
--disable-owphp \
|
||||
--disable-owpython \
|
||||
--disable-owperl \
|
||||
"
|
||||
|
||||
do_install:prepend() {
|
||||
install -d ${D}${sysconfdir}/default/
|
||||
install -d ${D}${sysconfdir}/init.d/
|
||||
install -m 0755 ${WORKDIR}/owhttpd ${D}${sysconfdir}/init.d/owhttpd
|
||||
install -m 0755 ${WORKDIR}/owserver ${D}${sysconfdir}/init.d/owserver
|
||||
}
|
||||
|
||||
PACKAGES =+ "owftpd owhttpd owserver owshell libowcapi libow libownet owmon owtap"
|
||||
|
||||
DESCRIPTION:owftpd = "Anoymous FTP server for 1-wire access"
|
||||
DESCRIPTION:owhttpd = "Tiny webserver for 1-wire control"
|
||||
DESCRIPTION:owserver = "Backend server (daemon) for 1-wire control"
|
||||
DESCRIPTION:owshell = "owdir owread owwrite owpresent owget - lightweight owserver access"
|
||||
DESCRIPTION:libowcapi = "easy C-language 1-wire interface "
|
||||
DESCRIPTION:libow = "easy C-language 1-wire interface to the owserver protocol"
|
||||
DESCRIPTION:libownet = "easy C-language 1-wire interface to the owserver protocol"
|
||||
DESCRIPTION:owmon = "Monitor for owserver settings and statistics"
|
||||
DESCRIPTION:owtap = "Packet sniffer for the owserver protocol"
|
||||
|
||||
FILES:owftpd = "${bindir}/owftpd ${systemd_system_unitdir}/owftpd.service"
|
||||
FILES:owhttpd = "${bindir}/owhttpd ${sysconfdir}/init.d/owhttpd \
|
||||
${systemd_system_unitdir}/owhttpd.service"
|
||||
FILES:owserver = "${bindir}/owserver ${sysconfdir}/init.d/owserver \
|
||||
${systemd_system_unitdir}/owserver.service \
|
||||
${systemd_system_unitdir}/owserver.socket"
|
||||
FILES:owshell = "${bindir}/owread ${bindir}/owwrite \
|
||||
${bindir}/owdir ${bindir}/owpresent \
|
||||
${bindir}/owget ${bindir}/owside"
|
||||
FILES:owmon = "${bindir}/owmon"
|
||||
FILES:owtap = "${bindir}/owtap"
|
||||
FILES:libowcapi = "${libdir}/libowcapi-*"
|
||||
FILES:libow = "${libdir}/libow-*"
|
||||
FILES:libownet = "${libdir}/libownet-*"
|
||||
FILES:${PN} += "${systemd_system_unitdir}/owfs.service"
|
||||
|
||||
INITSCRIPT_PACKAGES = "owhttpd owserver"
|
||||
INITSCRIPT_NAME:owserver = "owserver"
|
||||
INITSCRIPT_NAME:owhttpd = "owhttpd"
|
||||
INITSCRIPT_PARAMS:owserver = "defaults 20"
|
||||
INITSCRIPT_PARAMS:owhttpd = "defaults 21"
|
||||
|
||||
SYSTEMD_SERVICE:${PN} = "owfs.service"
|
||||
SYSTEMD_SERVICE:${PN}-owftpd = "owftpd.service"
|
||||
SYSTEMD_SERVICE:${PN}-owhttpd = "owhttpd.service"
|
||||
SYSTEMD_SERVICE:${PN}-owserver = "owserver.service owserver.socket"
|
||||
@@ -0,0 +1,52 @@
|
||||
SUMMARY = "Meta-filesystem packagegroups"
|
||||
|
||||
PACKAGE_ARCH = "${TUNE_PKGARCH}"
|
||||
inherit packagegroup
|
||||
|
||||
PROVIDES = "${PACKAGES}"
|
||||
PACKAGES = ' \
|
||||
packagegroup-meta-filesystems \
|
||||
packagegroup-meta-filesystems-support \
|
||||
packagegroup-meta-filesystems-utls \
|
||||
'
|
||||
|
||||
RDEPENDS:packagegroup-meta-filesystems = "\
|
||||
packagegroup-meta-filesystems \
|
||||
packagegroup-meta-filesystems-support \
|
||||
packagegroup-meta-filesystems-utls \
|
||||
"
|
||||
|
||||
RDEPENDS:packagegroup-meta-filesystems = "\
|
||||
ifuse \
|
||||
logfsprogs \
|
||||
fuse-exfat \
|
||||
owfs \
|
||||
${@bb.utils.contains("DISTRO_FEATURES", "pam", "smbnetfs", "", d)} \
|
||||
simple-mtpfs \
|
||||
yaffs2-utils \
|
||||
ntfs-3g-ntfsprogs \
|
||||
httpfs2 \
|
||||
unionfs-fuse \
|
||||
sshfs-fuse \
|
||||
"
|
||||
|
||||
RDEPENDS:packagegroup-meta-filesystems-support = "\
|
||||
fuse3 \
|
||||
fuse \
|
||||
physfs \
|
||||
"
|
||||
|
||||
RDEPENDS:packagegroup-meta-filesystems-utils = "\
|
||||
aufs-util \
|
||||
exfat-utils \
|
||||
fatcat \
|
||||
xfsdump \
|
||||
f2fs-tools \
|
||||
fatresize \
|
||||
udevil \
|
||||
ufs-utils \
|
||||
xfsprogs \
|
||||
xorriso \
|
||||
"
|
||||
|
||||
EXCLUDE_FROM_WORLD = "1"
|
||||
@@ -0,0 +1,14 @@
|
||||
DESCRIPTION = "SIMPLE-MTPFS is a FUSE based filsystem for MTP devices connected via USB"
|
||||
HOMEPAGE = "https://github.com/phatina/simple-mtpfs"
|
||||
BUGTRACKER = "19e7bb9b608b0c0dce2ee6f56fac75901bc69529"
|
||||
LICENSE = "GPL-2.0-only"
|
||||
LIC_FILES_CHKSUM = "file://COPYING;md5=75859989545e37968a99b631ef42722e"
|
||||
|
||||
DEPENDS = "fuse libmtp autoconf-archive"
|
||||
|
||||
inherit autotools pkgconfig
|
||||
|
||||
SRC_URI = "git://github.com/phatina/simple-mtpfs.git;protocol=https;branch=master"
|
||||
SRCREV = "19e7bb9b608b0c0dce2ee6f56fac75901bc69529"
|
||||
|
||||
S = "${WORKDIR}/git"
|
||||
@@ -0,0 +1,42 @@
|
||||
From 7a524d49b3d4459280f18942df2980603400ec52 Mon Sep 17 00:00:00 2001
|
||||
From: Bian Naimeng <biannm@cn.fujitsu.com>
|
||||
Date: Fri, 19 Jun 2015 11:54:44 +0900
|
||||
Subject: [PATCH] Using PKG_CHECK_MODULES to found headers and libraries of
|
||||
smbclient
|
||||
|
||||
Signed-off-by: Bian Naimeng <biannm@cn.fujitsu.com>
|
||||
---
|
||||
configure.in | 5 +++++
|
||||
src/Makefile.am | 3 +++
|
||||
2 files changed, 8 insertions(+)
|
||||
|
||||
diff --git a/configure.ac b/configure.ac
|
||||
index 4c03409..8d22e71 100644
|
||||
--- a/configure.ac
|
||||
+++ b/configure.ac
|
||||
@@ -119,6 +119,11 @@ AC_CHECK_LIB(smbclient, smbc_setOptionUseCCache, [], [
|
||||
LIBS="$LIBS $SMBCLIENT_LIBS"
|
||||
CFLAGS="$CFLAGS $SMBCLIENT_CFLAGS"
|
||||
|
||||
+dnl *****************************************************************
|
||||
+dnl *** Check libsmbclient by pkgconfig to get cflags and ldflags ***
|
||||
+dnl *****************************************************************
|
||||
+PKG_CHECK_MODULES(SMBCLIENT, smbclient)
|
||||
+
|
||||
dnl ******************
|
||||
dnl *** Final step ***
|
||||
dnl ******************
|
||||
diff --git a/src/Makefile.am b/src/Makefile.am
|
||||
index ccaa8c3..6598317 100644
|
||||
--- a/src/Makefile.am
|
||||
+++ b/src/Makefile.am
|
||||
@@ -17,3 +17,6 @@ smbnetfs_SOURCES = \
|
||||
event.c event.h \
|
||||
reconfigure.c reconfigure.h \
|
||||
main.c
|
||||
+
|
||||
+smbnetfs_CFLAGS=${SMBCLIENT_CFLAGS}
|
||||
+smbnetfs_LDFLAGS=${SMBCLIENT_LDFLAGS}
|
||||
--
|
||||
1.8.4.2
|
||||
|
||||
@@ -0,0 +1,9 @@
|
||||
--- a/configure.ac
|
||||
+++ b/configure.ac
|
||||
@@ -1,5 +1,5 @@
|
||||
AC_INIT([SMBNetFS],[0.6.3])
|
||||
-AM_INIT_AUTOMAKE
|
||||
+AM_INIT_AUTOMAKE([foreign])
|
||||
AC_CONFIG_HEADERS([src/config.h])
|
||||
AC_PROG_CC
|
||||
|
||||
@@ -0,0 +1,32 @@
|
||||
SUMMARY = "FUSE module for mounting an entire SMB/NMB network in a single directory"
|
||||
DESCRIPTION = "SMBNetFS is a Linux/FreeBSD filesystem that allow you to use \
|
||||
samba/microsoft network in the same manner as the network \
|
||||
neighborhood in Microsoft Windows. Please donate me to help \
|
||||
in SMBNetFS development."
|
||||
|
||||
LICENSE = "GPL-2.0-only"
|
||||
LIC_FILES_CHKSUM = "file://COPYING;md5=eb723b61539feef013de476e68b5c50a"
|
||||
HOMEPAGE ="http://sourceforge.net/projects/smbnetfs"
|
||||
|
||||
DEPENDS = "fuse samba"
|
||||
DEPENDS:append:libc-musl = " libexecinfo"
|
||||
|
||||
inherit autotools pkgconfig features_check
|
||||
|
||||
# samba depends on libpam
|
||||
REQUIRED_DISTRO_FEATURES = "pam"
|
||||
|
||||
PV = "0.6.3"
|
||||
|
||||
SRCREV = "736d5e599df3bebce3450125118ac2e70358b0c9"
|
||||
|
||||
SRC_URI = "git://smbnetfs.git.sourceforge.net/gitroot/smbnetfs/smbnetfs;branch=master \
|
||||
file://configure.patch \
|
||||
file://Using-PKG_CHECK_MODULES-to-found-headers-and-libraries.patch"
|
||||
|
||||
PACKAGECONFIG ??= ""
|
||||
PACKAGECONFIG[libsecret] = "--with-libsecret=yes,--with-libsecret=no,libsecret"
|
||||
|
||||
S = "${WORKDIR}/git"
|
||||
|
||||
LDFLAGS:append:libc-musl = " -lexecinfo"
|
||||
@@ -0,0 +1,3 @@
|
||||
#!/bin/sh
|
||||
|
||||
pytest -o log_cli=true -o log_cli_level=INFO | sed -e 's/\[...%\]//g'| sed -e 's/PASSED/PASS/g'| sed -e 's/FAILED/FAIL/g'|sed -e 's/SKIPPED/SKIP/g'| awk '{if ($NF=="PASS" || $NF=="FAIL" || $NF=="SKIP" || $NF=="XFAIL" || $NF=="XPASS"){printf "%s: %s\n", $NF, $0}else{print}}'| awk '{if ($NF=="PASS" || $NF=="FAIL" || $NF=="SKIP" || $NF=="XFAIL" || $NF=="XPASS") {$NF="";print $0}else{print}}'
|
||||
@@ -0,0 +1,27 @@
|
||||
SUMMARY = "This is a filesystem client based on the SSH File Transfer Protocol using FUSE"
|
||||
AUTHOR = "Miklos Szeredi <miklos@szeredi.hu>"
|
||||
HOMEPAGE = "https://github.com/libfuse/sshfs"
|
||||
SECTION = "console/network"
|
||||
LICENSE = "GPL-2.0-only"
|
||||
DEPENDS = "glib-2.0 fuse3"
|
||||
LIC_FILES_CHKSUM = "file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263"
|
||||
|
||||
SRC_URI = "git://github.com/libfuse/sshfs;branch=master;protocol=https"
|
||||
SRCREV = "c91eb9a9a992f1a36c49a8e6f1146e45b5e1c8e7"
|
||||
S = "${WORKDIR}/git"
|
||||
|
||||
inherit meson pkgconfig ptest
|
||||
|
||||
SRC_URI += " \
|
||||
file://run-ptest \
|
||||
"
|
||||
|
||||
RDEPENDS:${PN}-ptest += " \
|
||||
${PYTHON_PN}-pytest \
|
||||
bash \
|
||||
"
|
||||
|
||||
do_install_ptest() {
|
||||
install -d ${D}${PTEST_PATH}/test
|
||||
cp -rf ${S}/test/* ${D}${PTEST_PATH}/test/
|
||||
}
|
||||
@@ -0,0 +1,32 @@
|
||||
From 449cec34c123b86b792627553c6ec7471d2ee7ed Mon Sep 17 00:00:00 2001
|
||||
From: Hongxu Jia <hongxu.jia@windriver.com>
|
||||
Date: Fri, 30 Jun 2017 14:46:51 +0800
|
||||
Subject: [PATCH] support cross compiling
|
||||
|
||||
Do not override OE CMAKE variables
|
||||
|
||||
Upstream-Status: Pending
|
||||
|
||||
Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
|
||||
---
|
||||
CMakeLists.txt | 4 ++--
|
||||
1 file changed, 2 insertions(+), 2 deletions(-)
|
||||
|
||||
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
||||
--- a/CMakeLists.txt
|
||||
+++ b/CMakeLists.txt
|
||||
@@ -10,9 +10,9 @@ IF(NOT CMAKE_CONFIGURATION_TYPES AND NOT CMAKE_BUILD_TYPE)
|
||||
ENDIF(NOT CMAKE_CONFIGURATION_TYPES AND NOT CMAKE_BUILD_TYPE)
|
||||
|
||||
# Select flags.
|
||||
-SET(CMAKE_C_FLAGS "-pipe -W -Wall -DFORTIFY_SOURCE=2")
|
||||
+SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -pipe -W -Wall -DFORTIFY_SOURCE=2")
|
||||
SET(CMAKE_C_FLAGS_RELWITHDEBINFO "-O2 -g")
|
||||
-SET(CMAKE_C_FLAGS_RELEASE "-O2")
|
||||
+SET(CMAKE_C_FLAGS_RELEASE "${CMAKE_C_FLAGS_RELEASE} -O2")
|
||||
SET(CMAKE_C_FLAGS_DEBUG "-O0 -g -DDEBUG")
|
||||
|
||||
if (UNIX AND APPLE)
|
||||
--
|
||||
2.8.1
|
||||
|
||||
@@ -0,0 +1,18 @@
|
||||
SUMMARY = "A FUSE based implemention of unionfs"
|
||||
HOMEPAGE = "https://github.com/rpodgorny/unionfs-fuse"
|
||||
SECTION = "console/network"
|
||||
LICENSE = "BSD-3-Clause"
|
||||
LIC_FILES_CHKSUM = "file://src/unionfs.c;beginline=3;endline=8;md5=30fa8de70fd8abab00b483a1b7943a32 \
|
||||
file://LICENSE;md5=7e5a37fce17307066eec6b23546da3b3 \
|
||||
"
|
||||
|
||||
SRC_URI = "git://github.com/rpodgorny/${BPN}.git;branch=master;protocol=https \
|
||||
file://0001-support-cross-compiling.patch \
|
||||
"
|
||||
SRCREV = "b0e3805d3d84d44ddf3e4e5238ae0332145d8157"
|
||||
|
||||
DEPENDS = "fuse"
|
||||
|
||||
S = "${WORKDIR}/git"
|
||||
|
||||
inherit cmake pkgconfig
|
||||
@@ -0,0 +1,30 @@
|
||||
From 848717da4a28d33f8aa8f889377e61e6b1b8ae67 Mon Sep 17 00:00:00 2001
|
||||
From: Khem Raj <raj.khem@gmail.com>
|
||||
Date: Thu, 13 Jul 2017 18:29:52 -0700
|
||||
Subject: [PATCH] define loff_t if not already defined
|
||||
|
||||
Helps to build with musl
|
||||
|
||||
Signed-off-by: Khem Raj <raj.khem@gmail.com>
|
||||
---
|
||||
yaffs_guts.h | 4 ++++
|
||||
1 file changed, 4 insertions(+)
|
||||
|
||||
diff --git a/yaffs_guts.h b/yaffs_guts.h
|
||||
index 6bcf12d..4af17ce 100644
|
||||
--- a/yaffs_guts.h
|
||||
+++ b/yaffs_guts.h
|
||||
@@ -18,6 +18,10 @@
|
||||
|
||||
#include "yportenv.h"
|
||||
|
||||
+#ifndef loff_t
|
||||
+#define loff_t off_t
|
||||
+#endif
|
||||
+
|
||||
#define YAFFS_OK 1
|
||||
#define YAFFS_FAIL 0
|
||||
|
||||
--
|
||||
2.13.2
|
||||
|
||||
@@ -0,0 +1,21 @@
|
||||
Upstream-Status: Pending
|
||||
|
||||
Signed-off-by: Yi Zhao <yi.zhao@windriver.com>
|
||||
|
||||
diff --git a/utils/Makefile b/utils/Makefile
|
||||
index 710ebbf..6259893 100644
|
||||
--- a/utils/Makefile
|
||||
+++ b/utils/Makefile
|
||||
@@ -57,10 +57,10 @@ $(COMMONOBJS) $(MKYAFFSIMAGEOBJS) $(MKYAFFS2IMAGEOBJS) : %.o: %.c
|
||||
$(CC) -c $(CFLAGS) $< -o $@
|
||||
|
||||
mkyaffsimage: $(MKYAFFSIMAGEOBJS) $(COMMONOBJS)
|
||||
- $(CC) -o $@ $^
|
||||
+ $(CC) $(LDFLAGS) -o $@ $^
|
||||
|
||||
mkyaffs2image: $(MKYAFFS2IMAGEOBJS) $(COMMONOBJS)
|
||||
- $(CC) -o $@ $^
|
||||
+ $(CC) $(LDFLAGS) -o $@ $^
|
||||
|
||||
|
||||
clean:
|
||||
@@ -0,0 +1,51 @@
|
||||
SUMMARY = "Yet Another Flash File System"
|
||||
DESCRIPTION = "Tools for managing 'yaffs2' file systems."
|
||||
|
||||
SECTION = "base"
|
||||
HOMEPAGE = "http://www.yaffs.net"
|
||||
|
||||
LICENSE = "GPL-2.0-only"
|
||||
LIC_FILES_CHKSUM = "file://utils/mkyaffs2image.c;beginline=11;endline=13;md5=5f5464f9b3e981ca574e65b00e438561 \
|
||||
file://utils/mkyaffsimage.c;beginline=10;endline=12;md5=5f5464f9b3e981ca574e65b00e438561 \
|
||||
"
|
||||
|
||||
PV = "0.0+git${SRCPV}"
|
||||
|
||||
DEPENDS = "mtd-utils"
|
||||
|
||||
# Source is the HEAD of master branch at the time of writing this recipe
|
||||
SRC_URI = "git://www.aleph1.co.uk/yaffs2;protocol=git;branch=master \
|
||||
file://makefile-add-ldflags.patch \
|
||||
file://0001-define-loff_t-if-not-already-defined.patch \
|
||||
"
|
||||
|
||||
SRCREV = "9a6f486e56f927eeb8dc7e4e0d84f6bb95eeaa0f"
|
||||
|
||||
UPSTREAM_CHECK_COMMITS = "1"
|
||||
|
||||
S = "${WORKDIR}/git"
|
||||
|
||||
CFLAGS:append = " -I.. -DCONFIG_YAFFS_UTIL -DCONFIG_YAFFS_DEFINES_TYPES"
|
||||
EXTRA_OEMAKE = "-e MAKEFLAGS="
|
||||
|
||||
do_compile() {
|
||||
cd utils && oe_runmake
|
||||
}
|
||||
|
||||
INSTALL_FILES = "mkyaffsimage \
|
||||
mkyaffs2image \
|
||||
"
|
||||
do_install() {
|
||||
install -d ${D}${sbindir}/
|
||||
for i in ${INSTALL_FILES}; do
|
||||
install -m 0755 utils/$i ${D}${sbindir}/
|
||||
done
|
||||
}
|
||||
|
||||
BBCLASSEXTEND = "native"
|
||||
|
||||
# Fixed make clean error:
|
||||
#make -C /lib/modules/4.4.0-112-generic/build M=<snip>
|
||||
#make: *** /lib/modules/4.4.0-112-generic/build: No such file or directory. Stop.
|
||||
#make: *** [clean] Error 2
|
||||
CLEANBROKEN = "1"
|
||||
@@ -0,0 +1,34 @@
|
||||
From cc0cd6f71f6ef96fca2d7b730a3f0f6722fec696 Mon Sep 17 00:00:00 2001
|
||||
From: Khem Raj <raj.khem@gmail.com>
|
||||
Date: Sat, 7 May 2022 12:15:22 -0700
|
||||
Subject: [PATCH] Define strndupa if it does not exist
|
||||
|
||||
musl e.g. does not supply strndupa, unlike glibc
|
||||
|
||||
Upstream-Status: Pending
|
||||
Signed-off-by: Khem Raj <raj.khem@gmail.com>
|
||||
|
||||
---
|
||||
etc/systemd/system-generators/zfs-mount-generator.c | 9 +++++++++
|
||||
1 file changed, 9 insertions(+)
|
||||
|
||||
diff --git a/etc/systemd/system-generators/zfs-mount-generator.c b/etc/systemd/system-generators/zfs-mount-generator.c
|
||||
index f4c6c26..255bee4 100644
|
||||
--- a/etc/systemd/system-generators/zfs-mount-generator.c
|
||||
+++ b/etc/systemd/system-generators/zfs-mount-generator.c
|
||||
@@ -193,6 +193,15 @@ fopenat(int dirfd, const char *pathname, int flags,
|
||||
return (fdopen(fd, stream_mode));
|
||||
}
|
||||
|
||||
+#ifndef strndupa
|
||||
+#define strndupa(s, n) \
|
||||
+ (__extension__ ({const char *__in = (s); \
|
||||
+ size_t __len = strnlen (__in, (n)) + 1; \
|
||||
+ char *__out = (char *) alloca (__len); \
|
||||
+ __out[__len-1] = '\0'; \
|
||||
+ (char *) memcpy (__out, __in, __len-1);}))
|
||||
+#endif
|
||||
+
|
||||
static int
|
||||
line_worker(char *line, const char *cachefile)
|
||||
{
|
||||
@@ -0,0 +1,71 @@
|
||||
SUMMARY = "OpenZFS on Linux and FreeBSD"
|
||||
DESCRIPTION = "OpenZFS on Linux and FreeBSD"
|
||||
LICENSE = "CDDL-1.0"
|
||||
LIC_FILES_CHKSUM = "file://LICENSE;md5=7087caaf1dc8a2856585619f4a787faa"
|
||||
HOMEPAGE ="https://github.com/openzfs/zfs"
|
||||
|
||||
SRC_URI = "https://github.com/openzfs/zfs/releases/download/${BPN}-${PV}/${BPN}-${PV}.tar.gz \
|
||||
file://0001-Define-strndupa-if-it-does-not-exist.patch \
|
||||
"
|
||||
SRC_URI[sha256sum] = "6b172cdf2eb54e17fcd68f900fab33c1430c5c59848fa46fab83614922fe50f6"
|
||||
|
||||
# Using both 'module' and 'autotools' classes seems a bit odd, they both
|
||||
# define a do_compile function.
|
||||
# That's why we opt for module-base, also this prevents module splitting.
|
||||
inherit module-base pkgconfig autotools
|
||||
|
||||
DEPENDS = "virtual/kernel zlib util-linux libtirpc openssl curl"
|
||||
|
||||
PACKAGECONFIG ?= "${@bb.utils.filter('DISTRO_FEATURES', 'systemd sysvinit', d)}"
|
||||
|
||||
PACKAGECONFIG[pam] = "--enable-pam --with-pamconfigsdir=${datadir}/pam-configs --with-pammoduledir=${libdir}/security, --disable-pam"
|
||||
PACKAGECONFIG[systemd] = "--enable-systemd,--disable-systemd,"
|
||||
PACKAGECONFIG[sysvinit] = "--enable-sysvinit,--disable-sysvinit,"
|
||||
|
||||
EXTRA_OECONF:append = " \
|
||||
--disable-pyzfs \
|
||||
--with-linux=${STAGING_KERNEL_DIR} --with-linux-obj=${STAGING_KERNEL_BUILDDIR} \
|
||||
--with-mounthelperdir=${base_sbin} \
|
||||
--with-udevdir=${base_libdir}/udev \
|
||||
--with-systemdunitdir=${systemd_system_unitdir} \
|
||||
--with-systemdgeneratordir=${nonarch_base_libdir}/systemd/system-generators \
|
||||
--with-systemdpresetdir=${nonarch_base_libdir}/systemd/system-preset \
|
||||
--with-systemdmodulesloaddir=${sysconfdir}/module-load.d \
|
||||
--without-dracutdir \
|
||||
"
|
||||
|
||||
EXTRA_OEMAKE:append = " \
|
||||
INSTALL_MOD_PATH=${D}${root_prefix} \
|
||||
"
|
||||
|
||||
do_install:append() {
|
||||
# /usr/share/zfs contains the zfs-tests folder which we do not need:
|
||||
rm -rf ${D}${datadir}/zfs
|
||||
|
||||
rm -rf ${D}${datadir}/initramfs-tools
|
||||
}
|
||||
|
||||
FILES:${PN} += "\
|
||||
${nonarch_base_libdir}/modules \
|
||||
${systemd_system_unitdir} \
|
||||
${nonarch_base_libdir}/systemd/system-generators \
|
||||
${nonarch_base_libdir}/systemd/system-preset \
|
||||
${sysconfdir}/modules-load.d/${BPN}.conf \
|
||||
${sysconfdir}/default/${BPN} \
|
||||
${sysconfdir}/sudoers.d/${BPN} \
|
||||
${sysconfdir}/${BPN} \
|
||||
${base_libdir}/udev \
|
||||
${sbindir} \
|
||||
${bindir} \
|
||||
${libexecdir}/${BPN} \
|
||||
${libdir} \
|
||||
"
|
||||
|
||||
FILES:${PN}-dev += "\
|
||||
${prefix}/src/zfs-${PV} \
|
||||
${prefix}/src/spl-${PV} \
|
||||
"
|
||||
# Not yet ported to rv32
|
||||
COMPATIBLE_HOST:riscv32 = "null"
|
||||
# conflicting definition of ABS macro from asm/asm.h from kernel
|
||||
COMPATIBLE_HOST:mips = "null"
|
||||
Reference in New Issue
Block a user