I got following error while compiling btrfs-progs for ar71xx: make[4]: Entering directory `/home/stefan/openwrt/build_dir/target-mips_34kc_uClibc-0.9.33.2/btrfs-progs-v3.17.3' [LN] libbtrfs.so.0 [LN] libbtrfs.so [CC] btrfs-convert.o [LD] libbtrfs.so.0.1 /home/stefan/openwrt/staging_dir/target-mips_34kc_uClibc-0.9.33.2/usr/lib/libblkid.so: warning: This version of __fpending returns bytes remaining in buffer for both narrow and wide streams. glibc's version returns wide chars in buffer for the wide stream case. [LD] mkfs.btrfs [LD] btrfs [LD] btrfs-debug-tree [LD] btrfs-image [LD] btrfs-map-logical [LD] btrfs-zero-log [LD] btrfs-find-root btrfs-convert.c:30:21: fatal error: sys/acl.h: No such file or directory #include <sys/acl.h> ^ compilation terminated. make[4]: *** [btrfs-convert.o] Error 1 fix it by adding libacl as compile time dependency, as btrfs-convert is not linked to libacl. Signed-off-by: Stefan Hellermann <stefan@the2masters.de>
68 lines
1.9 KiB
Makefile
68 lines
1.9 KiB
Makefile
#
|
|
# Copyright (C) 2009-2014 OpenWrt.org
|
|
#
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
# See /LICENSE for more information.
|
|
#
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
PKG_NAME:=btrfs-progs
|
|
PKG_VERSION:=3.17.3
|
|
PKG_RELEASE:=1
|
|
|
|
PKG_SOURCE:=$(PKG_NAME)-v$(PKG_VERSION).tar.xz
|
|
PKG_SOURCE_URL:=@KERNEL/linux/kernel/people/kdave/btrfs-progs/
|
|
PKG_MD5SUM:=6716b4b109dd909af63ab3becbad67a6
|
|
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-v$(PKG_VERSION)
|
|
|
|
PKG_MAINTAINER:=Daniel Golle <daniel@makrotopia.org>
|
|
PKG_LICENSE:=GPL-2.0
|
|
PKG_LICENSE_FILES:=COPYING
|
|
|
|
PKG_INSTALL:=1
|
|
PKG_BUILD_PARALLEL:=1
|
|
PKG_BUILD_DEPENDS:=libacl
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
define Package/btrfs-progs
|
|
SECTION:=utils
|
|
CATEGORY:=Utilities
|
|
SUBMENU:=Filesystem
|
|
DEPENDS:=+attr +libuuid +zlib +libext2fs +libblkid +liblzo +libpthread
|
|
TITLE:=Btrfs filesystems utilities
|
|
URL:=http://btrfs.wiki.kernel.org/
|
|
endef
|
|
|
|
define Package/btrfs-progs/description
|
|
Btrfs is a new copy on write filesystem for Linux aimed at implementing
|
|
advanced features while focusing on fault tolerance, repair and easy
|
|
administration. Initially developed by Oracle, Btrfs is licensed under the
|
|
GPL and open for contribution from anyone.
|
|
endef
|
|
|
|
progs = btrfs btrfsck btrfs-convert btrfs-debug-tree btrfs-find-root \
|
|
btrfs-image btrfs-map-logical btrfs-show-super btrfstune \
|
|
btrfs-zero-log fsck.btrfs mkfs.btrfs
|
|
|
|
|
|
MAKE_FLAGS+=\
|
|
CC="$(TARGET_CC)" \
|
|
CFLAGS="$(TARGET_CPPFLAGS) $(TARGET_CFLAGS)" \
|
|
LDFLAGS="$(TARGET_LDFLAGS)" \
|
|
prefix=/usr \
|
|
DESTDIR=$(PKG_INSTALL_DIR) \
|
|
DISABLE_BACKTRACE=1 \
|
|
DISABLE_DOCUMENTATION=1
|
|
|
|
define Package/btrfs-progs/install
|
|
$(INSTALL_DIR) $(1)/usr/lib
|
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/lib/libbtrfs.so* $(1)/usr/lib
|
|
$(INSTALL_DIR) $(1)/usr/bin
|
|
$(INSTALL_BIN) $(addprefix $(PKG_INSTALL_DIR)/usr/bin/, $(progs)) $(1)/usr/bin/
|
|
$(INSTALL_DIR) $(1)/etc/init.d
|
|
$(INSTALL_BIN) ./files/btrfs-scan.init $(1)/etc/init.d/btrfs-scan
|
|
endef
|
|
|
|
$(eval $(call BuildPackage,btrfs-progs))
|