[Buildroot] [PATCH v11 1/2] package/btrfs-progs: install to staging directory

Thomas Petazzoni thomas.petazzoni at free-electrons.com
Sun Jul 24 21:48:16 UTC 2016


Hello,

On Sun, 24 Jul 2016 14:10:27 -0700, Christian Stewart wrote:

> diff --git a/package/btrfs-progs/btrfs-progs.mk b/package/btrfs-progs/btrfs-progs.mk
> index 2c3dc50..8d50eb4 100644
> --- a/package/btrfs-progs/btrfs-progs.mk
> +++ b/package/btrfs-progs/btrfs-progs.mk
> @@ -11,6 +11,7 @@ BTRFS_PROGS_DEPENDENCIES = host-pkgconf e2fsprogs lzo util-linux zlib
>  BTRFS_PROGS_CONF_OPTS = --disable-backtrace
>  BTRFS_PROGS_LICENSE = GPLv2
>  BTRFS_PROGS_LICENSE_FILES = COPYING
> +BTRFS_PROGS_INSTALL_STAGING = YES
>  
>  # Doesn't autodetect static-only and tries to build both
>  ifeq ($(BR2_STATIC_LIBS),y)

Unfortunately, this breaks the build in a BR2_STATIC_LIBS=y
configuration. So I've tried adding:

BTRFS_PROGS_INSTALL_STAGING_OPTS = DESTDIR=$(STAGING_DIR) install-static

in the existing ifeq ($(BR2_STATIC_LIBS),y). It fixes the build but it
isn't correct: it only installs the programs, and not the headers and
the static library.

So it seems like a btrfs-progs patch is needed to make this whole thing
work properly :-/

Thomas
-- 
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com



More information about the buildroot mailing list