[Mod] First commit

This commit is contained in:
2022-10-31 22:18:58 +08:00
commit 1c8a3d9709
13090 changed files with 526733 additions and 0 deletions

View 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

View 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

View File

@ -0,0 +1,6 @@
# Locally calculated after checking pgp signature from
# https://github.com/dosfstools/dosfstools/releases/download/v4.2/dosfstools-4.2.tar.gz.sig
sha256 64926eebf90092dca21b14259a5301b7b98e7b1943e8a201c7d726084809b527 dosfstools-4.2.tar.gz
# Locally calculated
sha256 8ceb4b9ee5adedde47b31e975c1d90c73ad27b6b165a1dcd80c7c545eb65b903 COPYING

View File

@ -0,0 +1,60 @@
################################################################################
#
# dosfstools
#
################################################################################
DOSFSTOOLS_VERSION = 4.2
DOSFSTOOLS_SITE = https://github.com/dosfstools/dosfstools/releases/download/v$(DOSFSTOOLS_VERSION)
DOSFSTOOLS_LICENSE = GPL-3.0+
DOSFSTOOLS_LICENSE_FILES = COPYING
DOSFSTOOLS_CPE_ID_VENDOR = dosfstools_project
DOSFSTOOLS_SELINUX_MODULES = fstools
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),y)
define DOSFSTOOLS_INSTALL_FATLABEL
$(INSTALL) -D -m 0755 $(@D)/src/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 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
endef
endif
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
endef
endif
define DOSFSTOOLS_INSTALL_TARGET_CMDS
$(call DOSFSTOOLS_INSTALL_FATLABEL)
$(call DOSFSTOOLS_INSTALL_FSCK_FAT)
$(call DOSFSTOOLS_INSTALL_MKFS_FAT)
endef
$(eval $(autotools-package))
$(eval $(host-autotools-package))