python-dataproperty: bump version to 0.17.0
[buildroot-gz.git] / package / aufs-util / aufs-util.mk
blobd41b4ac4fdf35641f3b0a2943975041fa296277b
1 ################################################################################
3 # aufs-util
5 ################################################################################
7 # linux-headers
8 AUFS_UTIL_VERSION = $(call qstrip,$(BR2_PACKAGE_AUFS_UTIL_VERSION))
9 AUFS_UTIL_SITE = http://git.code.sf.net/p/aufs/aufs-util
10 AUFS_UTIL_SITE_METHOD = git
11 AUFS_UTIL_LICENSE = GPLv2
12 AUFS_UTIL_LICENSE_FILES = COPYING
14 AUFS_UTIL_DEPENDENCIES = linux
16 # Building aufs-util requires access to the kernel headers of aufs,
17 # which are only available in the kernel build directory, which is why
18 # we add -I$(LINUX_DIR)/include/uapi. These headers have not been
19 # prepared for usage by userspace, so to workaround this we have to
20 # defined the "__user" macro as empty.
21 AUFS_UTIL_HOST_CPPFLAGS = \
22 $(HOST_CPPFLAGS) \
23 -I$(LINUX_DIR)/include/uapi \
24 -D__user=
26 AUFS_UTIL_CPPFLAGS = \
27 $(TARGET_CPPFLAGS) \
28 -I$(LINUX_DIR)/include/uapi \
29 -D__user=
31 # rdu64 is supposed to provide the LFS variant of readdir(),
32 # readdir64(). However, because Buildroot is always LFS-enabled,
33 # readdir() is always the LFS variant. Drop rdu64 from the build, as
34 # it causes build failures due to multiple implementations of
35 # readdir64().
36 define AUFS_UTIL_REMOVE_RDU64
37 $(SED) 's% rdu64.o%%' $(@D)/libau/Makefile
38 endef
40 AUFS_UTIL_POST_PATCH_HOOKS += AUFS_UTIL_REMOVE_RDU64
42 # First, we build the host tools, needed to build the target tools.
43 define AUFS_UTIL_BUILD_CMDS
44 $(HOST_MAKE_ENV) $(MAKE) -C $(@D) \
45 $(HOST_CONFIGURE_OPTS) \
46 CPPFLAGS="$(AUFS_UTIL_HOST_CPPFLAGS)" \
47 HOSTCC="$(HOSTCC)" HOSTLD="$(HOSTLD)" \
48 INSTALL="$(INSTALL)" c2sh c2tmac
49 $(TARGET_MAKE_ENV) $(MAKE1) -C $(@D) \
50 $(TARGET_CONFIGURE_OPTS) \
51 CPPFLAGS="$(AUFS_UTIL_CPPFLAGS)" \
52 INSTALL="$(INSTALL)" all
53 endef
55 define AUFS_UTIL_INSTALL_TARGET_CMDS
56 $(TARGET_MAKE_ENV) $(MAKE) -C $(@D) INSTALL="$(INSTALL)" DESTDIR="$(TARGET_DIR)" install
57 endef
59 $(eval $(generic-package))