aboutsummaryrefslogtreecommitdiff
path: root/package/eeprog/eeprog.mk
diff options
context:
space:
mode:
authorGravatar Hamish Moffatt <hamish@cloud.net.au>2008-09-04 01:35:34 +0000
committerGravatar Hamish Moffatt <hamish@cloud.net.au>2008-09-04 01:35:34 +0000
commit1c89cf3f89e97c4789965007ab3e1f0dd06f6baa (patch)
tree830e2178a2523e25f64c006fae93ce03e0c25cc5 /package/eeprog/eeprog.mk
parent18a7694675aa6f195646dfb64c94a230518edbff (diff)
downloadbuildroot-1c89cf3f89e97c4789965007ab3e1f0dd06f6baa.tar.gz
buildroot-1c89cf3f89e97c4789965007ab3e1f0dd06f6baa.tar.bz2
Added eeprog package from gustavoz
Diffstat (limited to 'package/eeprog/eeprog.mk')
-rw-r--r--package/eeprog/eeprog.mk46
1 files changed, 46 insertions, 0 deletions
diff --git a/package/eeprog/eeprog.mk b/package/eeprog/eeprog.mk
new file mode 100644
index 0000000000..41fa53b890
--- /dev/null
+++ b/package/eeprog/eeprog.mk
@@ -0,0 +1,46 @@
+#############################################################
+#
+# eeprog
+#
+#############################################################
+EEPROG_VERSION:=0.7.6
+EEPROG_SOURCE:=eeprog-$(EEPROG_VERSION).tar.gz
+EEPROG_SITE:=http://codesink.org/download
+EEPROG_DIR:=$(BUILD_DIR)/eeprog-$(EEPROG_VERSION)
+EEPROG_BINARY:=eeprog
+EEPROG_TARGET_BINARY:=usr/sbin/eeprog
+
+$(DL_DIR)/$(EEPROG_SOURCE):
+ $(WGET) -P $(DL_DIR) $(EEPROG_SITE)/$(EEPROG_SOURCE)
+
+eeprog-source: $(DL_DIR)/$(EEPROG_SOURCE)
+
+$(EEPROG_DIR)/.unpacked: $(DL_DIR)/$(EEPROG_SOURCE)
+ $(ZCAT) $(DL_DIR)/$(EEPROG_SOURCE) | tar -C $(BUILD_DIR) $(TAR_OPTIONS) -
+ toolchain/patch-kernel.sh $(EEPROG_DIR) package/eeprog/ eeprog\*.patch
+ touch $(EEPROG_DIR)/.unpacked
+
+$(EEPROG_DIR)/$(EEPROG_BINARY): $(EEPROG_DIR)/.unpacked
+ $(MAKE) CC=$(TARGET_CC) CFLAGS="$(TARGET_CFLAGS)" LDFLAGS="$(TARGET_LDFLAGS)" -C $(EEPROG_DIR)
+ $(STRIPCMD) $(EEPROG_DIR)/$(EEPROG_BINARY)
+
+$(TARGET_DIR)/$(EEPROG_TARGET_BINARY): $(EEPROG_DIR)/$(EEPROG_BINARY)
+ $(INSTALL) -m 0755 -D $(EEPROG_DIR)/$(EEPROG_BINARY) $(TARGET_DIR)/$(EEPROG_TARGET_BINARY)
+
+eeprog: uclibc $(TARGET_DIR)/$(EEPROG_TARGET_BINARY)
+
+eeprog-clean:
+ rm -f $(TARGET_DIR)/$(EEPROG_TARGET_BINARY)
+ -$(MAKE) -C $(EEPROG_DIR) clean
+
+eeprog-dirclean:
+ rm -rf $(EEPROG_DIR)
+
+#############################################################
+#
+# Toplevel Makefile options
+#
+#############################################################
+ifeq ($(strip $(BR2_PACKAGE_EEPROG)),y)
+TARGETS+=eeprog
+endif