buildroot/package/ti-utils/ti-utils.mk
Rahul Bedarkar 9f59b378a3 boot, package: use SPDX short identifier for BSD-3c
We want to use SPDX identifier for license string as much as possible.
SPDX short identifier for BSD-3c is BSD-3-Clause.

This change is done using following command.
find . -name "*.mk" | xargs sed -ri '/LICENSE( )?[\+:]?=/s/BSD-3c/BSD-3-Clause/g'

Signed-off-by: Rahul Bedarkar <rahulbedarkar89@gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
2017-04-01 15:26:57 +02:00

32 lines
1 KiB
Makefile

################################################################################
#
# ti-utils
#
################################################################################
TI_UTILS_VERSION = 06dbdb2727354b5f3ad7c723897f40051fddee49
TI_UTILS_SITE = $(call github,gxk,ti-utils,$(TI_UTILS_VERSION))
TI_UTILS_DEPENDENCIES = libnl host-pkgconf
TI_UTILS_LICENSE = BSD-3-Clause
TI_UTILS_LICENSE_FILES = COPYING
TI_UTILS_CFLAGS = `$(PKG_CONFIG_HOST_BINARY) --cflags libnl-genl-3.0`
TI_UTILS_LIBS = `$(PKG_CONFIG_HOST_BINARY) --libs libnl-genl-3.0`
define TI_UTILS_BUILD_CMDS
$(TARGET_MAKE_ENV) $(MAKE1) NFSROOT="$(STAGING_DIR)" \
CC="$(TARGET_CC) $(TARGET_CFLAGS) $(TARGET_LDFLAGS) $(TI_UTILS_CFLAGS)" \
LIBS="$(TI_UTILS_LIBS)" -C $(@D) all
endef
define TI_UTILS_INSTALL_TARGET_CMDS
$(INSTALL) -m 0755 -D $(@D)/calibrator \
$(TARGET_DIR)/usr/bin/calibrator
$(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
endef
$(eval $(generic-package))