665e13c85e
Since a while, the semantic of BR2_PREFER_STATIC_LIB has been changed from "prefer static libraries when possible" to "use only static libraries". The former semantic didn't make much sense, since the user had absolutely no control/idea of which package would use static libraries, and which packages would not. Therefore, for quite some time, we have been starting to enforce that BR2_PREFER_STATIC_LIB should really build everything with static libraries. As a consequence, this patch renames BR2_PREFER_STATIC_LIB to BR2_STATIC_LIBS, and adjust the Config.in option accordingly. This also helps preparing the addition of other options to select shared, shared+static or just static. Note that we have verified that this commit can be reproduced by simply doing a global rename of BR2_PREFER_STATIC_LIB to BR2_STATIC_LIBS plus adding BR2_PREFER_STATIC_LIB to Config.in.legacy. Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Reviewed-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
40 lines
1.2 KiB
Makefile
40 lines
1.2 KiB
Makefile
################################################################################
|
|
#
|
|
# btrfs-progs
|
|
#
|
|
################################################################################
|
|
|
|
BTRFS_PROGS_VERSION = 3.17.3
|
|
BTRFS_PROGS_SITE = https://www.kernel.org/pub/linux/kernel/people/kdave/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_MAKE_FLAGS = DISABLE_DOCUMENTATION=1 \
|
|
$(if $(BR2_TOOLCHAIN_USES_UCLIBC),DISABLE_BACKTRACE=1)
|
|
BTRFS_PROGS_LICENSE = GPLv2
|
|
BTRFS_PROGS_LICENSE_FILES = COPYING
|
|
|
|
|
|
ifeq ($(BR2_STATIC_LIBS),y)
|
|
BTRFS_PROGS_MAKE_TARGET = static
|
|
BTRFS_PROGS_MAKE_INSTALL_TARGET = install-static
|
|
ifeq ($(BR2_NEEDS_GETTEXT_IF_LOCALE),y)
|
|
# Add -lintl for libuuid
|
|
BTRFS_PROGS_MAKE_FLAGS += lib_LIBS="-luuid -lblkid -lm -lz -llzo2 -L. -lintl"
|
|
endif
|
|
else
|
|
BTRFS_PROGS_MAKE_TARGET = all
|
|
BTRFS_PROGS_MAKE_INSTALL_TARGET = install
|
|
endif
|
|
|
|
define BTRFS_PROGS_BUILD_CMDS
|
|
$(MAKE) $(TARGET_CONFIGURE_OPTS) -C $(@D) \
|
|
$(BTRFS_PROGS_MAKE_FLAGS) $(BTRFS_PROGS_MAKE_TARGET)
|
|
endef
|
|
|
|
define BTRFS_PROGS_INSTALL_TARGET_CMDS
|
|
$(MAKE) -C $(@D) prefix=/usr DESTDIR=$(TARGET_DIR) \
|
|
$(BTRFS_PROGS_MAKE_FLAGS) $(BTRFS_PROGS_MAKE_INSTALL_TARGET)
|
|
endef
|
|
|
|
$(eval $(generic-package))
|