fc53ebdca5
host-dosfstools shouldn't pull host-libiconv in since that's for uClibc-based toolchains and we don't have that package anyway. Fixes: http://autobuild.buildroot.net/results/7637985bfb0afdd9217c297e9b0ac5de797c137d/ Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar> Acked-by: "Yann E. MORIN" <yann.morin.1998@free.fr> Acked-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
59 lines
1.6 KiB
Makefile
59 lines
1.6 KiB
Makefile
#############################################################
|
|
#
|
|
# dosfstools
|
|
#
|
|
#############################################################
|
|
|
|
DOSFSTOOLS_VERSION = 3.0.16
|
|
DOSFSTOOLS_SITE = http://fossies.org/linux/misc
|
|
DOSFSTOOLS_LICENSE = GPLv3+
|
|
DOSFSTOOLS_LICENSE_FILES = COPYING
|
|
DOSFSTOOLS_LDFLAGS = $(TARGET_LDFLAGS)
|
|
|
|
# Avoid target dosfstools dependencies, no host-libiconv
|
|
HOST_DOSFSTOOLS_DEPENDENCIES =
|
|
|
|
ifneq ($(BR2_ENABLE_LOCALE),y)
|
|
DOSFSTOOLS_DEPENDENCIES += libiconv
|
|
DOSFSTOOLS_LDFLAGS += -liconv
|
|
endif
|
|
|
|
MKDOSFS_BINARY = mkdosfs
|
|
DOSFSCK_BINARY = dosfsck
|
|
DOSFSLABEL_BINARY = dosfslabel
|
|
|
|
define DOSFSTOOLS_BUILD_CMDS
|
|
$(MAKE) CFLAGS="$(TARGET_CFLAGS)" CC="$(TARGET_CC)" \
|
|
LDFLAGS="$(DOSFSTOOLS_LDFLAGS)" -C $(@D)
|
|
endef
|
|
|
|
DOSFSTOOLS_INSTALL_BIN_FILES_$(BR2_PACKAGE_DOSFSTOOLS_MKDOSFS)+=$(MKDOSFS_BINARY)
|
|
DOSFSTOOLS_INSTALL_BIN_FILES_$(BR2_PACKAGE_DOSFSTOOLS_DOSFSCK)+=$(DOSFSCK_BINARY)
|
|
DOSFSTOOLS_INSTALL_BIN_FILES_$(BR2_PACKAGE_DOSFSTOOLS_DOSFSLABEL)+=$(DOSFSLABEL_BINARY)
|
|
|
|
define DOSFSTOOLS_INSTALL_TARGET_CMDS
|
|
test -z "$(DOSFSTOOLS_INSTALL_BIN_FILES_y)" || \
|
|
install -m 755 $(addprefix $(@D)/,$(DOSFSTOOLS_INSTALL_BIN_FILES_y)) $(TARGET_DIR)/sbin/
|
|
endef
|
|
|
|
define DOSFSTOOLS_UNINSTALL_TARGET_CMDS
|
|
rm -f $(TARGET_DIR)/sbin/$(MKDOSFS_BINARY)
|
|
rm -f $(TARGET_DIR)/sbin/$(DOSFSCK_BINARY)
|
|
rm -f $(TARGET_DIR)/sbin/$(DOSFSLABEL_BINARY)
|
|
endef
|
|
|
|
define DOSFSTOOLS_CLEAN_CMDS
|
|
-$(MAKE) -C $(@D) clean
|
|
endef
|
|
|
|
define HOST_DOSFSTOOLS_BUILD_CMDS
|
|
$(MAKE) $(HOST_CONFIGURE_OPTS) -C $(@D)
|
|
endef
|
|
|
|
define HOST_DOSFSTOOLS_INSTALL_CMDS
|
|
$(MAKE) -C $(@D) $(HOST_CONFIGURE_OPTS) PREFIX=$(HOST_DIR)/usr install
|
|
endef
|
|
|
|
$(eval $(generic-package))
|
|
$(eval $(host-generic-package))
|