2011-04-27 10:32:48 +02:00
|
|
|
#############################################################
|
|
|
|
#
|
|
|
|
# ti-utils
|
|
|
|
#
|
|
|
|
#############################################################
|
|
|
|
|
2012-09-20 12:48:20 +02:00
|
|
|
TI_UTILS_VERSION = 06dbdb2
|
|
|
|
TI_UTILS_SITE = http://github.com/gxk/ti-utils/tarball/master
|
2011-04-27 10:32:48 +02:00
|
|
|
TI_UTILS_DEPENDENCIES = libnl
|
|
|
|
|
|
|
|
define TI_UTILS_BUILD_CMDS
|
2011-08-08 09:10:29 +02:00
|
|
|
$(MAKE1) NFSROOT="$(STAGING_DIR)" \
|
2011-12-26 19:33:43 +01:00
|
|
|
CC="$(TARGET_CC) $(TARGET_CFLAGS) $(TARGET_LDFLAGS) -I$(STAGING_DIR)/usr/include/libnl3" \
|
|
|
|
LIBS="-lnl-3 -lnl-genl-3 -lm" -C $(@D) all
|
2011-04-27 10:32:48 +02:00
|
|
|
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
|
|
|
|
|
2012-07-03 00:07:32 +02:00
|
|
|
$(eval $(generic-package))
|