2013-06-06 01:53:30 +02:00
|
|
|
################################################################################
|
2011-04-27 10:32:48 +02:00
|
|
|
#
|
|
|
|
# ti-utils
|
|
|
|
#
|
2013-06-06 01:53:30 +02:00
|
|
|
################################################################################
|
2011-04-27 10:32:48 +02:00
|
|
|
|
2013-11-02 15:57:28 +01:00
|
|
|
TI_UTILS_VERSION = 06dbdb2727354b5f3ad7c723897f40051fddee49
|
2013-06-06 08:47:28 +02:00
|
|
|
TI_UTILS_SITE = http://github.com/gxk/ti-utils/tarball/$(TI_UTILS_VERSION)
|
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
|
|
|
|
|
2012-07-03 00:07:32 +02:00
|
|
|
$(eval $(generic-package))
|