2011-04-27 10:32:48 +02:00
|
|
|
#############################################################
|
|
|
|
#
|
|
|
|
# ti-utils
|
|
|
|
#
|
|
|
|
#############################################################
|
|
|
|
|
2011-08-08 09:10:29 +02:00
|
|
|
TI_UTILS_VERSION = 06dbdb2727354b5f3ad7c723897f40051fddee49
|
2011-04-27 10:32:48 +02:00
|
|
|
TI_UTILS_SITE = git://github.com/gxk/ti-utils.git
|
|
|
|
TI_UTILS_DEPENDENCIES = libnl
|
|
|
|
|
|
|
|
define TI_UTILS_BUILD_CMDS
|
2011-08-08 09:10:29 +02:00
|
|
|
$(MAKE1) NFSROOT="$(STAGING_DIR)" \
|
|
|
|
CC="$(TARGET_CC) $(TARGET_CFLAGS) $(TARGET_LDFLAGS)" \
|
2011-04-27 10:32:48 +02:00
|
|
|
-C $(@D) all
|
|
|
|
endef
|
|
|
|
|
|
|
|
define TI_UTILS_INSTALL_TARGET_CMDS
|
2011-08-08 09:10:29 +02:00
|
|
|
$(INSTALL) -m 0755 -D $(@D)/calibrator \
|
2011-04-27 10:32:48 +02:00
|
|
|
$(TARGET_DIR)/usr/bin/calibrator
|
2011-08-08 09:10:29 +02:00
|
|
|
$(INSTALL) -m 0755 -D $(@D)/scripts/go.sh \
|
|
|
|
$(TARGET_DIR)/usr/share/ti-utils/scripts/go.sh
|
|
|
|
|
|
|
|
cp -r $(@D)/ini_files $(TARGET_DIR)/usr/share/ti-utils
|
2011-04-27 10:32:48 +02:00
|
|
|
endef
|
|
|
|
|
|
|
|
define TI_UTILS_UNINSTALL_TARGET_CMDS
|
|
|
|
rm -f $(TARGET_DIR)/usr/bin/calibrator
|
2011-08-08 09:10:29 +02:00
|
|
|
rm -fr $(TARGET_DIR)/usr/share/ti-utils
|
2011-04-27 10:32:48 +02:00
|
|
|
endef
|
|
|
|
|
2011-09-29 21:57:42 +02:00
|
|
|
$(eval $(call GENTARGETS))
|