2003-01-18 22:27:22 +01:00
|
|
|
#############################################################
|
|
|
|
#
|
|
|
|
# sfdisk support
|
|
|
|
#
|
|
|
|
#############################################################
|
2007-07-11 16:06:06 +02:00
|
|
|
SFDISK_VERSION:=
|
|
|
|
SFDISK_SOURCE=sfdisk$(SFDISK_VERSION).tar.bz2
|
2006-11-17 16:43:51 +01:00
|
|
|
SFDISK_CAT:=$(BZCAT)
|
2003-02-12 15:19:49 +01:00
|
|
|
SFDISK_SITE:=http://www.uclibc.org/
|
2007-07-11 16:06:06 +02:00
|
|
|
SFDISK_DIR=$(BUILD_DIR)/sfdisk$(SFDISK_VERSION)
|
2003-01-18 22:27:22 +01:00
|
|
|
|
|
|
|
$(DL_DIR)/$(SFDISK_SOURCE):
|
2009-01-16 12:42:52 +01:00
|
|
|
$(call DOWNLOAD,$(SFDISK_SITE),$(SFDISK_SOURCE))
|
2003-01-18 22:27:22 +01:00
|
|
|
|
2006-11-17 12:54:45 +01:00
|
|
|
$(SFDISK_DIR)/.patched: $(DL_DIR)/$(SFDISK_SOURCE)
|
2006-11-17 16:43:51 +01:00
|
|
|
$(SFDISK_CAT) $(DL_DIR)/$(SFDISK_SOURCE) | tar -C $(BUILD_DIR) $(TAR_OPTIONS) -
|
2006-11-17 12:54:45 +01:00
|
|
|
toolchain/patch-kernel.sh $(SFDISK_DIR) package/sfdisk/ sfdisk.\*.patch
|
|
|
|
touch $@
|
2007-08-22 14:35:41 +02:00
|
|
|
|
2003-01-18 22:27:22 +01:00
|
|
|
|
2006-11-17 12:54:45 +01:00
|
|
|
$(SFDISK_DIR)/sfdisk: $(SFDISK_DIR)/.patched
|
2004-12-24 07:26:19 +01:00
|
|
|
$(MAKE) \
|
|
|
|
CROSS=$(TARGET_CROSS) DEBUG=false OPTIMIZATION="$(TARGET_CFLAGS)" \
|
2009-11-23 15:10:53 +01:00
|
|
|
DOLFS=$(if $(BR2_LARGEFILE),true,false) -C $(SFDISK_DIR)
|
2007-10-01 18:15:31 +02:00
|
|
|
-$(STRIPCMD) $(SFDISK_DIR)/sfdisk
|
2003-01-18 22:27:22 +01:00
|
|
|
touch -c $(SFDISK_DIR)/sfdisk
|
|
|
|
|
|
|
|
$(TARGET_DIR)/sbin/sfdisk: $(SFDISK_DIR)/sfdisk
|
2007-08-21 21:20:18 +02:00
|
|
|
cp $(SFDISK_DIR)/sfdisk $(TARGET_DIR)/sbin/sfdisk
|
2003-01-18 22:27:22 +01:00
|
|
|
touch -c $(TARGET_DIR)/sbin/sfdisk
|
|
|
|
|
2009-09-02 17:02:02 +02:00
|
|
|
sfdisk: $(TARGET_DIR)/sbin/sfdisk
|
2003-01-18 22:27:22 +01:00
|
|
|
|
2003-11-12 10:31:12 +01:00
|
|
|
sfdisk-source: $(DL_DIR)/$(SFDISK_SOURCE)
|
|
|
|
|
2003-01-18 22:27:22 +01:00
|
|
|
sfdisk-clean:
|
|
|
|
rm -f $(TARGET_DIR)/sbin/sfdisk
|
|
|
|
-$(MAKE) -C $(SFDISK_DIR) clean
|
|
|
|
|
|
|
|
sfdisk-dirclean:
|
|
|
|
rm -rf $(SFDISK_DIR)
|
2005-02-10 04:06:39 +01:00
|
|
|
#############################################################
|
|
|
|
#
|
|
|
|
# Toplevel Makefile options
|
|
|
|
#
|
|
|
|
#############################################################
|
2008-12-08 09:15:27 +01:00
|
|
|
ifeq ($(BR2_PACKAGE_SFDISK),y)
|
2005-02-10 04:06:39 +01:00
|
|
|
TARGETS+=sfdisk
|
|
|
|
endif
|