2008-02-07 01:51:57 +01:00
|
|
|
#############################################################
|
|
|
|
#
|
|
|
|
# fconfig
|
|
|
|
#
|
|
|
|
#############################################################
|
|
|
|
FCONFIG_VERSION:=20060419
|
|
|
|
FCONFIG_SOURCE:=fconfig-$(FCONFIG_VERSION).tar.gz
|
|
|
|
FCONFIG_SITE:=http://andrzejekiert.ovh.org/software/fconfig/
|
|
|
|
FCONFIG_CAT:=$(ZCAT)
|
|
|
|
FCONFIG_DIR:=$(BUILD_DIR)/fconfig
|
|
|
|
FCONFIG_BINARY:=fconfig
|
|
|
|
FCONFIG_TARGET_BINARY:=sbin/fconfig
|
|
|
|
|
|
|
|
$(DL_DIR)/$(FCONFIG_SOURCE):
|
2009-01-16 12:42:52 +01:00
|
|
|
$(call DOWNLOAD,$(FCONFIG_SITE),$(FCONFIG_SOURCE))
|
2008-02-07 01:51:57 +01:00
|
|
|
|
|
|
|
fconfig-source: $(DL_DIR)/$(FCONFIG_SOURCE)
|
|
|
|
|
|
|
|
$(FCONFIG_DIR)/.unpacked: $(DL_DIR)/$(FCONFIG_SOURCE)
|
|
|
|
$(FCONFIG_CAT) $(DL_DIR)/$(FCONFIG_SOURCE) | tar -C $(BUILD_DIR) $(TAR_OPTIONS) -
|
|
|
|
toolchain/patch-kernel.sh $(FCONFIG_DIR) package/fconfig \*.patch
|
|
|
|
touch $@
|
|
|
|
|
|
|
|
$(FCONFIG_DIR)/$(FCONFIG_BINARY): $(FCONFIG_DIR)/.unpacked
|
|
|
|
$(MAKE) $(TARGET_CONFIGURE_OPTS) -C $(FCONFIG_DIR) \
|
|
|
|
CFLAGS="$(TARGET_CFLAGS)" \
|
|
|
|
LDFLAGS="$(TARGET_LDFLAGS)"
|
|
|
|
|
|
|
|
$(TARGET_DIR)/$(FCONFIG_TARGET_BINARY): $(FCONFIG_DIR)/$(FCONFIG_BINARY)
|
|
|
|
rm -f $(TARGET_DIR)/$(FCONFIG_TARGET_BINARY)
|
|
|
|
$(INSTALL) -D -m 0755 $(FCONFIG_DIR)/$(FCONFIG_BINARY) $(TARGET_DIR)/$(FCONFIG_TARGET_BINARY)
|
|
|
|
$(STRIPCMD) $(STRIP_STRIP_ALL) $@
|
|
|
|
|
2009-09-02 17:02:02 +02:00
|
|
|
fconfig: $(TARGET_DIR)/$(FCONFIG_TARGET_BINARY)
|
2008-02-07 01:51:57 +01:00
|
|
|
|
|
|
|
fconfig-clean:
|
|
|
|
-$(MAKE) -C $(FCONFIG_DIR) clean
|
|
|
|
rm -f $(TARGET_DIR)/$(FCONFIG_TARGET_BINARY)
|
|
|
|
|
|
|
|
fconfig-dirclean:
|
|
|
|
rm -rf $(FCONFIG_DIR)
|
|
|
|
|
|
|
|
#############################################################
|
|
|
|
#
|
|
|
|
# Toplevel Makefile options
|
|
|
|
#
|
|
|
|
#############################################################
|
2008-12-08 09:15:27 +01:00
|
|
|
ifeq ($(BR2_PACKAGE_FCONFIG),y)
|
2008-02-07 01:51:57 +01:00
|
|
|
TARGETS+=fconfig
|
|
|
|
endif
|