1################################################################################ 2# 3# dosfstools 4# 5################################################################################ 6 7DOSFSTOOLS_VERSION = 4.2 8DOSFSTOOLS_SITE = https://github.com/dosfstools/dosfstools/releases/download/v$(DOSFSTOOLS_VERSION) 9DOSFSTOOLS_LICENSE = GPL-3.0+ 10DOSFSTOOLS_LICENSE_FILES = COPYING 11DOSFSTOOLS_CPE_ID_VENDOR = dosfstools_project 12DOSFSTOOLS_CONF_OPTS = --enable-compat-symlinks --exec-prefix=/ 13HOST_DOSFSTOOLS_CONF_OPTS = --enable-compat-symlinks 14 15ifeq ($(BR2_PACKAGE_HAS_UDEV),y) 16DOSFSTOOLS_CONF_OPTS += --with-udev 17DOSFSTOOLS_DEPENDENCIES += udev 18else 19DOSFSTOOLS_CONF_OPTS += --without-udev 20endif 21 22ifneq ($(BR2_ENABLE_LOCALE),y) 23DOSFSTOOLS_CONF_OPTS += LIBS="-liconv" 24DOSFSTOOLS_DEPENDENCIES += libiconv 25endif 26 27ifeq ($(BR2_PACKAGE_DOSFSTOOLS_FATLABEL),y) 28define DOSFSTOOLS_INSTALL_FATLABEL 29 $(INSTALL) -D -m 0755 $(@D)/src/fatlabel $(TARGET_DIR)/sbin/fatlabel 30 ln -sf fatlabel $(TARGET_DIR)/sbin/dosfslabel 31endef 32endif 33 34ifeq ($(BR2_PACKAGE_DOSFSTOOLS_FSCK_FAT),y) 35define DOSFSTOOLS_INSTALL_FSCK_FAT 36 $(INSTALL) -D -m 0755 $(@D)/src/fsck.fat $(TARGET_DIR)/sbin/fsck.fat 37 ln -sf fsck.fat $(TARGET_DIR)/sbin/fsck.vfat 38 ln -sf fsck.fat $(TARGET_DIR)/sbin/fsck.msdos 39 ln -sf fsck.fat $(TARGET_DIR)/sbin/dosfsck 40endef 41endif 42 43ifeq ($(BR2_PACKAGE_DOSFSTOOLS_MKFS_FAT),y) 44define DOSFSTOOLS_INSTALL_MKFS_FAT 45 $(INSTALL) -D -m 0755 $(@D)/src/mkfs.fat $(TARGET_DIR)/sbin/mkfs.fat 46 ln -sf mkfs.fat $(TARGET_DIR)/sbin/mkdosfs 47 ln -sf mkfs.fat $(TARGET_DIR)/sbin/mkfs.msdos 48 ln -sf mkfs.fat $(TARGET_DIR)/sbin/mkfs.vfat 49endef 50endif 51 52define DOSFSTOOLS_INSTALL_TARGET_CMDS 53 $(call DOSFSTOOLS_INSTALL_FATLABEL) 54 $(call DOSFSTOOLS_INSTALL_FSCK_FAT) 55 $(call DOSFSTOOLS_INSTALL_MKFS_FAT) 56endef 57 58$(eval $(autotools-package)) 59$(eval $(host-autotools-package)) 60