2003-01-18 22:27:22 +01:00
|
|
|
#############################################################
|
|
|
|
#
|
|
|
|
# sfdisk support
|
|
|
|
#
|
|
|
|
#############################################################
|
|
|
|
SFDISK_SOURCE=sfdisk.tar.bz2
|
2003-02-12 15:19:49 +01:00
|
|
|
SFDISK_SITE:=http://www.uclibc.org/
|
2003-01-18 22:27:22 +01:00
|
|
|
SFDISK_DIR=$(BUILD_DIR)/sfdisk
|
|
|
|
|
|
|
|
$(DL_DIR)/$(SFDISK_SOURCE):
|
|
|
|
$(WGET) -P $(DL_DIR) $(SFDISK_SITE)/$(SFDISK_SOURCE)
|
|
|
|
|
|
|
|
$(SFDISK_DIR): $(DL_DIR)/$(SFDISK_SOURCE)
|
2004-10-09 23:19:47 +02:00
|
|
|
bzcat $(DL_DIR)/$(SFDISK_SOURCE) | tar -C $(BUILD_DIR) $(TAR_OPTIONS) -
|
2003-01-18 22:27:22 +01:00
|
|
|
|
|
|
|
$(SFDISK_DIR)/sfdisk: $(SFDISK_DIR)
|
2004-12-24 07:26:19 +01:00
|
|
|
$(MAKE) \
|
|
|
|
CROSS=$(TARGET_CROSS) DEBUG=false OPTIMIZATION="$(TARGET_CFLAGS)" \
|
|
|
|
-C $(SFDISK_DIR)
|
2003-01-18 22:27:22 +01:00
|
|
|
-$(STRIP) $(SFDISK_DIR)/sfdisk;
|
|
|
|
touch -c $(SFDISK_DIR)/sfdisk
|
|
|
|
|
|
|
|
$(TARGET_DIR)/sbin/sfdisk: $(SFDISK_DIR)/sfdisk
|
|
|
|
cp $(SFDISK_DIR)/sfdisk $(TARGET_DIR)/sbin/sfdisk;
|
|
|
|
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
|