Commit f26acf61 authored by Mike Crowe's avatar Mike Crowe Committed by Peter Korsgaard
Browse files

package: replace mkdosfs with dosfstools



Closes #451

Move from old unmaintained dosfstools-2.11 (packaged as mkdosfs) to
now maintained dosfstools-3.0.3.

Allow each binary to be installed independently.

Signed-off-by: default avatarMike Crowe <mac@mcrowe.com>
Tested-by: default avatarWill Newton <will.newton@gmail.com>
Signed-off-by: default avatarPeter Korsgaard <jacmet@sunsite.dk>
parent 76dade17
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -39,6 +39,7 @@
	#417: New package spawn-fcgi
	#419: Bump lighttpd package to 1.4.23
	#421: toolchain: Clean up toolchain locale support menu
	#451: Upgrade from unmaintained dosfstools-2.11 to dosfstools-3.0.3
	#467: DirectFB 1.4.1
	#473: memstat_0.5.tar.gz has install with -D and that fails "make"

+1 −1
Original line number Diff line number Diff line
@@ -236,6 +236,7 @@ source "package/dbus-glib/Config.in"
source "package/dbus-python/Config.in"
source "package/devmem2/Config.in"
source "package/dmraid/Config.in"
source "package/dosfstools/Config.in"
source "package/e2fsprogs/Config.in"
source "package/eeprog/Config.in"
source "package/fconfig/Config.in"
@@ -258,7 +259,6 @@ source "package/lm-sensors/Config.in"
source "package/lvm2/Config.in"
source "package/mdadm/Config.in"
source "package/memtester/Config.in"
source "package/mkdosfs/Config.in"
source "package/mtd/Config.in"
source "package/ntfs-3g/Config.in"
source "package/pciutils/Config.in"
+24 −0
Original line number Diff line number Diff line
config BR2_PACKAGE_DOSFSTOOLS
	bool "dosfstools"
	help
	  Tools for creating and checking DOS FAT filesystems.

	  http://www.daniel-baumann.ch/software/dosfstools/

config BR2_PACKAGE_DOSFSTOOLS_MKDOSFS
	bool "mkdosfs"
	depends on BR2_PACKAGE_DOSFSTOOLS
	help
	  Creates a DOS FAT filesystem on a device.

config BR2_PACKAGE_DOSFSTOOLS_DOSFSCK
	bool "dosfsck"
	depends on BR2_PACKAGE_DOSFSTOOLS
	help
	  Checks a DOS FAT filesystem.

config BR2_PACKAGE_DOSFSTOOLS_DOSFSLABEL
	bool "dosfslabel"
	depends on BR2_PACKAGE_DOSFSTOOLS
	help
	  Get or set the DOS FAT filesystem label.
+73 −0
Original line number Diff line number Diff line
#############################################################
#
# dosfstools
#
#############################################################
DOSFSTOOLS_VERSION:=3.0.3
DOSFSTOOLS_SOURCE:=dosfstools-$(DOSFSTOOLS_VERSION).tar.gz
DOSFSTOOLS_SITE:=http://www.daniel-baumann.ch/software/dosfstools
DOSFSTOOLS_DIR:=$(BUILD_DIR)/dosfstools-$(DOSFSTOOLS_VERSION)
DOSFSTOOLS_CAT:=$(ZCAT)
MKDOSFS_BINARY:=mkdosfs
MKDOSFS_TARGET_BINARY:=sbin/mkdosfs
DOSFSCK_BINARY:=dosfsck
DOSFSCK_TARGET_BINARY:=sbin/dosfsck
DOSFSLABEL_BINARY:=dosfslabel
DOSFSLABEL_TARGET_BINARY:=sbin/dosfslabel

$(DL_DIR)/$(DOSFSTOOLS_SOURCE):
	 $(call DOWNLOAD,$(DOSFSTOOLS_SITE),$(DOSFSTOOLS_SOURCE))

dosfstools-source: $(DL_DIR)/$(DOSFSTOOLS_SOURCE)

$(DOSFSTOOLS_DIR)/.unpacked: $(DL_DIR)/$(DOSFSTOOLS_SOURCE) $(wildcard local/dosfstools/dosfstools*.patch)
	$(DOSFSTOOLS_CAT) $(DL_DIR)/$(DOSFSTOOLS_SOURCE) | tar -C $(BUILD_DIR) $(TAR_OPTIONS) -
	toolchain/patch-kernel.sh $(DOSFSTOOLS_DIR) package/dosfstools/ dosfstools\*.patch
	touch $(DOSFSTOOLS_DIR)/.unpacked

$(DOSFSTOOLS_DIR)/.built : $(DOSFSTOOLS_DIR)/.unpacked
	$(MAKE) CFLAGS="$(TARGET_CFLAGS)" CC="$(TARGET_CC)" -C $(DOSFSTOOLS_DIR)
	$(STRIPCMD) $(DOSFSTOOLS_DIR)/$(MKDOSFS_BINARY)
	$(STRIPCMD) $(DOSFSTOOLS_DIR)/$(DOSFSCK_BINARY)
	$(STRIPCMD) $(DOSFSTOOLS_DIR)/$(DOSFSLABEL_BINARY)
	touch $@

$(TARGET_DIR)/$(MKDOSFS_TARGET_BINARY): $(DOSFSTOOLS_DIR)/.built
	cp -a $(DOSFSTOOLS_DIR)/$(MKDOSFS_BINARY) $@
	touch -c $@

$(TARGET_DIR)/$(DOSFSCK_TARGET_BINARY): $(DOSFSTOOLS_DIR)/.built
	cp -a $(DOSFSTOOLS_DIR)/$(DOSFSCK_BINARY) $@
	touch -c $@

$(TARGET_DIR)/$(DOSFSLABEL_TARGET_BINARY): $(DOSFSTOOLS_DIR)/.built
	cp -a $(DOSFSTOOLS_DIR)/$(DOSFSLABEL_BINARY) $@
	touch -c $@

dosfstools: uclibc $(TARGET_DIR)/$(DOSFSTOOLS_TARGET_BINARY) $(TARGET_DIR)/$(DOSFSCK_TARGET_BINARY)

dosfstools-clean:
	rm -f $(TARGET_DIR)/$(MKDOSFS_TARGET_BINARY)
	rm -f $(TARGET_DIR)/$(DOSFSCK_TARGET_BINARY)
	rm -f $(TARGET_DIR)/$(DOSFSLABEL_TARGET_BINARY)
	-$(MAKE) -C $(DOSFSTOOLS_DIR) clean

dosfstools-dirclean:
	rm -rf $(DOSFSTOOLS_DIR)

#############################################################
#
# Toplevel Makefile options
#
#############################################################
ifeq ($(BR2_PACKAGE_DOSFSTOOLS_MKDOSFS),y)
TARGETS+=$(TARGET_DIR)/$(MKDOSFS_TARGET_BINARY)
endif

ifeq ($(BR2_PACKAGE_DOSFSTOOLS_DOSFSCK),y)
TARGETS+=$(TARGET_DIR)/$(DOSFSCK_TARGET_BINARY)
endif

ifeq ($(BR2_PACKAGE_DOSFSTOOLS_DOSFSLABEL),y)
TARGETS+=$(TARGET_DIR)/$(DOSFSLABEL_TARGET_BINARY)
endif

package/mkdosfs/Config.in

deleted100644 → 0
+0 −6
Original line number Diff line number Diff line
config BR2_PACKAGE_MKDOSFS
	bool "mkdosfs"
	help
	  Creates a DOS FAT filesystem on a device.

	  ftp://ftp.uni-erlangen.de/pub/Linux/LOCAL/dosfstools/
Loading