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
|
2014-01-01 12:11:34 +01:00
|
|
|
TI_UTILS_SITE = $(call github,gxk,ti-utils,$(TI_UTILS_VERSION))
|
2015-03-07 12:40:21 +01:00
|
|
|
TI_UTILS_DEPENDENCIES = libnl host-pkgconf
|
2014-06-24 20:55:59 +02:00
|
|
|
TI_UTILS_LICENSE = BSD-3c
|
|
|
|
TI_UTILS_LICENSE_FILES = COPYING
|
2011-04-27 10:32:48 +02:00
|
|
|
|
2015-07-12 16:35:26 +02:00
|
|
|
TI_UTILS_CFLAGS = `$(PKG_CONFIG_HOST_BINARY) --cflags libnl-genl-3.0`
|
|
|
|
TI_UTILS_LIBS = `$(PKG_CONFIG_HOST_BINARY) --libs libnl-genl-3.0`
|
2015-03-07 12:40:21 +01:00
|
|
|
|
2011-04-27 10:32:48 +02:00
|
|
|
define TI_UTILS_BUILD_CMDS
|
2016-10-14 00:13:34 +02:00
|
|
|
$(TARGET_MAKE_ENV) $(MAKE1) NFSROOT="$(STAGING_DIR)" \
|
2015-03-07 12:40:21 +01:00
|
|
|
CC="$(TARGET_CC) $(TARGET_CFLAGS) $(TARGET_LDFLAGS) $(TI_UTILS_CFLAGS)" \
|
|
|
|
LIBS="$(TI_UTILS_LIBS)" -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))
|