diff options
author | Peter Korsgaard <jacmet@sunsite.dk> | 2012-03-18 22:46:56 +0100 |
---|---|---|
committer | Peter Korsgaard <jacmet@sunsite.dk> | 2012-03-18 22:46:56 +0100 |
commit | 2110a29179f04983e731bc994ca01f1f699b9e84 (patch) | |
tree | 981cb6c6576996366dfa2cf0e19e97823824eec0 /package/fis/fis.mk | |
parent | c4b6fea3a36697e45acd55935cbc79374eec1d03 (diff) | |
download | buildroot-novena-2110a29179f04983e731bc994ca01f1f699b9e84.tar.gz buildroot-novena-2110a29179f04983e731bc994ca01f1f699b9e84.zip |
fis: convert to gentargets
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
Diffstat (limited to 'package/fis/fis.mk')
-rw-r--r-- | package/fis/fis.mk | 55 |
1 files changed, 14 insertions, 41 deletions
diff --git a/package/fis/fis.mk b/package/fis/fis.mk index 0975f3fb0..d2cd19685 100644 --- a/package/fis/fis.mk +++ b/package/fis/fis.mk @@ -3,49 +3,22 @@ # fis # ############################################################# -FIS_SOURCE:=fis.c -FIS_SITE:=http://svn.chezphil.org/utils/trunk -FIS_CAT:=$(ZCAT) -FIS_DIR:=$(BUILD_DIR)/fis -FIS_BINARY:=fis -FIS_TARGET_BINARY:=sbin/fis -$(DL_DIR)/$(FIS_SOURCE): - $(call DOWNLOAD,$(FIS_SITE)/$(FIS_SOURCE)) +FIS_SITE = http://svn.chezphil.org/utils/trunk +FIS_SITE_METHOD = svn +FIS_VERSION = 2892 -fis-source: $(DL_DIR)/$(FIS_SOURCE) +define FIS_BUILD_CMDS + $(TARGET_CC) $(TARGET_CFLAGS) -std=c99 -o $(@D)/fis \ + $(@D)/fis.c $(@D)/crc.c $(TARGE_LDFLAGS) +endef -$(FIS_DIR)/.unpacked: $(DL_DIR)/$(FIS_SOURCE) - mkdir -p $(FIS_DIR) - cp -f $(DL_DIR)/$(FIS_SOURCE) $(FIS_DIR) - support/scripts/apply-patches.sh $(FIS_DIR) package/fis \*.patch - touch $@ +define FIS_INSTALL_TARGET_CMDS + $(INSTALL) -m 0755 -D $(@D)/fis $(TARGET_DIR)/sbin/fis +endef -$(FIS_DIR)/$(FIS_BINARY): $(FIS_DIR)/.unpacked - $(MAKE) -C $(FIS_DIR) \ - CC="$(TARGET_CC)" \ - CFLAGS="$(TARGET_CFLAGS) -std=c99" \ - LDFLAGS="$(TARGET_LDFLAGS)" +define FIS_UNINSTALL_TARGET_CMDS + rm -f $(TARGET_DIR)/sbin/fis +endef -$(TARGET_DIR)/$(FIS_TARGET_BINARY): $(FIS_DIR)/$(FIS_BINARY) - rm -f $(TARGET_DIR)/$(FIS_TARGET_BINARY) - $(INSTALL) -D -m 0755 $(FIS_DIR)/$(FIS_BINARY) $(TARGET_DIR)/$(FIS_TARGET_BINARY) - $(STRIPCMD) $(STRIP_STRIP_ALL) $@ - -fis: $(TARGET_DIR)/$(FIS_TARGET_BINARY) - -fis-clean: - -$(MAKE) -C $(FIS_DIR) clean - rm -f $(TARGET_DIR)/$(FIS_TARGET_BINARY) - -fis-dirclean: - rm -rf $(FIS_DIR) - -############################################################# -# -# Toplevel Makefile options -# -############################################################# -ifeq ($(BR2_PACKAGE_FIS),y) -TARGETS+=fis -endif +$(eval $(call GENTARGETS)) |