Add buildroot 2018-02
This commit is contained in:
30
buildroot/package/dosfstools/Config.in
Normal file
30
buildroot/package/dosfstools/Config.in
Normal file
@@ -0,0 +1,30 @@
|
||||
config BR2_PACKAGE_DOSFSTOOLS
|
||||
bool "dosfstools"
|
||||
depends on BR2_USE_WCHAR
|
||||
select BR2_PACKAGE_LIBICONV if !BR2_ENABLE_LOCALE
|
||||
help
|
||||
Tools for creating and checking DOS FAT filesystems.
|
||||
|
||||
https://github.com/dosfstools/dosfstools
|
||||
|
||||
if BR2_PACKAGE_DOSFSTOOLS
|
||||
|
||||
config BR2_PACKAGE_DOSFSTOOLS_FATLABEL
|
||||
bool "fatlabel"
|
||||
help
|
||||
Get or set the DOS FAT filesystem label.
|
||||
|
||||
config BR2_PACKAGE_DOSFSTOOLS_FSCK_FAT
|
||||
bool "fsck.fat"
|
||||
help
|
||||
Check a DOS FAT filesystem.
|
||||
|
||||
config BR2_PACKAGE_DOSFSTOOLS_MKFS_FAT
|
||||
bool "mkfs.fat"
|
||||
help
|
||||
Creates a DOS FAT filesystem on a device.
|
||||
|
||||
endif
|
||||
|
||||
comment "dosfstools needs a toolchain w/ wchar"
|
||||
depends on !BR2_USE_WCHAR
|
||||
6
buildroot/package/dosfstools/Config.in.host
Normal file
6
buildroot/package/dosfstools/Config.in.host
Normal file
@@ -0,0 +1,6 @@
|
||||
config BR2_PACKAGE_HOST_DOSFSTOOLS
|
||||
bool "host dosfstools"
|
||||
help
|
||||
Tools for creating and checking DOS FAT filesystems.
|
||||
|
||||
https://github.com/dosfstools/dosfstools
|
||||
2
buildroot/package/dosfstools/dosfstools.hash
Normal file
2
buildroot/package/dosfstools/dosfstools.hash
Normal file
@@ -0,0 +1,2 @@
|
||||
# Locally calculated after checking pgp signature
|
||||
sha256 e6b2aca70ccc3fe3687365009dd94a2e18e82b688ed4e260e04b7412471cc173 dosfstools-4.1.tar.xz
|
||||
49
buildroot/package/dosfstools/dosfstools.mk
Normal file
49
buildroot/package/dosfstools/dosfstools.mk
Normal file
@@ -0,0 +1,49 @@
|
||||
################################################################################
|
||||
#
|
||||
# dosfstools
|
||||
#
|
||||
################################################################################
|
||||
|
||||
DOSFSTOOLS_VERSION = 4.1
|
||||
DOSFSTOOLS_SOURCE = dosfstools-$(DOSFSTOOLS_VERSION).tar.xz
|
||||
DOSFSTOOLS_SITE = https://github.com/dosfstools/dosfstools/releases/download/v$(DOSFSTOOLS_VERSION)
|
||||
DOSFSTOOLS_LICENSE = GPL-3.0+
|
||||
DOSFSTOOLS_LICENSE_FILES = COPYING
|
||||
DOSFSTOOLS_CONF_OPTS = --enable-compat-symlinks --exec-prefix=/
|
||||
HOST_DOSFSTOOLS_CONF_OPTS = --enable-compat-symlinks
|
||||
|
||||
ifeq ($(BR2_PACKAGE_HAS_UDEV),y)
|
||||
DOSFSTOOLS_CONF_OPTS += --with-udev
|
||||
DOSFSTOOLS_DEPENDENCIES += udev
|
||||
else
|
||||
DOSFSTOOLS_CONF_OPTS += --without-udev
|
||||
endif
|
||||
|
||||
ifneq ($(BR2_ENABLE_LOCALE),y)
|
||||
DOSFSTOOLS_CONF_OPTS += LIBS="-liconv"
|
||||
DOSFSTOOLS_DEPENDENCIES += libiconv
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_DOSFSTOOLS_FATLABEL),)
|
||||
define DOSFSTOOLS_REMOVE_FATLABEL
|
||||
rm -f $(addprefix $(TARGET_DIR)/sbin/,dosfslabel fatlabel)
|
||||
endef
|
||||
DOSFSTOOLS_POST_INSTALL_TARGET_HOOKS += DOSFSTOOLS_REMOVE_FATLABEL
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_DOSFSTOOLS_FSCK_FAT),)
|
||||
define DOSFSTOOLS_REMOVE_FSCK_FAT
|
||||
rm -f $(addprefix $(TARGET_DIR)/sbin/,fsck.fat dosfsck fsck.msdos fsck.vfat)
|
||||
endef
|
||||
DOSFSTOOLS_POST_INSTALL_TARGET_HOOKS += DOSFSTOOLS_REMOVE_FSCK_FAT
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_DOSFSTOOLS_MKFS_FAT),)
|
||||
define DOSFSTOOLS_REMOVE_MKFS_FAT
|
||||
rm -f $(addprefix $(TARGET_DIR)/sbin/,mkfs.fat mkdosfs mkfs.msdos mkfs.vfat)
|
||||
endef
|
||||
DOSFSTOOLS_POST_INSTALL_TARGET_HOOKS += DOSFSTOOLS_REMOVE_MKFS_FAT
|
||||
endif
|
||||
|
||||
$(eval $(autotools-package))
|
||||
$(eval $(host-autotools-package))
|
||||
Reference in New Issue
Block a user