2006-01-23 19:12:10 +01:00
|
|
|
#############################################################
|
|
|
|
#
|
|
|
|
# wipe
|
|
|
|
#
|
|
|
|
#############################################################
|
|
|
|
|
2011-01-11 18:26:26 +01:00
|
|
|
WIPE_VERSION = 0.22
|
|
|
|
WIPE_SITE = http://lambda-diode.com/resources/wipe
|
|
|
|
WIPE_CFLAGS = $(TARGET_CFLAGS) -DHAVE_DEV_URANDOM -DHAVE_OSYNC -DHAVE_STRCASECMP -DHAVE_RANDOM -DSYNC_WAITS_FOR_SYNC -DFIND_DEVICE_SIZE_BY_BLKGETSIZE
|
2006-01-23 19:12:10 +01:00
|
|
|
|
2011-01-11 18:26:26 +01:00
|
|
|
ifeq ($(BR2_LARGEFILE),y)
|
|
|
|
WIPE_CFLAGS += -DSIXTYFOUR
|
2006-02-15 01:38:06 +01:00
|
|
|
endif
|
2006-01-23 19:12:10 +01:00
|
|
|
|
2011-01-11 18:26:26 +01:00
|
|
|
define WIPE_BUILD_CMDS
|
|
|
|
# Fix busted git version logic
|
|
|
|
$(SED) "s/which/!which/" $(@D)/Makefile
|
|
|
|
$(MAKE) -C $(@D) linux CC_LINUX="$(TARGET_CC)" \
|
|
|
|
CCO_LINUX="$(WIPE_CFLAGS)"
|
|
|
|
endef
|
2006-01-23 19:12:10 +01:00
|
|
|
|
2011-01-11 18:26:26 +01:00
|
|
|
define WIPE_INSTALL_TARGET_CMDS
|
|
|
|
$(INSTALL) -D $(@D)/wipe $(TARGET_DIR)/usr/bin/wipe
|
|
|
|
$(INSTALL) -D $(@D)/wipe.1 $(TARGET_DIR)/usr/share/man/man1/wipe.1
|
|
|
|
endef
|
2006-01-23 19:12:10 +01:00
|
|
|
|
2011-01-11 18:26:26 +01:00
|
|
|
define WIPE_UNINSTALL_TARGET_CMDS
|
|
|
|
rm -f $(TARGET_DIR)/usr/bin/wipe
|
|
|
|
rm -f $(TARGET_DIR)/usr/share/man/man1/wipe.1
|
|
|
|
endef
|
2006-01-23 19:12:10 +01:00
|
|
|
|
2011-01-11 18:26:26 +01:00
|
|
|
define WIPE_CLEAN_CMDS
|
|
|
|
$(MAKE) -C $(@D) clean
|
|
|
|
endef
|
2006-01-23 19:12:10 +01:00
|
|
|
|
2011-09-29 21:57:42 +02:00
|
|
|
$(eval $(call GENTARGETS))
|