6ae29cdfe0
Add '-lpthread' option to LIBS in ti-utils.mk file to link this package with pthread Fixes: http://autobuild.buildroot.net/results/132/132072d849a3ec572aa80e51833bf6906a54400a// Signed-off-by: Yuvaraj Patil <yuvaraj.patil@wipro.com> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
29 lines
909 B
Makefile
29 lines
909 B
Makefile
################################################################################
|
|
#
|
|
# ti-utils
|
|
#
|
|
################################################################################
|
|
|
|
TI_UTILS_VERSION = 06dbdb2727354b5f3ad7c723897f40051fddee49
|
|
TI_UTILS_SITE = $(call github,gxk,ti-utils,$(TI_UTILS_VERSION))
|
|
TI_UTILS_DEPENDENCIES = libnl
|
|
TI_UTILS_LICENSE = BSD-3c
|
|
TI_UTILS_LICENSE_FILES = COPYING
|
|
|
|
define TI_UTILS_BUILD_CMDS
|
|
$(MAKE1) NFSROOT="$(STAGING_DIR)" \
|
|
CC="$(TARGET_CC) $(TARGET_CFLAGS) $(TARGET_LDFLAGS) -I$(STAGING_DIR)/usr/include/libnl3" \
|
|
LIBS="-lnl-3 -lnl-genl-3 -lpthread -lm" -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))
|