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
|
|
|
|
2021-03-12 22:56:35 +01:00
|
|
|
DOSFSTOOLS_VERSION = 4.2
|
2015-06-25 20:52:08 +02:00
|
|
|
DOSFSTOOLS_SITE = https://github.com/dosfstools/dosfstools/releases/download/v$(DOSFSTOOLS_VERSION)
|
2017-03-30 15:43:33 +02:00
|
|
|
DOSFSTOOLS_LICENSE = GPL-3.0+
|
2013-01-22 04:35:46 +01:00
|
|
|
DOSFSTOOLS_LICENSE_FILES = COPYING
|
2021-03-05 23:27:44 +01:00
|
|
|
DOSFSTOOLS_CPE_ID_VENDOR = dosfstools_project
|
2021-12-12 21:37:39 +01:00
|
|
|
DOSFSTOOLS_SELINUX_MODULES = fstools
|
2016-05-24 23:32:32 +02:00
|
|
|
DOSFSTOOLS_CONF_OPTS = --enable-compat-symlinks --exec-prefix=/
|
|
|
|
HOST_DOSFSTOOLS_CONF_OPTS = --enable-compat-symlinks
|
2013-03-01 07:24:04 +01:00
|
|
|
|
2016-05-24 23:32:32 +02: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 07:24:04 +01:00
|
|
|
ifneq ($(BR2_ENABLE_LOCALE),y)
|
2016-05-24 23:32:32 +02:00
|
|
|
DOSFSTOOLS_CONF_OPTS += LIBS="-liconv"
|
2013-03-01 07:24:04 +01:00
|
|
|
DOSFSTOOLS_DEPENDENCIES += libiconv
|
|
|
|
endif
|
|
|
|
|
2019-05-31 21:41:59 +02: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 17:14:06 +01:00
|
|
|
endef
|
|
|
|
endif
|
|
|
|
|
2019-05-31 21:41:59 +02: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 17:14:06 +01:00
|
|
|
endef
|
|
|
|
endif
|
|
|
|
|
2019-05-31 21:41:59 +02: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 17:14:06 +01:00
|
|
|
endef
|
|
|
|
endif
|
2010-09-26 09:13:58 +02:00
|
|
|
|
2019-05-31 21:41:59 +02:00
|
|
|
define DOSFSTOOLS_INSTALL_TARGET_CMDS
|
|
|
|
$(call DOSFSTOOLS_INSTALL_FATLABEL)
|
|
|
|
$(call DOSFSTOOLS_INSTALL_FSCK_FAT)
|
|
|
|
$(call DOSFSTOOLS_INSTALL_MKFS_FAT)
|
|
|
|
endef
|
|
|
|
|
2016-05-24 23:32:32 +02:00
|
|
|
$(eval $(autotools-package))
|
|
|
|
$(eval $(host-autotools-package))
|