2006-01-23 19:12:10 +01:00
|
|
|
#############################################################
|
|
|
|
#
|
|
|
|
# wipe
|
|
|
|
#
|
2007-07-11 16:06:06 +02:00
|
|
|
# http://abaababa.ouvaton.org/wipe/wipe-$(WIPE_VERSION).tar.gz
|
2006-01-23 19:12:10 +01:00
|
|
|
#############################################################
|
2007-07-11 16:06:06 +02:00
|
|
|
WIPE_VERSION:=0.20
|
|
|
|
WIPE_SOURCE:=wipe-$(WIPE_VERSION).tar.gz
|
2006-01-23 19:12:10 +01:00
|
|
|
#WIPE_PATCH:=wipe_0.2-19.diff.gz
|
|
|
|
WIPE_SITE:=http://abaababa.ouvaton.org/wipe
|
2006-10-01 17:17:52 +02:00
|
|
|
WIPE_CAT:=$(ZCAT)
|
2007-07-11 16:06:06 +02:00
|
|
|
WIPE_DIR:=$(BUILD_DIR)/wipe-$(WIPE_VERSION)
|
2006-01-23 19:12:10 +01:00
|
|
|
WIPE_BINARY:=wipe
|
|
|
|
WIPE_TARGET_BINARY:=bin/wipe
|
|
|
|
|
|
|
|
$(DL_DIR)/$(WIPE_SOURCE):
|
|
|
|
$(WGET) -P $(DL_DIR) $(WIPE_SITE)/$(WIPE_SOURCE)
|
|
|
|
|
2006-02-15 01:38:06 +01:00
|
|
|
ifneq ($(WIPE_PATCH),)
|
2006-01-23 19:12:10 +01:00
|
|
|
$(DL_DIR)/$(WIPE_PATCH):
|
|
|
|
$(WGET) -P $(DL_DIR) $(WIPE_SITE)/$(WIPE_PATCH)
|
2006-02-15 01:38:06 +01:00
|
|
|
endif
|
2006-01-23 19:12:10 +01:00
|
|
|
|
|
|
|
wipe-source: $(DL_DIR)/$(WIPE_SOURCE) $(DL_DIR)/$(WIPE_PATCH)
|
|
|
|
|
|
|
|
$(WIPE_DIR)/.unpacked: $(DL_DIR)/$(WIPE_SOURCE) $(DL_DIR)/$(WIPE_PATCH)
|
|
|
|
$(WIPE_CAT) $(DL_DIR)/$(WIPE_SOURCE) | tar -C $(BUILD_DIR) $(TAR_OPTIONS) -
|
2006-01-24 22:18:47 +01:00
|
|
|
#toolchain/patch-kernel.sh $(WIPE_DIR) $(DL_DIR) $(WIPE_PATCH)
|
2006-01-23 19:12:10 +01:00
|
|
|
touch $(WIPE_DIR)/.unpacked
|
|
|
|
|
|
|
|
$(WIPE_DIR)/.configured: $(WIPE_DIR)/.unpacked
|
2007-08-22 14:35:41 +02:00
|
|
|
touch $@
|
2006-01-23 19:12:10 +01:00
|
|
|
|
|
|
|
$(WIPE_DIR)/$(WIPE_BINARY): $(WIPE_DIR)/.configured
|
2007-07-17 19:05:58 +02:00
|
|
|
rm -f $(WIPE_DIR)/$(WIPE_BINARY)
|
2007-11-27 09:26:46 +01:00
|
|
|
$(MAKE) CC=$(TARGET_CC) CC_GENERIC=$(TARGET_CC) -C $(WIPE_DIR) generic
|
2006-01-23 19:12:10 +01:00
|
|
|
|
|
|
|
$(TARGET_DIR)/$(WIPE_TARGET_BINARY): $(WIPE_DIR)/$(WIPE_BINARY)
|
|
|
|
cp -a $(WIPE_DIR)/$(WIPE_BINARY) $(TARGET_DIR)/$(WIPE_TARGET_BINARY)
|
|
|
|
|
|
|
|
wipe: uclibc $(TARGET_DIR)/$(WIPE_TARGET_BINARY)
|
|
|
|
|
|
|
|
wipe-clean:
|
2006-01-24 22:18:47 +01:00
|
|
|
#$(MAKE) DESTDIR=$(TARGET_DIR) CC=$(TARGET_CC) -C $(WIPE_DIR) uninstall
|
2006-01-23 19:12:10 +01:00
|
|
|
-$(MAKE) -C $(WIPE_DIR) clean
|
|
|
|
|
|
|
|
wipe-dirclean:
|
|
|
|
rm -rf $(WIPE_DIR)
|
|
|
|
|
|
|
|
#############################################################
|
|
|
|
#
|
|
|
|
# Toplevel Makefile options
|
|
|
|
#
|
|
|
|
#############################################################
|
|
|
|
ifeq ($(strip $(BR2_PACKAGE_WIPE)),y)
|
|
|
|
TARGETS+=wipe
|
|
|
|
endif
|