* [Buildroot] [PATCH] btrfs-progs: new package
@ 2014-04-29 16:49 Gustavo Zacarias
2014-04-29 16:56 ` Yann E. MORIN
0 siblings, 1 reply; 6+ messages in thread
From: Gustavo Zacarias @ 2014-04-29 16:49 UTC (permalink / raw)
To: buildroot
Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
---
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
diff --git a/package/Config.in b/package/Config.in
index bc7271f..9e3090b 100644
--- a/package/Config.in
+++ b/package/Config.in
@@ -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"
diff --git a/package/btrfs-progs/Config.in b/package/btrfs-progs/Config.in
new file mode 100644
index 0000000..2e71a01
--- /dev/null
+++ b/package/btrfs-progs/Config.in
@@ -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
diff --git a/package/btrfs-progs/btrfs-progs.mk b/package/btrfs-progs/btrfs-progs.mk
new file mode 100644
index 0000000..415ded2
--- /dev/null
+++ b/package/btrfs-progs/btrfs-progs.mk
@@ -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))
--
1.8.3.2
^ permalink raw reply related [flat|nested] 6+ messages in thread
* [Buildroot] [PATCH] btrfs-progs: new package
2014-04-29 16:49 [Buildroot] [PATCH] btrfs-progs: new package Gustavo Zacarias
@ 2014-04-29 16:56 ` Yann E. MORIN
2014-04-29 17:08 ` Gustavo Zacarias
0 siblings, 1 reply; 6+ messages in thread
From: Yann E. MORIN @ 2014-04-29 16:56 UTC (permalink / raw)
To: buildroot
Gustavo, All,
On 2014-04-29 13:49 -0300, Gustavo Zacarias spake thusly:
> Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
[--SNIP--]
> diff --git a/package/btrfs-progs/Config.in b/package/btrfs-progs/Config.in
> new file mode 100644
> index 0000000..2e71a01
> --- /dev/null
> +++ b/package/btrfs-progs/Config.in
> @@ -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
This should also "depends on BR2_USE_MMU".
> diff --git a/package/btrfs-progs/btrfs-progs.mk b/package/btrfs-progs/btrfs-progs.mk
> new file mode 100644
> index 0000000..415ded2
> --- /dev/null
> +++ b/package/btrfs-progs/btrfs-progs.mk
> @@ -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))
Would it make sense to add them as host-tools, too?
Regards,
Yann E. MORIN.
--
.-----------------.--------------------.------------------.--------------------.
| 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. |
'------------------------------^-------^------------------^--------------------'
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Buildroot] [PATCH] btrfs-progs: new package
2014-04-29 16:56 ` Yann E. MORIN
@ 2014-04-29 17:08 ` Gustavo Zacarias
2014-04-29 17:13 ` Yann E. MORIN
2014-04-29 22:01 ` Arnout Vandecappelle
0 siblings, 2 replies; 6+ messages in thread
From: Gustavo Zacarias @ 2014-04-29 17:08 UTC (permalink / raw)
To: buildroot
On 04/29/2014 01:56 PM, Yann E. MORIN wrote:
> This should also "depends on BR2_USE_MMU".
Ooops, i'll add it up.
> 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.
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Buildroot] [PATCH] btrfs-progs: new package
2014-04-29 17:08 ` Gustavo Zacarias
@ 2014-04-29 17:13 ` Yann E. MORIN
2014-04-29 22:01 ` Arnout Vandecappelle
1 sibling, 0 replies; 6+ messages in thread
From: Yann E. MORIN @ 2014-04-29 17:13 UTC (permalink / raw)
To: buildroot
Gustavo, All,
On 2014-04-29 14:08 -0300, Gustavo Zacarias spake thusly:
> On 04/29/2014 01:56 PM, Yann E. MORIN wrote:
> > 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.
--
.-----------------.--------------------.------------------.--------------------.
| 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. |
'------------------------------^-------^------------------^--------------------'
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Buildroot] [PATCH] btrfs-progs: new package
2014-04-29 17:08 ` Gustavo Zacarias
2014-04-29 17:13 ` Yann E. MORIN
@ 2014-04-29 22:01 ` Arnout Vandecappelle
2014-04-30 13:36 ` Gustavo Zacarias
1 sibling, 1 reply; 6+ messages in thread
From: Arnout Vandecappelle @ 2014-04-29 22:01 UTC (permalink / raw)
To: buildroot
On 29/04/14 19:08, Gustavo Zacarias wrote:
> On 04/29/2014 01:56 PM, Yann E. MORIN wrote:
>
>> This should also "depends on BR2_USE_MMU".
>
> Ooops, i'll add it up.
>
>> 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
> Regards.
>
> _______________________________________________
> buildroot mailing list
> buildroot at busybox.net
> http://lists.busybox.net/mailman/listinfo/buildroot
>
--
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
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Buildroot] [PATCH] btrfs-progs: new package
2014-04-29 22:01 ` Arnout Vandecappelle
@ 2014-04-30 13:36 ` Gustavo Zacarias
0 siblings, 0 replies; 6+ messages in thread
From: Gustavo Zacarias @ 2014-04-30 13:36 UTC (permalink / raw)
To: buildroot
On 04/29/2014 07:01 PM, Arnout Vandecappelle wrote:
> 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.
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2014-04-30 13:36 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-04-29 16:49 [Buildroot] [PATCH] btrfs-progs: new package Gustavo Zacarias
2014-04-29 16:56 ` Yann E. MORIN
2014-04-29 17:08 ` Gustavo Zacarias
2014-04-29 17:13 ` Yann E. MORIN
2014-04-29 22:01 ` Arnout Vandecappelle
2014-04-30 13:36 ` Gustavo Zacarias
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox