summaryrefslogtreecommitdiffstats
path: root/package/fis/fis.mk
diff options
context:
space:
mode:
authorHamish Moffatt <hamish@cloud.net.au>2008-02-07 00:53:36 +0000
committerHamish Moffatt <hamish@cloud.net.au>2008-02-07 00:53:36 +0000
commit4985f591696d821b64403e3723df5925b2f9ffc1 (patch)
tree36d21458c807e0b0e034e063cdfc7782b00959a4 /package/fis/fis.mk
parentb5e4871b39d1b6322ce5d03572bca45efe77348e (diff)
downloadbuildroot-novena-4985f591696d821b64403e3723df5925b2f9ffc1.tar.gz
buildroot-novena-4985f591696d821b64403e3723df5925b2f9ffc1.zip
Added package for fis, which allows you to manipulate the RedBoot flash partition table from linux.
Diffstat (limited to 'package/fis/fis.mk')
-rw-r--r--package/fis/fis.mk51
1 files changed, 51 insertions, 0 deletions
diff --git a/package/fis/fis.mk b/package/fis/fis.mk
new file mode 100644
index 000000000..36c3c62cf
--- /dev/null
+++ b/package/fis/fis.mk
@@ -0,0 +1,51 @@
+#############################################################
+#
+# 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):
+ $(WGET) -P $(DL_DIR) $(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)
+ toolchain/patch-kernel.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: uclibc $(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 ($(strip $(BR2_PACKAGE_FIS)),y)
+TARGETS+=fis
+endif