Waldemar Brodkorb 2 лет назад
Родитель
Сommit
9dcda74f29
2 измененных файлов с 56 добавлено и 0 удалено
  1. 37 0
      package/btrfs-progs/Makefile
  2. 19 0
      target/linux/config/Config.in.fs

+ 37 - 0
package/btrfs-progs/Makefile

@@ -0,0 +1,37 @@
+# This file is part of the OpenADK project. OpenADK is copyrighted
+# material, please see the LICENCE file in the top-level directory.
+
+include $(ADK_TOPDIR)/rules.mk
+
+PKG_NAME:=		btrfs-progs
+PKG_VERSION:=		6.1.3
+PKG_RELEASE:=		1
+PKG_HASH:=		d37fc9ec4fa5778b20aa7548fe706eb3a300338c1473318271ae54024dac7167
+PKG_DESCR:=		btrfs progs
+PKG_DEPENDS:=		zstd
+PKG_BUILDDEP:=		zstd
+PKG_KDEPENDS:=		btrfs-fs
+PKG_SECTION:=		sys/fs
+PKG_SITES:=		https://mirrors.edge.kernel.org/pub/linux/kernel/people/kdave/btrfs-progs/
+
+DISTFILES:=             $(PKG_NAME)-v$(PKG_VERSION).tar.xz
+WRKDIST=		$(WRKDIR)/$(PKG_NAME)-v$(PKG_VERSION)
+
+include $(ADK_TOPDIR)/mk/package.mk
+
+$(eval $(call PKG_template,BTRFS_PROGS,btrfs-progs,$(PKG_VERSION)-$(PKG_RELEASE),$(PKG_DEPENDS),$(PKG_DESCR),$(PKG_SECTION)))
+
+CONFIGURE_ARGS+=	--disable-backtrace \
+			--disable-documentation \
+			--disable-python \
+			--disable-libudev
+
+btrfs-progs-install:
+	$(INSTALL_DIR) $(IDIR_BTRFS_PROGS)/usr/lib
+	$(CP) $(WRKINST)/usr/lib/libbtrfs*.so* \
+		$(IDIR_BTRFS_PROGS)/usr/lib
+	$(INSTALL_DIR) $(IDIR_BTRFS_PROGS)/usr/bin
+	$(INSTALL_BIN) $(WRKINST)/usr/bin/* \
+		$(IDIR_BTRFS_PROGS)/usr/bin
+
+include $(ADK_TOPDIR)/mk/pkg-bottom.mk

+ 19 - 0
target/linux/config/Config.in.fs

@@ -96,6 +96,25 @@ config ADK_LINUX_KERNEL_EXT4_FS
 	help
 	  Ext4 filesystem.
 
+config ADK_LINUX_KERNEL_BTRFS_FS
+	tristate "Btrfs filesystem support"
+	select ADK_LINUX_KERNEL_BLOCK
+	help
+	  Btrfs is a general purpose copy-on-write filesystem with extents,
+	  writable snapshotting, support for multiple devices and many more
+	  features focused on fault tolerance, repair and easy administration.
+
+	  The filesystem disk format is no longer unstable, and it's not
+	  expected to change unless there are strong reasons to do so. If there
+	  is a format change, file systems with a unchanged format will
+	  continue to be mountable and usable by newer kernels.
+
+	  For more information, please see the web pages at
+	  http://btrfs.wiki.kernel.org.
+
+	  To compile this file system support as a module, choose M here. The
+	  module will be called btrfs.
+
 config ADK_LINUX_KERNEL_HFSPLUS_FS
 	tristate "HFS+ filesystem support"
 	select ADK_LINUX_KERNEL_BLOCK