Tcl build fix
[gumsense-br.git] / package / wipe / wipe.mk
blob28178bc514b1583a9e571fbc6ade7549e7f2e956
1 #############################################################
3 # wipe
5 # http://abaababa.ouvaton.org/wipe/wipe-0.20.tar.gz
6 #############################################################
7 WIPE_SOURCE:=wipe-0.20.tar.gz
8 #WIPE_PATCH:=wipe_0.2-19.diff.gz
9 WIPE_SITE:=http://abaababa.ouvaton.org/wipe
10 WIPE_CAT:=zcat
11 WIPE_DIR:=$(BUILD_DIR)/wipe-0.20
12 WIPE_BINARY:=wipe
13 WIPE_TARGET_BINARY:=bin/wipe
15 $(DL_DIR)/$(WIPE_SOURCE):
16 $(WGET) -P $(DL_DIR) $(WIPE_SITE)/$(WIPE_SOURCE)
18 ifneq ($(WIPE_PATCH),)
19 $(DL_DIR)/$(WIPE_PATCH):
20 $(WGET) -P $(DL_DIR) $(WIPE_SITE)/$(WIPE_PATCH)
21 endif
23 wipe-source: $(DL_DIR)/$(WIPE_SOURCE) $(DL_DIR)/$(WIPE_PATCH)
25 $(WIPE_DIR)/.unpacked: $(DL_DIR)/$(WIPE_SOURCE) $(DL_DIR)/$(WIPE_PATCH)
26 $(WIPE_CAT) $(DL_DIR)/$(WIPE_SOURCE) | tar -C $(BUILD_DIR) $(TAR_OPTIONS) -
27 #toolchain/patch-kernel.sh $(WIPE_DIR) $(DL_DIR) $(WIPE_PATCH)
28 touch $(WIPE_DIR)/.unpacked
30 $(WIPE_DIR)/.configured: $(WIPE_DIR)/.unpacked
31 touch $(WIPE_DIR)/.configured
33 $(WIPE_DIR)/$(WIPE_BINARY): $(WIPE_DIR)/.configured
34 $(MAKE) CC=$(TARGET_CC) -C $(WIPE_DIR) generic
36 $(TARGET_DIR)/$(WIPE_TARGET_BINARY): $(WIPE_DIR)/$(WIPE_BINARY)
37 cp -a $(WIPE_DIR)/$(WIPE_BINARY) $(TARGET_DIR)/$(WIPE_TARGET_BINARY)
39 wipe: uclibc $(TARGET_DIR)/$(WIPE_TARGET_BINARY)
41 wipe-clean:
42 #$(MAKE) DESTDIR=$(TARGET_DIR) CC=$(TARGET_CC) -C $(WIPE_DIR) uninstall
43 -$(MAKE) -C $(WIPE_DIR) clean
45 wipe-dirclean:
46 rm -rf $(WIPE_DIR)
48 #############################################################
50 # Toplevel Makefile options
52 #############################################################
53 ifeq ($(strip $(BR2_PACKAGE_WIPE)),y)
54 TARGETS+=wipe
55 endif