2013-06-06 01:53:30 +02:00
|
|
|
################################################################################
|
2009-06-18 14:29:02 +02:00
|
|
|
#
|
|
|
|
# dosfstools
|
|
|
|
#
|
2013-06-06 01:53:30 +02:00
|
|
|
################################################################################
|
2012-04-11 14:27:04 +02:00
|
|
|
|
2013-11-26 12:48:55 +01:00
|
|
|
DOSFSTOOLS_VERSION = 3.0.24
|
2013-09-06 08:14:15 +02:00
|
|
|
DOSFSTOOLS_SOURCE = dosfstools-$(DOSFSTOOLS_VERSION).tar.xz
|
2013-06-09 04:37:14 +02:00
|
|
|
DOSFSTOOLS_SITE = http://daniel-baumann.ch/files/software/dosfstools
|
2013-01-22 04:35:46 +01:00
|
|
|
DOSFSTOOLS_LICENSE = GPLv3+
|
|
|
|
DOSFSTOOLS_LICENSE_FILES = COPYING
|
2013-03-01 07:24:04 +01:00
|
|
|
DOSFSTOOLS_LDFLAGS = $(TARGET_LDFLAGS)
|
|
|
|
|
2013-03-21 03:12:34 +01:00
|
|
|
# Avoid target dosfstools dependencies, no host-libiconv
|
|
|
|
HOST_DOSFSTOOLS_DEPENDENCIES =
|
|
|
|
|
2013-03-01 07:24:04 +01:00
|
|
|
ifneq ($(BR2_ENABLE_LOCALE),y)
|
|
|
|
DOSFSTOOLS_DEPENDENCIES += libiconv
|
|
|
|
DOSFSTOOLS_LDFLAGS += -liconv
|
|
|
|
endif
|
|
|
|
|
2013-06-10 16:14:31 +02:00
|
|
|
FATLABEL_BINARY = fatlabel
|
|
|
|
FSCK_FAT_BINARY = fsck.fat
|
|
|
|
MKFS_FAT_BINARY = mkfs.fat
|
2010-09-26 09:13:58 +02:00
|
|
|
|
|
|
|
define DOSFSTOOLS_BUILD_CMDS
|
2013-03-01 07:24:04 +01:00
|
|
|
$(MAKE) CFLAGS="$(TARGET_CFLAGS)" CC="$(TARGET_CC)" \
|
|
|
|
LDFLAGS="$(DOSFSTOOLS_LDFLAGS)" -C $(@D)
|
2010-09-26 09:13:58 +02:00
|
|
|
endef
|
|
|
|
|
2013-06-10 16:14:31 +02:00
|
|
|
DOSFSTOOLS_INSTALL_BIN_FILES_$(BR2_PACKAGE_DOSFSTOOLS_FATLABEL)+=$(FATLABEL_BINARY)
|
|
|
|
DOSFSTOOLS_INSTALL_BIN_FILES_$(BR2_PACKAGE_DOSFSTOOLS_FSCK_FAT)+=$(FSCK_FAT_BINARY)
|
|
|
|
DOSFSTOOLS_INSTALL_BIN_FILES_$(BR2_PACKAGE_DOSFSTOOLS_MKFS_FAT)+=$(MKFS_FAT_BINARY)
|
2010-09-26 09:13:58 +02:00
|
|
|
|
|
|
|
define DOSFSTOOLS_INSTALL_TARGET_CMDS
|
|
|
|
test -z "$(DOSFSTOOLS_INSTALL_BIN_FILES_y)" || \
|
2013-06-10 16:14:31 +02:00
|
|
|
$(INSTALL) -m 755 $(addprefix $(@D)/,$(DOSFSTOOLS_INSTALL_BIN_FILES_y)) \
|
|
|
|
$(TARGET_DIR)/sbin/
|
2010-09-26 09:13:58 +02:00
|
|
|
endef
|
|
|
|
|
2013-03-17 09:19:41 +01:00
|
|
|
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
|
|
|
|
|
2012-07-03 00:07:32 +02:00
|
|
|
$(eval $(generic-package))
|
2013-03-17 09:19:41 +01:00
|
|
|
$(eval $(host-generic-package))
|