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
|
|
|
|
2015-06-25 20:52:08 +02:00
|
|
|
DOSFSTOOLS_VERSION = 3.0.28
|
2013-09-06 08:14:15 +02:00
|
|
|
DOSFSTOOLS_SOURCE = dosfstools-$(DOSFSTOOLS_VERSION).tar.xz
|
2015-06-25 20:52:08 +02:00
|
|
|
DOSFSTOOLS_SITE = https://github.com/dosfstools/dosfstools/releases/download/v$(DOSFSTOOLS_VERSION)
|
2013-01-22 04:35:46 +01:00
|
|
|
DOSFSTOOLS_LICENSE = GPLv3+
|
|
|
|
DOSFSTOOLS_LICENSE_FILES = COPYING
|
2013-03-01 07:24:04 +01:00
|
|
|
|
2013-03-21 03:12:34 +01:00
|
|
|
# Avoid target dosfstools dependencies, no host-libiconv
|
|
|
|
HOST_DOSFSTOOLS_DEPENDENCIES =
|
|
|
|
|
2014-09-11 07:16:10 +02:00
|
|
|
DOSFSTOOLS_CFLAGS = $(TARGET_CFLAGS) -D_GNU_SOURCE
|
|
|
|
|
2013-03-01 07:24:04 +01:00
|
|
|
ifneq ($(BR2_ENABLE_LOCALE),y)
|
|
|
|
DOSFSTOOLS_DEPENDENCIES += libiconv
|
2014-05-22 22:05:42 +02:00
|
|
|
DOSFSTOOLS_LDLIBS += -liconv
|
2013-03-01 07:24:04 +01:00
|
|
|
endif
|
|
|
|
|
2010-09-26 09:13:58 +02:00
|
|
|
define DOSFSTOOLS_BUILD_CMDS
|
2014-09-11 07:16:10 +02:00
|
|
|
$(MAKE) $(TARGET_CONFIGURE_OPTS) \
|
|
|
|
CFLAGS="$(DOSFSTOOLS_CFLAGS)" LDLIBS="$(DOSFSTOOLS_LDLIBS)" -C $(@D)
|
2010-09-26 09:13:58 +02:00
|
|
|
endef
|
|
|
|
|
2015-01-19 17:14:06 +01:00
|
|
|
ifeq ($(BR2_PACKAGE_DOSFSTOOLS_FATLABEL),y)
|
|
|
|
define DOSFSTOOLS_INSTALL_FATLABEL
|
|
|
|
$(INSTALL) -D -m 755 $(@D)/fatlabel $(TARGET_DIR)/sbin/fatlabel
|
|
|
|
ln -sf fatlabel $(TARGET_DIR)/sbin/dosfslabel
|
|
|
|
endef
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_DOSFSTOOLS_FSCK_FAT),y)
|
|
|
|
define DOSFSTOOLS_INSTALL_FSCK_FAT
|
|
|
|
$(INSTALL) -D -m 755 $(@D)/fsck.fat $(TARGET_DIR)/sbin/fsck.fat
|
|
|
|
ln -fs fsck.fat $(TARGET_DIR)/sbin/dosfsck
|
|
|
|
ln -fs fsck.fat $(TARGET_DIR)/sbin/fsck.msdos
|
|
|
|
ln -fs fsck.fat $(TARGET_DIR)/sbin/fsck.vfat
|
|
|
|
endef
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_DOSFSTOOLS_MKFS_FAT),y)
|
|
|
|
define DOSFSTOOLS_INSTALL_MKFS_FAT
|
|
|
|
$(INSTALL) -D -m 755 $(@D)/mkfs.fat $(TARGET_DIR)/sbin/mkfs.fat
|
|
|
|
ln -fs mkfs.fat $(TARGET_DIR)/sbin/mkdosfs
|
|
|
|
ln -fs mkfs.fat $(TARGET_DIR)/sbin/mkfs.msdos
|
|
|
|
ln -fs mkfs.fat $(TARGET_DIR)/sbin/mkfs.vfat
|
|
|
|
endef
|
|
|
|
endif
|
2010-09-26 09:13:58 +02:00
|
|
|
|
|
|
|
define DOSFSTOOLS_INSTALL_TARGET_CMDS
|
2015-01-19 17:14:06 +01:00
|
|
|
$(DOSFSTOOLS_INSTALL_FATLABEL)
|
|
|
|
$(DOSFSTOOLS_INSTALL_FSCK_FAT)
|
|
|
|
$(DOSFSTOOLS_INSTALL_MKFS_FAT)
|
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))
|