summaryrefslogtreecommitdiff
path: root/package/ti-utils/ti-utils.mk
blob: 8f35b5922c63ceb24a954486527c7ad9166b337b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
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))