kumquat-buildroot/package/fis/fis.mk
Thomas Petazzoni 59a326b934 support: move patch-kernel.sh and rename it
The name "patch-kernel.sh" is a bit stupid, since this script is used
to patch everything in Buildroot, not only kernel trees.

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
2011-09-17 08:15:32 +02:00

52 lines
1.3 KiB
Makefile

#############################################################
#
# 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-source: $(DL_DIR)/$(FIS_SOURCE)
$(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 $@
$(FIS_DIR)/$(FIS_BINARY): $(FIS_DIR)/.unpacked
$(MAKE) -C $(FIS_DIR) \
CC="$(TARGET_CC)" \
CFLAGS="$(TARGET_CFLAGS) -std=c99" \
LDFLAGS="$(TARGET_LDFLAGS)"
$(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