All of lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH RFC] 18xx-ti-utils: new package
@ 2018-02-14 13:04 Baruch Siach
  2018-02-14 14:37 ` Thomas Petazzoni
  0 siblings, 1 reply; 3+ messages in thread
From: Baruch Siach @ 2018-02-14 13:04 UTC (permalink / raw)
  To: buildroot

These are spacial RF calibration utilities for the TI Wilink 18xx
modules.

Signed-off-by: Baruch Siach <baruch@tkos.co.il>
---

I encountered strange behaviour with this package. Simple 'make' does
not build the package even when 'BR2_18XX_TI_UTILS=y' is in my .config.
All other packages in my .config build fine. Running 'make
18xx-ti-utils' does build the package, though. 'make printvars' shows
the package in PACKAGES_ALL but not in PACKAGES.

I might have missed something obvious. Maybe someone on the list can
enlighten me.
---
 DEVELOPERS                             |  1 +
 package/18xx-ti-utils/18xx-ti-utils.mk | 28 ++++++++++++++++++++++++++++
 package/18xx-ti-utils/Config.in        | 10 ++++++++++
 package/Config.in                      |  1 +
 4 files changed, 40 insertions(+)
 create mode 100644 package/18xx-ti-utils/18xx-ti-utils.mk
 create mode 100644 package/18xx-ti-utils/Config.in

diff --git a/DEVELOPERS b/DEVELOPERS
index c524cb6ac505..2dc2d0665fcb 100644
--- a/DEVELOPERS
+++ b/DEVELOPERS
@@ -203,6 +203,7 @@ F:	package/pulseview/
 F:	package/sigrok-cli/
 
 N:	Baruch Siach <baruch@tkos.co.il>
+F:	package/18xx-ti-utils/
 F:	package/daemon/
 F:	package/dropbear/
 F:	package/ebtables/
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 000000000000..be8a67608165
--- /dev/null
+++ b/package/18xx-ti-utils/18xx-ti-utils.mk
@@ -0,0 +1,28 @@
+################################################################################
+#
+# 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_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=/noexistent 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))
diff --git a/package/18xx-ti-utils/Config.in b/package/18xx-ti-utils/Config.in
new file mode 100644
index 000000000000..fcdb80673c7e
--- /dev/null
+++ b/package/18xx-ti-utils/Config.in
@@ -0,0 +1,10 @@
+config BR2_18XX_TI_UTILS
+	bool "18xx-ti-utils"
+	select BR2_PACKAGE_LIBNL
+	help
+	  TI Wilink calibration utilities.
+
+	  CONFIG_NL80211_TESTMODE must be enabled in the kernel
+	  configuration for this package to work.
+
+	  http://processors.wiki.ti.com/index.php/WL18xx_TX_Testing
diff --git a/package/Config.in b/package/Config.in
index 9cd5d9c08741..3c82f7ab00d5 100644
--- a/package/Config.in
+++ b/package/Config.in
@@ -374,6 +374,7 @@ menu "Firmware"
 	source "package/wilink-bt-firmware/Config.in"
 	source "package/zd1211-firmware/Config.in"
 endmenu
+	source "package/18xx-ti-utils/Config.in"
 	source "package/a10disp/Config.in"
 	source "package/acpica/Config.in"
 	source "package/acpid/Config.in"
-- 
2.15.1

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* [Buildroot] [PATCH RFC] 18xx-ti-utils: new package
  2018-02-14 13:04 [Buildroot] [PATCH RFC] 18xx-ti-utils: new package Baruch Siach
@ 2018-02-14 14:37 ` Thomas Petazzoni
  2018-02-14 14:53   ` Baruch Siach
  0 siblings, 1 reply; 3+ messages in thread
From: Thomas Petazzoni @ 2018-02-14 14:37 UTC (permalink / raw)
  To: buildroot

Hello,

On Wed, 14 Feb 2018 15:04:43 +0200, Baruch Siach wrote:
> These are spacial RF calibration utilities for the TI Wilink 18xx
> modules.
> 
> Signed-off-by: Baruch Siach <baruch@tkos.co.il>
> ---
> 
> I encountered strange behaviour with this package. Simple 'make' does
> not build the package even when 'BR2_18XX_TI_UTILS=y' is in my .config.

Well, because it should be BR2_PACKAGE_<something>...

> +config BR2_18XX_TI_UTILS

... here.

Thomas
-- 
Thomas Petazzoni, CTO, Bootlin (formerly Free Electrons)
Embedded Linux and Kernel engineering
http://bootlin.com

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [Buildroot] [PATCH RFC] 18xx-ti-utils: new package
  2018-02-14 14:37 ` Thomas Petazzoni
@ 2018-02-14 14:53   ` Baruch Siach
  0 siblings, 0 replies; 3+ messages in thread
From: Baruch Siach @ 2018-02-14 14:53 UTC (permalink / raw)
  To: buildroot

Hi Thomas,

On Wed, Feb 14, 2018 at 03:37:55PM +0100, Thomas Petazzoni wrote:
> On Wed, 14 Feb 2018 15:04:43 +0200, Baruch Siach wrote:
> > These are spacial RF calibration utilities for the TI Wilink 18xx
> > modules.
> > 
> > Signed-off-by: Baruch Siach <baruch@tkos.co.il>
> > ---
> > 
> > I encountered strange behaviour with this package. Simple 'make' does
> > not build the package even when 'BR2_18XX_TI_UTILS=y' is in my .config.
> 
> Well, because it should be BR2_PACKAGE_<something>...
> 
> > +config BR2_18XX_TI_UTILS
> 
> ... here.

Thanks. I had the feeling that this is something obvious.

baruch

-- 
     http://baruch.siach.name/blog/                  ~. .~   Tk Open Systems
=}------------------------------------------------ooO--U--Ooo------------{=
   - baruch at tkos.co.il - tel: +972.52.368.4656, http://www.tkos.co.il -

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2018-02-14 14:53 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-02-14 13:04 [Buildroot] [PATCH RFC] 18xx-ti-utils: new package Baruch Siach
2018-02-14 14:37 ` Thomas Petazzoni
2018-02-14 14:53   ` Baruch Siach

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.