summaryrefslogtreecommitdiffstats
path: root/package/ti-utils/ti-utils.mk
diff options
context:
space:
mode:
Diffstat (limited to 'package/ti-utils/ti-utils.mk')
-rw-r--r--package/ti-utils/ti-utils.mk29
1 files changed, 29 insertions, 0 deletions
diff --git a/package/ti-utils/ti-utils.mk b/package/ti-utils/ti-utils.mk
new file mode 100644
index 000000000..8f35b5922
--- /dev/null
+++ b/package/ti-utils/ti-utils.mk
@@ -0,0 +1,29 @@
+#############################################################
+#
+# ti-utils
+#
+#############################################################
+
+TI_UTILS_VERSION = fbceab8f228cff80fd29b830bb85a188c69def08
+TI_UTILS_SITE = git://github.com/gxk/ti-utils.git
+TI_UTILS_DEPENDENCIES = libnl
+
+define TI_UTILS_BUILD_CMDS
+ $(MAKE1) NFSROOT="$(STAGING_DIR)" CC="$(TARGET_CC) $(TARGET_CFLAGS) $(TARGET_LDFLAGS)" \
+ -C $(@D) all
+endef
+
+define TI_UTILS_INSTALL_TARGET_CMDS
+ $(INSTALL) -m 0755 $(@D)/calibrator \
+ $(TARGET_DIR)/usr/bin/calibrator
+ $(INSTALL) -m 0755 $(@D)/scripts/go.sh \
+ $(TARGET_DIR)/usr/bin/go.sh
+endef
+
+define TI_UTILS_UNINSTALL_TARGET_CMDS
+ rm -f $(TARGET_DIR)/usr/bin/calibrator
+ rm -f $(TARGET_DIR)/usr/bin/go.sh
+endef
+
+$(eval $(call GENTARGETS,package,ti-utils))
+