diff options
author | Hamish Moffatt <hamish@cloud.net.au> | 2008-02-07 00:51:57 +0000 |
---|---|---|
committer | Hamish Moffatt <hamish@cloud.net.au> | 2008-02-07 00:51:57 +0000 |
commit | b5e4871b39d1b6322ce5d03572bca45efe77348e (patch) | |
tree | e7f0a90cba243f60a7f7fb35bc11d18cba4554d1 /package/fconfig/fconfig.mk | |
parent | 83b7c8b381768a83fdca110a740448061ca2d898 (diff) | |
download | buildroot-novena-b5e4871b39d1b6322ce5d03572bca45efe77348e.tar.gz buildroot-novena-b5e4871b39d1b6322ce5d03572bca45efe77348e.zip |
Added a package for fconfig, which allows you to modify RedBoot configuration parameters from linux.
Diffstat (limited to 'package/fconfig/fconfig.mk')
-rw-r--r-- | package/fconfig/fconfig.mk | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/package/fconfig/fconfig.mk b/package/fconfig/fconfig.mk new file mode 100644 index 000000000..19ab3e853 --- /dev/null +++ b/package/fconfig/fconfig.mk @@ -0,0 +1,50 @@ +############################################################# +# +# 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): + $(WGET) -P $(DL_DIR) $(FCONFIG_SITE)/$(FCONFIG_SOURCE) + +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) $@ + +fconfig: uclibc $(TARGET_DIR)/$(FCONFIG_TARGET_BINARY) + +fconfig-clean: + -$(MAKE) -C $(FCONFIG_DIR) clean + rm -f $(TARGET_DIR)/$(FCONFIG_TARGET_BINARY) + +fconfig-dirclean: + rm -rf $(FCONFIG_DIR) + +############################################################# +# +# Toplevel Makefile options +# +############################################################# +ifeq ($(strip $(BR2_PACKAGE_FCONFIG)),y) +TARGETS+=fconfig +endif |