2003-01-18 22:27:22 +01:00
|
|
|
#############################################################
|
|
|
|
#
|
|
|
|
# mkdosfs
|
|
|
|
#
|
|
|
|
#############################################################
|
|
|
|
MKDOSFS_SOURCE=dosfstools-2.8.src.tar.gz
|
|
|
|
MKDOSFS_SITE=http://ftp.uni-erlangen.de/pub/Linux/LOCAL/dosfstools
|
|
|
|
MKDOSFS_DIR=$(BUILD_DIR)/dosfstools-2.8
|
|
|
|
MKDOSFS_CAT:=zcat
|
|
|
|
MKDOSFS_BINARY:=mkdosfs/mkdosfs
|
|
|
|
MKDOSFS_TARGET_BINARY:=sbin/mkdosfs
|
2004-10-09 03:06:03 +02:00
|
|
|
ifeq ($(BR2_LARGEFILE),y)
|
2003-01-18 23:39:31 +01:00
|
|
|
MKDOSFS_CFLAGS="-Os -g -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64"
|
2003-01-18 22:27:22 +01:00
|
|
|
else
|
|
|
|
MKDOSFS_CFLAGS="-Os -g"
|
|
|
|
endif
|
|
|
|
|
|
|
|
$(DL_DIR)/$(MKDOSFS_SOURCE):
|
|
|
|
$(WGET) -P $(DL_DIR) $(MKDOSFS_SITE)/$(MKDOSFS_SOURCE)
|
|
|
|
|
|
|
|
mkdosfs-source: $(DL_DIR)/$(MKDOSFS_SOURCE)
|
|
|
|
|
|
|
|
$(MKDOSFS_DIR)/.unpacked: $(DL_DIR)/$(MKDOSFS_SOURCE)
|
2004-10-09 23:19:47 +02:00
|
|
|
$(MKDOSFS_CAT) $(DL_DIR)/$(MKDOSFS_SOURCE) | tar -C $(BUILD_DIR) $(TAR_OPTIONS) -
|
2003-01-18 22:27:22 +01:00
|
|
|
touch $(MKDOSFS_DIR)/.unpacked
|
|
|
|
|
|
|
|
$(MKDOSFS_DIR)/$(MKDOSFS_BINARY): $(MKDOSFS_DIR)/.unpacked
|
2003-01-19 07:07:22 +01:00
|
|
|
$(MAKE) CFLAGS=$(MKDOSFS_CFLAGS) CC=$(TARGET_CC) -C $(MKDOSFS_DIR);
|
2003-01-18 22:27:22 +01:00
|
|
|
$(STRIP) $(MKDOSFS_DIR)/mkdosfs/mkdosfs;
|
|
|
|
touch -c $(MKDOSFS_DIR)/mkdosfs/mkdosfs
|
|
|
|
|
|
|
|
$(TARGET_DIR)/$(MKDOSFS_TARGET_BINARY): $(MKDOSFS_DIR)/$(MKDOSFS_BINARY)
|
|
|
|
cp -a $(MKDOSFS_DIR)/$(MKDOSFS_BINARY) $(TARGET_DIR)/$(MKDOSFS_TARGET_BINARY)
|
|
|
|
touch -c $(TARGET_DIR)/sbin/mkdosfs
|
|
|
|
|
|
|
|
mkdosfs: uclibc $(TARGET_DIR)/$(MKDOSFS_TARGET_BINARY)
|
|
|
|
|
|
|
|
mkdosfs-clean:
|
2003-01-19 07:07:22 +01:00
|
|
|
$(MAKE) DESTDIR=$(TARGET_DIR) CC=$(TARGET_CC) -C $(MKDOSFS_DIR) uninstall
|
2003-01-18 22:27:22 +01:00
|
|
|
-$(MAKE) -C $(MKDOSFS_DIR) clean
|
|
|
|
|
|
|
|
mkdosfs-dirclean:
|
|
|
|
rm -rf $(MKDOSFS_DIR)
|
|
|
|
|
2005-02-10 04:06:39 +01:00
|
|
|
#############################################################
|
|
|
|
#
|
|
|
|
# Toplevel Makefile options
|
|
|
|
#
|
|
|
|
#############################################################
|
|
|
|
ifeq ($(strip $(BR2_PACKAGE_MKDOSFS)),y)
|
|
|
|
TARGETS+=mkdosfs
|
|
|
|
endif
|