mirror of
https://github.com/MiyooCFW/buildroot.git
synced 2025-09-27 22:24:19 +03:00
Merge from bittboy/buildroot@db180c0
This commit is contained in:
12
package/ti-utils/Config.in
Normal file
12
package/ti-utils/Config.in
Normal file
@@ -0,0 +1,12 @@
|
||||
config BR2_PACKAGE_TI_UTILS
|
||||
bool "ti-utils"
|
||||
depends on BR2_TOOLCHAIN_HAS_THREADS # libnl
|
||||
select BR2_PACKAGE_LIBNL
|
||||
help
|
||||
The calibrator and other useful utilities for TI wireless
|
||||
solution, based on wl12xx driver.
|
||||
|
||||
http://linuxwireless.sipsolutions.net/en/users/Drivers/wl12xx/calibrator/
|
||||
|
||||
comment "ti-utils needs a toolchain w/ threads"
|
||||
depends on !BR2_TOOLCHAIN_HAS_THREADS
|
||||
2
package/ti-utils/ti-utils.hash
Normal file
2
package/ti-utils/ti-utils.hash
Normal file
@@ -0,0 +1,2 @@
|
||||
# locally computed
|
||||
sha256 d05d4e3ad3599fca7854109938aebd24bbab72ac7d69dd053260f735a36613f9 ti-utils-06dbdb2727354b5f3ad7c723897f40051fddee49.tar.gz
|
||||
31
package/ti-utils/ti-utils.mk
Normal file
31
package/ti-utils/ti-utils.mk
Normal file
@@ -0,0 +1,31 @@
|
||||
################################################################################
|
||||
#
|
||||
# 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))
|
||||
Reference in New Issue
Block a user