2018-03-01 22:51:42 +01:00
|
|
|
################################################################################
|
|
|
|
#
|
|
|
|
# 18xx-ti-utils
|
|
|
|
#
|
|
|
|
################################################################################
|
|
|
|
|
2020-10-14 14:29:37 +02:00
|
|
|
18XX_TI_UTILS_VERSION = 8.8
|
|
|
|
18XX_TI_UTILS_SITE = https://git.ti.com/cgit/wilink8-wlan/18xx-ti-utils/snapshot
|
|
|
|
18XX_TI_UTILS_SOURCE = 18xx-ti-utils-R$(18XX_TI_UTILS_VERSION).tar.xz
|
2018-03-01 22:51:42 +01:00
|
|
|
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)
|
2020-09-16 23:01:46 +02:00
|
|
|
|
|
|
|
$(HOST_MAKE_ENV) $(MAKE) -C $(@D)/wlconf \
|
|
|
|
$(HOST_CONFIGURE_OPTS)
|
2018-03-01 22:51:42 +01:00
|
|
|
endef
|
|
|
|
|
|
|
|
define 18XX_TI_UTILS_INSTALL_TARGET_CMDS
|
|
|
|
$(INSTALL) -m 0755 $(@D)/calibrator $(TARGET_DIR)/usr/bin/calibrator
|
2020-09-16 23:01:46 +02:00
|
|
|
$(INSTALL) -m 0755 $(@D)/wlconf/wlconf $(HOST_DIR)/bin/wlconf
|
2018-03-01 22:51:42 +01:00
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(generic-package))
|