dosfstools: convert to gentargets and bump to 3.0.10

[Peter: pass LDFLAGS, remove stripping]
Signed-off-by: Martin Banky <Martin.Banky@gmail.com>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
This commit is contained in:
Martin Banky 2010-09-26 00:13:58 -07:00 committed by Peter Korsgaard
parent 91e32e23f0
commit 3d840536cc
2 changed files with 38 additions and 78 deletions

23
CHANGES
View File

@ -19,17 +19,18 @@
Updated/fixed packages: alsa-lib, at, avahi, berkeleydb, bind, Updated/fixed packages: alsa-lib, at, avahi, berkeleydb, bind,
bmon, boa, bridge-utils, bsdiff, busybox, dbus, dmraid, bmon, boa, bridge-utils, bsdiff, busybox, dbus, dmraid,
docker, dropbear, e2fsprogs, expat, ezxml, fbset, freetype, docker, dosfstools, dropbear, e2fsprogs, expat, ezxml, fbset,
gawk, gvfs, haserl, hostapd, ifplugd, iperf, iproute2, freetype, gawk, gvfs, haserl, hostapd, ifplugd, iperf,
iptables, jpeg, kexec, kismet, less, libcurl, libdnet, iproute2, iptables, jpeg, kexec, kismet, less, libcurl,
libevent, libglade, libgtk2, libiconv, libidn, libmms, libnl, libdnet, libevent, libglade, libgtk2, libiconv, libidn,
liboil, libpcap, libpng, libungif, libxml2, libxslt, lighttpd, libmms, libnl, liboil, libpcap, libpng, libungif, libxml2,
lite, m4, mdadm, metacity, mtd-utils, mysql_client, nano, nbd, libxslt, lighttpd, lite, m4, mdadm, metacity, mtd-utils,
ncftp, neon, netperf, ntfsprogs, ntp, openntpd, openssh, mysql_client, nano, nbd, ncftp, neon, netperf, ntfsprogs, ntp,
openvpn, oprofile, pango, pcre, php, prboom, radvd, qt, samba, openntpd, openssh, openvpn, oprofile, pango, pcre, php,
sdl_mixer, sdl_sound, shared-mime-info, speex, sqlite, prboom, radvd, qt, samba, sdl_mixer, sdl_sound,
squashfs, strace, taglib, tcpdump, tiff, tn5250, udev, shared-mime-info, speex, sqlite, squashfs, strace, taglib,
udpcast, usbmount, usbutils, which, xlib_libX11, zlib tcpdump, tiff, tn5250, udev, udpcast, usbmount, usbutils,
which, xlib_libX11, zlib
Deprecated packages: hotplug, lzma Deprecated packages: hotplug, lzma

View File

@ -3,76 +3,35 @@
# dosfstools # dosfstools
# #
############################################################# #############################################################
DOSFSTOOLS_VERSION:=3.0.3 DOSFSTOOLS_VERSION = 3.0.10
DOSFSTOOLS_SOURCE:=dosfstools-$(DOSFSTOOLS_VERSION).tar.gz DOSFSTOOLS_SOURCE = dosfstools-$(DOSFSTOOLS_VERSION).tar.gz
DOSFSTOOLS_SITE:=http://www.daniel-baumann.ch/software/dosfstools DOSFSTOOLS_SITE = http://www.daniel-baumann.ch/software/dosfstools
DOSFSTOOLS_DIR:=$(BUILD_DIR)/dosfstools-$(DOSFSTOOLS_VERSION) MKDOSFS_BINARY = mkdosfs
DOSFSTOOLS_CAT:=$(ZCAT) DOSFSCK_BINARY = dosfsck
MKDOSFS_BINARY:=mkdosfs DOSFSLABEL_BINARY = dosfslabel
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): define DOSFSTOOLS_BUILD_CMDS
$(call DOWNLOAD,$(DOSFSTOOLS_SITE),$(DOSFSTOOLS_SOURCE)) $(MAKE) CFLAGS="$(TARGET_CFLAGS)" LDFLAGS="$(TARGET_LDFLAGS)" \
CC="$(TARGET_CC)" -C $(@D)
endef
dosfstools-source: $(DL_DIR)/$(DOSFSTOOLS_SOURCE) DOSFSTOOLS_INSTALL_BIN_FILES_$(BR2_PACKAGE_DOSFSTOOLS_MKDOSFS)+=$(MKDOSFS_BINARY)
DOSFSTOOLS_INSTALL_BIN_FILES_$(BR2_PACKAGE_DOSFSTOOLS_DOSFSCK)+=$(DOSFSCK_BINARY)
DOSFSTOOLS_INSTALL_BIN_FILES_$(BR2_PACKAGE_DOSFSTOOLS_DOSFSLABEL)+=$(DOSFSLABEL_BINARY)
$(DOSFSTOOLS_DIR)/.unpacked: $(DL_DIR)/$(DOSFSTOOLS_SOURCE) $(wildcard local/dosfstools/dosfstools*.patch) define DOSFSTOOLS_INSTALL_TARGET_CMDS
$(DOSFSTOOLS_CAT) $(DL_DIR)/$(DOSFSTOOLS_SOURCE) | tar -C $(BUILD_DIR) $(TAR_OPTIONS) - test -z "$(DOSFSTOOLS_INSTALL_BIN_FILES_y)" || \
toolchain/patch-kernel.sh $(DOSFSTOOLS_DIR) package/dosfstools/ dosfstools\*.patch install -m 755 $(addprefix $(@D)/,$(DOSFSTOOLS_INSTALL_BIN_FILES_y)) $(TARGET_DIR)/sbin/
touch $(DOSFSTOOLS_DIR)/.unpacked endef
$(DOSFSTOOLS_DIR)/.built : $(DOSFSTOOLS_DIR)/.unpacked define DOSFSTOOLS_UNINSTALL_TARGET_CMDS
$(MAKE) CFLAGS="$(TARGET_CFLAGS)" CC="$(TARGET_CC)" -C $(DOSFSTOOLS_DIR) rm -f $(TARGET_DIR)/sbin/$(MKDOSFS_BINARY)
$(STRIPCMD) $(DOSFSTOOLS_DIR)/$(MKDOSFS_BINARY) rm -f $(TARGET_DIR)/sbin/$(DOSFSCK_BINARY)
$(STRIPCMD) $(DOSFSTOOLS_DIR)/$(DOSFSCK_BINARY) rm -f $(TARGET_DIR)/sbin/$(DOSFSLABEL_BINARY)
$(STRIPCMD) $(DOSFSTOOLS_DIR)/$(DOSFSLABEL_BINARY) endef
touch $@
$(TARGET_DIR)/$(MKDOSFS_TARGET_BINARY): $(DOSFSTOOLS_DIR)/.built define DOSFSTOOLS_CLEAN_CMDS
cp -a $(DOSFSTOOLS_DIR)/$(MKDOSFS_BINARY) $@ -$(MAKE) -C $(@D) clean
touch -c $@ endef
$(TARGET_DIR)/$(DOSFSCK_TARGET_BINARY): $(DOSFSTOOLS_DIR)/.built $(eval $(call GENTARGETS,package,dosfstools))
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=
ifeq ($(BR2_PACKAGE_DOSFSTOOLS_MKDOSFS),y)
DOSFSTOOLS+=$(TARGET_DIR)/$(MKDOSFS_TARGET_BINARY)
endif
ifeq ($(BR2_PACKAGE_DOSFSTOOLS_DOSFSCK),y)
DOSFSTOOLS+=$(TARGET_DIR)/$(DOSFSCK_TARGET_BINARY)
endif
ifeq ($(BR2_PACKAGE_DOSFSTOOLS_DOSFSLABEL),y)
DOSFSTOOLS+=$(TARGET_DIR)/$(DOSFSLABEL_TARGET_BINARY)
endif
dosfstools: $(DOSFSTOOLS)
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),y)
TARGETS+=dosfstools
endif