2014-04-29 19:17:14 +02:00
|
|
|
################################################################################
|
|
|
|
#
|
|
|
|
# btrfs-progs
|
|
|
|
#
|
|
|
|
################################################################################
|
|
|
|
|
2014-10-18 13:34:53 +02:00
|
|
|
BTRFS_PROGS_VERSION = 3.17
|
2014-10-06 22:23:36 +02:00
|
|
|
BTRFS_PROGS_SITE = https://www.kernel.org/pub/linux/kernel/people/kdave/btrfs-progs
|
2014-04-29 19:17:14 +02:00
|
|
|
BTRFS_PROGS_SOURCE = btrfs-progs-v$(BTRFS_PROGS_VERSION).tar.xz
|
|
|
|
BTRFS_PROGS_DEPENDENCIES = acl attr e2fsprogs lzo util-linux zlib
|
2014-10-07 16:13:17 +02:00
|
|
|
BTRFS_PROGS_MAKE_FLAGS = DISABLE_DOCUMENTATION=1 \
|
|
|
|
$(if $(BR2_TOOLCHAIN_USES_UCLIBC),DISABLE_BACKTRACE=1)
|
2014-04-29 19:17:14 +02:00
|
|
|
BTRFS_PROGS_LICENSE = GPLv2
|
|
|
|
BTRFS_PROGS_LICENSE_FILES = COPYING
|
|
|
|
|
2014-08-30 14:51:44 +02:00
|
|
|
|
|
|
|
ifeq ($(BR2_PREFER_STATIC_LIB),y)
|
|
|
|
BTRFS_PROGS_MAKE_TARGET = static
|
|
|
|
BTRFS_PROGS_MAKE_INSTALL_TARGET = install-static
|
|
|
|
else
|
|
|
|
BTRFS_PROGS_MAKE_TARGET = all
|
|
|
|
BTRFS_PROGS_MAKE_INSTALL_TARGET = install
|
|
|
|
endif
|
|
|
|
|
2014-04-29 19:17:14 +02:00
|
|
|
define BTRFS_PROGS_BUILD_CMDS
|
2014-08-30 14:51:44 +02:00
|
|
|
$(MAKE) $(TARGET_CONFIGURE_OPTS) -C $(@D) \
|
|
|
|
$(BTRFS_PROGS_MAKE_FLAGS) $(BTRFS_PROGS_MAKE_TARGET)
|
2014-04-29 19:17:14 +02:00
|
|
|
endef
|
|
|
|
|
|
|
|
define BTRFS_PROGS_INSTALL_TARGET_CMDS
|
2014-08-30 14:51:44 +02:00
|
|
|
$(MAKE) -C $(@D) prefix=/usr DESTDIR=$(TARGET_DIR) \
|
|
|
|
$(BTRFS_PROGS_MAKE_FLAGS) $(BTRFS_PROGS_MAKE_INSTALL_TARGET)
|
2014-04-29 19:17:14 +02:00
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(generic-package))
|