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):
|
|
|
|
$(WGET) -P $(DL_DIR) $(SFDISK_SITE)/$(SFDISK_SOURCE)
|
|
|
|
|
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)" \
|
|
|
|
-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
|
|
|
|
|
|
|
|
sfdisk: uclibc $(TARGET_DIR)/sbin/sfdisk
|
|
|
|
|
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
|
|
|
|
#
|
|
|
|
#############################################################
|
|
|
|
ifeq ($(strip $(BR2_PACKAGE_SFDISK)),y)
|
|
|
|
TARGETS+=sfdisk
|
|
|
|
endif
|