aboutsummaryrefslogtreecommitdiff
path: root/package/18xx-ti-utils/18xx-ti-utils.mk
diff options
context:
space:
mode:
authorGravatar Baruch Siach <baruch@tkos.co.il>2018-03-01 23:51:42 +0200
committerGravatar Peter Korsgaard <peter@korsgaard.com>2018-03-01 23:19:20 +0100
commit8304e920cb9e1728aee9e69c28f029130c42a1d8 (patch)
tree072a06c94bac0b2d69577e2821eb0ec56b057b23 /package/18xx-ti-utils/18xx-ti-utils.mk
parentee8d397a25dd7dfadeb74522336a9c5e990db454 (diff)
downloadbuildroot-8304e920cb9e1728aee9e69c28f029130c42a1d8.tar.gz
buildroot-8304e920cb9e1728aee9e69c28f029130c42a1d8.tar.bz2
18xx-ti-utils: new package
These are spacial RF calibration utilities for TI Wilink 18xx modules. Signed-off-by: Baruch Siach <baruch@tkos.co.il> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
Diffstat (limited to 'package/18xx-ti-utils/18xx-ti-utils.mk')
-rw-r--r--package/18xx-ti-utils/18xx-ti-utils.mk30
1 files changed, 30 insertions, 0 deletions
diff --git a/package/18xx-ti-utils/18xx-ti-utils.mk b/package/18xx-ti-utils/18xx-ti-utils.mk
new file mode 100644
index 0000000000..d1f0388c3a
--- /dev/null
+++ b/package/18xx-ti-utils/18xx-ti-utils.mk
@@ -0,0 +1,30 @@
+################################################################################
+#
+# 18xx-ti-utils
+#
+################################################################################
+
+18XX_TI_UTILS_VERSION = R8.7_SP3
+18XX_TI_UTILS_SITE = git://git.ti.com/wilink8-wlan/18xx-ti-utils
+18XX_TI_UTILS_DEPENDENCIES = libnl
+18XX_TI_UTILS_LICENSE = BSD-3-Clause
+18XX_TI_UTILS_LICENSE_FILES = COPYING
+
+18XX_TI_UTILS_CFLAGS = -I$(STAGING_DIR)/usr/include/libnl3 -DCONFIG_LIBNL32
+
+ifeq ($(BR2_STATIC_LIBS),y)
+18XX_TI_UTILS_BUILD_TARGET = static
+endif
+
+define 18XX_TI_UTILS_BUILD_CMDS
+ $(TARGET_MAKE_ENV) CROSS_COMPILE=$(TARGET_CROSS) \
+ NFSROOT="$(STAGING_DIR)" NLVER=3 $(MAKE) -C $(@D) \
+ CFLAGS="$(TARGET_CFLAGS) $(18XX_TI_UTILS_CFLAGS)" \
+ $(18XX_TI_UTILS_BUILD_TARGET)
+endef
+
+define 18XX_TI_UTILS_INSTALL_TARGET_CMDS
+ $(INSTALL) -m 0755 $(@D)/calibrator $(TARGET_DIR)/usr/bin/calibrator
+endef
+
+$(eval $(generic-package))