6b372804be
Other packages when building against btrfs-progs require headers in the staging directory under /usr/include/btrfs. This patch enables installing btrfs-progs to the staging directory to enable other packages to build against the btrfs-progs headers. Signed-off-by: Christian Stewart <christian@paral.in> [Thomas: take into account the BR2_STATIC_LIBS case, by adding the relevant BTRFS_PROGS_INSTALL_STAGING_OPTS variable, as well as a patch to make sure "install-static" installs the static library and the headers.] Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
24 lines
860 B
Makefile
24 lines
860 B
Makefile
################################################################################
|
|
#
|
|
# btrfs-progs
|
|
#
|
|
################################################################################
|
|
|
|
BTRFS_PROGS_VERSION = 4.1.2
|
|
BTRFS_PROGS_SITE = $(BR2_KERNEL_MIRROR)/linux/kernel/people/kdave/btrfs-progs
|
|
BTRFS_PROGS_SOURCE = btrfs-progs-v$(BTRFS_PROGS_VERSION).tar.xz
|
|
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)
|
|
BTRFS_PROGS_MAKE_OPTS = static
|
|
BTRFS_PROGS_INSTALL_TARGET_OPTS = DESTDIR=$(TARGET_DIR) install-static
|
|
BTRFS_PROGS_INSTALL_STAGING_OPTS = DESTDIR=$(STAGING_DIR) install-static
|
|
endif
|
|
|
|
$(eval $(autotools-package))
|