2013-06-05 23:53:30 +00:00
|
|
|
################################################################################
|
2009-06-18 13:29:02 +01:00
|
|
|
#
|
|
|
|
|
# dosfstools
|
|
|
|
|
#
|
2013-06-05 23:53:30 +00:00
|
|
|
################################################################################
|
2012-04-11 09:27:04 -03:00
|
|
|
|
2017-05-26 00:56:20 +02:00
|
|
|
DOSFSTOOLS_VERSION = 4.1
|
2013-09-06 08:14:15 +02:00
|
|
|
DOSFSTOOLS_SOURCE = dosfstools-$(DOSFSTOOLS_VERSION).tar.xz
|
2015-06-25 15:52:08 -03:00
|
|
|
DOSFSTOOLS_SITE = https://github.com/dosfstools/dosfstools/releases/download/v$(DOSFSTOOLS_VERSION)
|
2017-03-30 19:13:33 +05:30
|
|
|
DOSFSTOOLS_LICENSE = GPL-3.0+
|
2013-01-22 03:35:46 +00:00
|
|
|
DOSFSTOOLS_LICENSE_FILES = COPYING
|
2016-05-24 18:32:32 -03:00
|
|
|
DOSFSTOOLS_CONF_OPTS = --enable-compat-symlinks --exec-prefix=/
|
|
|
|
|
HOST_DOSFSTOOLS_CONF_OPTS = --enable-compat-symlinks
|
2013-03-01 06:24:04 +00:00
|
|
|
|
2016-05-24 18:32:32 -03:00
|
|
|
ifeq ($(BR2_PACKAGE_HAS_UDEV),y)
|
|
|
|
|
DOSFSTOOLS_CONF_OPTS += --with-udev
|
|
|
|
|
DOSFSTOOLS_DEPENDENCIES += udev
|
|
|
|
|
else
|
|
|
|
|
DOSFSTOOLS_CONF_OPTS += --without-udev
|
|
|
|
|
endif
|
2014-09-11 07:16:10 +02:00
|
|
|
|
2013-03-01 06:24:04 +00:00
|
|
|
ifneq ($(BR2_ENABLE_LOCALE),y)
|
2016-05-24 18:32:32 -03:00
|
|
|
DOSFSTOOLS_CONF_OPTS += LIBS="-liconv"
|
2013-03-01 06:24:04 +00:00
|
|
|
DOSFSTOOLS_DEPENDENCIES += libiconv
|
|
|
|
|
endif
|
|
|
|
|
|
2019-05-31 12:41:59 -07:00
|
|
|
ifeq ($(BR2_PACKAGE_DOSFSTOOLS_FATLABEL),y)
|
|
|
|
|
define DOSFSTOOLS_INSTALL_FATLABEL
|
|
|
|
|
$(INSTALL) -D -m 0755 $(@D)/src/fatlabel $(TARGET_DIR)/sbin/fatlabel
|
|
|
|
|
ln -sf fatlabel $(TARGET_DIR)/sbin/dosfslabel
|
2015-01-19 18:14:06 +02:00
|
|
|
endef
|
|
|
|
|
endif
|
|
|
|
|
|
2019-05-31 12:41:59 -07:00
|
|
|
ifeq ($(BR2_PACKAGE_DOSFSTOOLS_FSCK_FAT),y)
|
|
|
|
|
define DOSFSTOOLS_INSTALL_FSCK_FAT
|
|
|
|
|
$(INSTALL) -D -m 0755 $(@D)/src/fsck.fat $(TARGET_DIR)/sbin/fsck.fat
|
|
|
|
|
ln -sf fsck.fat $(TARGET_DIR)/sbin/fsck.vfat
|
|
|
|
|
ln -sf fsck.fat $(TARGET_DIR)/sbin/fsck.msdos
|
|
|
|
|
ln -sf fsck.fat $(TARGET_DIR)/sbin/dosfsck
|
2015-01-19 18:14:06 +02:00
|
|
|
endef
|
|
|
|
|
endif
|
|
|
|
|
|
2019-05-31 12:41:59 -07:00
|
|
|
ifeq ($(BR2_PACKAGE_DOSFSTOOLS_MKFS_FAT),y)
|
|
|
|
|
define DOSFSTOOLS_INSTALL_MKFS_FAT
|
|
|
|
|
$(INSTALL) -D -m 0755 $(@D)/src/mkfs.fat $(TARGET_DIR)/sbin/mkfs.fat
|
|
|
|
|
ln -sf mkfs.fat $(TARGET_DIR)/sbin/mkdosfs
|
|
|
|
|
ln -sf mkfs.fat $(TARGET_DIR)/sbin/mkfs.msdos
|
|
|
|
|
ln -sf mkfs.fat $(TARGET_DIR)/sbin/mkfs.vfat
|
2015-01-19 18:14:06 +02:00
|
|
|
endef
|
|
|
|
|
endif
|
2010-09-26 00:13:58 -07:00
|
|
|
|
2019-05-31 12:41:59 -07:00
|
|
|
define DOSFSTOOLS_INSTALL_TARGET_CMDS
|
|
|
|
|
$(call DOSFSTOOLS_INSTALL_FATLABEL)
|
|
|
|
|
$(call DOSFSTOOLS_INSTALL_FSCK_FAT)
|
|
|
|
|
$(call DOSFSTOOLS_INSTALL_MKFS_FAT)
|
|
|
|
|
endef
|
|
|
|
|
|
2016-05-24 18:32:32 -03:00
|
|
|
$(eval $(autotools-package))
|
|
|
|
|
$(eval $(host-autotools-package))
|