Skip to contentSkip to conversation

btrfs-progs: new package

PATCH New Gustavo Zacarias 3 participants 6 messages Apr 29, 2014 – Apr 30, 2014

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 btrfs-progs: new package

---
 package/Config.in                  |  1 +
 package/btrfs-progs/Config.in      | 22 ++++++++++++++++++++++
 package/btrfs-progs/btrfs-progs.mk | 22 ++++++++++++++++++++++
 3 files changed, 45 insertions(+)
 create mode 100644 package/btrfs-progs/Config.in
 create mode 100644 package/btrfs-progs/btrfs-progs.mk
package/Config.in +1 -0
index bc7271f..9e3090b 100644
@@ -130,6 +130,7 @@ source "package/yasm/Config.in"
 endmenu
 
 menu "Filesystem and flash utilities"
+source "package/btrfs-progs/Config.in"
 source "package/cifs-utils/Config.in"
 source "package/cramfs/Config.in"
 source "package/curlftpfs/Config.in"
package/btrfs-progs/Config.in new file +22 -0
new file mode 100644
index 0000000..2e71a01
@@ -0,0 +1,22 @@
+config BR2_PACKAGE_BTRFS_PROGS
+	bool "btrfs-progs"
+	depends on BR2_LARGEFILE # acl, attr
+	depends on BR2_USE_WCHAR # util-linux
+	depends on BR2_USE_MMU # util-linux
+	depends on BR2_TOOLCHAIN_HAS_THREADS
+	select BR2_PACKAGE_ACL
+	select BR2_PACKAGE_ATTR
+	select BR2_PACKAGE_E2FSPROGS
+	select BR2_PACKAGE_LZO
+	select BR2_PACKAGE_UTIL_LINUX
+	select BR2_PACKAGE_UTIL_LINUX_LIBBLKID
+	select BR2_PACKAGE_UTIL_LINUX_LIBUUID
+	select BR2_PACKAGE_ZLIB
+	help
+	  Btrfs filesystem utilities
+
+	  https://btrfs.wiki.kernel.org/index.php/Main_Page
+
+comment "btrfs-progs needs a toolchain w/ largefile, wchar, threads"
+	depends on !BR2_LARGEFILE || !BR2_USE_WCHAR || \
+		!BR2_TOOLCHAIN_HAS_THREADS
package/btrfs-progs/btrfs-progs.mk new file +22 -0
new file mode 100644
index 0000000..415ded2
@@ -0,0 +1,22 @@
+################################################################################
+#
+# btrfs-progs
+#
+################################################################################
+
+BTRFS_PROGS_VERSION = 3.14.1
+BTRFS_PROGS_SITE = https://www.kernel.org/pub/linux/kernel/people/mason/btrfs-progs
+BTRFS_PROGS_SOURCE = btrfs-progs-v$(BTRFS_PROGS_VERSION).tar.xz
+BTRFS_PROGS_DEPENDENCIES = acl attr e2fsprogs lzo util-linux zlib
+BTRFS_PROGS_LICENSE = GPLv2
+BTRFS_PROGS_LICENSE_FILES = COPYING
+
+define BTRFS_PROGS_BUILD_CMDS
+	$(MAKE) $(TARGET_CONFIGURE_OPTS) -C $(@D)
+endef
+
+define BTRFS_PROGS_INSTALL_TARGET_CMDS
+	$(MAKE) -C $(@D) prefix=/usr DESTDIR=$(TARGET_DIR) install
+endef
+
+$(eval $(generic-package))
Signature · 1 line
1.8.3.2
#1 lore raw

PATCH 1/1 btrfs-progs: new package

Gustavo, All,

On 2014-04-29 13:49 -0300, Gustavo Zacarias spake thusly:

Quoted 1 line

[--SNIP--]

Quoted 18 lines
package/btrfs-progs/Config.in new file +12 -0
new file mode 100644
index 0000000..2e71a01
@@ -0,0 +1,22 @@
+config BR2_PACKAGE_BTRFS_PROGS
+	bool "btrfs-progs"
+	depends on BR2_LARGEFILE # acl, attr
+	depends on BR2_USE_WCHAR # util-linux
+	depends on BR2_USE_MMU # util-linux
+	depends on BR2_TOOLCHAIN_HAS_THREADS
+	select BR2_PACKAGE_ACL
+	select BR2_PACKAGE_ATTR
+	select BR2_PACKAGE_E2FSPROGS
+	select BR2_PACKAGE_LZO
+	select BR2_PACKAGE_UTIL_LINUX
+	select BR2_PACKAGE_UTIL_LINUX_LIBBLKID

package/btrfs-progs/Config.in line 22

Quoted 10 lines
package/btrfs-progs/Config.in new file +10 -0
+	select BR2_PACKAGE_UTIL_LINUX_LIBUUID
+	select BR2_PACKAGE_ZLIB
+	help
+	  Btrfs filesystem utilities
+
+	  https://btrfs.wiki.kernel.org/index.php/Main_Page
+
+comment "btrfs-progs needs a toolchain w/ largefile, wchar, threads"
+	depends on !BR2_LARGEFILE || !BR2_USE_WCHAR || \
+		!BR2_TOOLCHAIN_HAS_THREADS

This should also "depends on BR2_USE_MMU".

Quoted 18 lines
package/btrfs-progs/btrfs-progs.mk new file +12 -0
new file mode 100644
index 0000000..415ded2
@@ -0,0 +1,22 @@
+################################################################################
+#
+# btrfs-progs
+#
+################################################################################
+
+BTRFS_PROGS_VERSION = 3.14.1
+BTRFS_PROGS_SITE = https://www.kernel.org/pub/linux/kernel/people/mason/btrfs-progs
+BTRFS_PROGS_SOURCE = btrfs-progs-v$(BTRFS_PROGS_VERSION).tar.xz
+BTRFS_PROGS_DEPENDENCIES = acl attr e2fsprogs lzo util-linux zlib
+BTRFS_PROGS_LICENSE = GPLv2
+BTRFS_PROGS_LICENSE_FILES = COPYING

package/btrfs-progs/btrfs-progs.mk line 22

Quoted 10 lines
package/btrfs-progs/btrfs-progs.mk new file +10 -0
+
+define BTRFS_PROGS_BUILD_CMDS
+	$(MAKE) $(TARGET_CONFIGURE_OPTS) -C $(@D)
+endef
+
+define BTRFS_PROGS_INSTALL_TARGET_CMDS
+	$(MAKE) -C $(@D) prefix=/usr DESTDIR=$(TARGET_DIR) install
+endef
+
+$(eval $(generic-package))

Would it make sense to add them as host-tools, too?

Regards,
Yann E. MORIN.

Signature · 6 lines
.-----------------.--------------------.------------------.--------------------.
|  Yann E. MORIN  | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +33 662 376 056 | Software  Designer | \ / CAMPAIGN     |  ___               |
| +33 223 225 172 `------------.-------:  X  AGAINST      |  \e/  There is no  |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL    |   v   conspiracy.  |
'------------------------------^-------^------------------^--------------------'
#2 lore raw

PATCH 1/1 btrfs-progs: new package

Quoted 1 line · Yann E. MORIN

This should also "depends on BR2_USE_MMU".

Ooops, i'll add it up.

Quoted 1 line

Would it make sense to add them as host-tools, too?

Not really IMHO.
Grub2 can in theory understand btrfs, but that would be realistically speaking a x86/amd64-only thing.
And then btrfs-progs AFAIK doesn't include any tool to create images like genext2fs does, it talks directly with block devices. Sudo with loopback is a bit dangerous and off the charts i think. Regards.

#3 lore raw

PATCH 1/1 btrfs-progs: new package

Gustavo, All,

On 2014-04-29 14:08 -0300, Gustavo Zacarias spake thusly:

Quoted 9 lines · Yann E. MORIN
Quoted 1 line

Would it make sense to add them as host-tools, too?

Not really IMHO.
Grub2 can in theory understand btrfs, but that would be realistically speaking a x86/amd64-only thing.
And then btrfs-progs AFAIK doesn't include any tool to create images like genext2fs does, it talks directly with block devices. Sudo with loopback is a bit dangerous and off the charts i think.

Yep, what I feared... Too bad, then.

Regards,
Yann E. MORIN.

Signature · 6 lines
.-----------------.--------------------.------------------.--------------------.
|  Yann E. MORIN  | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +33 662 376 056 | Software  Designer | \ / CAMPAIGN     |  ___               |
| +33 223 225 172 `------------.-------:  X  AGAINST      |  \e/  There is no  |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL    |   v   conspiracy.  |
'------------------------------^-------^------------------^--------------------'
#4 lore raw

PATCH 1/1 btrfs-progs: new package

In reply to Gustavo Zacarias
Quoted 6 lines · Gustavo Zacarias
Quoted 1 line · Yann E. MORIN

This should also "depends on BR2_USE_MMU".

Ooops, i'll add it up.

Quoted 8 lines
Quoted 1 line

Would it make sense to add them as host-tools, too?

Not really IMHO.
Grub2 can in theory understand btrfs, but that would be realistically speaking a x86/amd64-only thing.
And then btrfs-progs AFAIK doesn't include any tool to create images like genext2fs does, it talks directly with block devices. Sudo with loopback is a bit dangerous and off the charts i think.

Still, it may be useful to add it as a Config.host option, for use in
post-image scripts (which may indeed have sudo).

Regards,
Arnout

Quoted 7 lines

Regards.

_______________________________________________
buildroot mailing list
buildroot at busybox.net
http://lists.busybox.net/mailman/listinfo/buildroot

Signature · 6 lines
Arnout Vandecappelle                          arnout at mind be
Senior Embedded Software Architect            +32-16-286500
Essensium/Mind                                http://www.mind.be
G.Geenslaan 9, 3001 Leuven, Belgium           BE 872 984 063 RPR Leuven
LinkedIn profile: http://www.linkedin.com/in/arnoutvandecappelle
GPG fingerprint:  7CB5 E4CC 6C2E EFD4 6E3D A754 F963 ECAB 2450 2F1F
#5 lore raw

PATCH 1/1 btrfs-progs: new package

Quoted 2 lines · Arnout Vandecappelle

Still, it may be useful to add it as a Config.host option, for use in
post-image scripts (which may indeed have sudo).

It will need to hostize some of the dependencies as well, like acl and attr. Takers welcome :)
Regards.