All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] bt-firmware: Port bt-firmware recipe
@ 2012-10-05 19:30 Franklin S. Cooper Jr
  0 siblings, 0 replies; 5+ messages in thread
From: Franklin S. Cooper Jr @ 2012-10-05 19:30 UTC (permalink / raw)
  To: meta-ti

* Port bt-firmware recipe from arago.
* Bt-firmware provides the bluetooth firmware for the TI wl12xx
  Wi+Fi + Bluetooth module.

Signed-off-by: Franklin S. Cooper Jr <fcooper@ti.com>
---
Version 2 changes:
Use generic SOC family names when possible in COMPATIBLE_MACHINE list.
Add RREPLACES and RCONFLICTS to insure this package and linux-firmware-wl12xx
are not installed at the same time.

 ...001-Makefile-allow-building-within-the-OE.patch |   49 ++++++++++++++++++++
 recipes-bsp/bt-firmware/bt-firmware_git.bb         |   41 ++++++++++++++++
 2 files changed, 90 insertions(+), 0 deletions(-)
 create mode 100644 recipes-bsp/bt-firmware/bt-firmware/0001-Makefile-allow-building-within-the-OE.patch
 create mode 100644 recipes-bsp/bt-firmware/bt-firmware_git.bb

diff --git a/recipes-bsp/bt-firmware/bt-firmware/0001-Makefile-allow-building-within-the-OE.patch b/recipes-bsp/bt-firmware/bt-firmware/0001-Makefile-allow-building-within-the-OE.patch
new file mode 100644
index 0000000..49caa85
--- /dev/null
+++ b/recipes-bsp/bt-firmware/bt-firmware/0001-Makefile-allow-building-within-the-OE.patch
@@ -0,0 +1,49 @@
+From 8f226ccc9d2cbd10d454e131376c35f502a45e3b Mon Sep 17 00:00:00 2001
+From: Chase Maupin <Chase.Maupin@ti.com>
+Date: Wed, 7 Mar 2012 14:11:42 -0600
+Subject: [PATCH] Makefile: allow building with OE
+
+* Use defaults and source values that allow building this
+  component with OE.
+
+Upstread-Status: Pending
+    * Will be accepted into next release
+
+Signed-off-by: Chase Maupin <Chase.Maupin@ti.com>
+---
+ Makefile |   21 +++++++++++++++++++++
+ 1 files changed, 21 insertions(+), 0 deletions(-)
+
+diff --git a/Makefile b/Makefile
+index 9035e40..bd94881 100644
+--- a/Makefile
++++ b/Makefile
+@@ -1,5 +1,26 @@
+ # Installs the the Bluetooth firmware files into the root file system
+
++-include ../../../Rules.make
++
++# If KERNEL_DIR is not set then use the default in Rules.make
++DEST_DIR ?= ${DESTDIR}
++
++PLATFORM ?= "unknown"
++MACHINE_NAME ?= "unknown"
++
++ifeq ($(PLATFORM), am335x-evm)
++    MACHINE_NAME := am335x
++endif
++ifeq ($(PLATFORM), am180x-evm)
++    MACHINE_NAME := am1808
++endif
++ifeq ($(PLATFORM), da850-omapl138-evm)
++    MACHINE_NAME := am1808
++endif
++ifeq ($(PLATFORM), am37x-evm)
++    MACHINE_NAME := omap3evm
++endif
++
+ install:
+	install -d $(DEST_DIR)${BASE_LIB_DIR}/firmware
+	cp -f ./${MACHINE_NAME}/* $(DEST_DIR)${BASE_LIB_DIR}/firmware
+--
+1.7.0.4
diff --git a/recipes-bsp/bt-firmware/bt-firmware_git.bb b/recipes-bsp/bt-firmware/bt-firmware_git.bb
new file mode 100644
index 0000000..f6888d4
--- /dev/null
+++ b/recipes-bsp/bt-firmware/bt-firmware_git.bb
@@ -0,0 +1,41 @@
+DESCRIPTION = "Firmware files for Bluetooth"
+LICENSE = "TI-TSPA"
+LIC_FILES_CHKSUM = "file://am335x/LICENCE;md5=ba590e1d103f891d0151609046aef9e8 \
+                    file://am1808/LICENCE;md5=ba590e1d103f891d0151609046aef9e8 \
+                    file://omap3evm/LICENCE;md5=ba590e1d103f891d0151609046aef9e8 \
+"
+
+PACKAGE_ARCH = "${MACHINE_ARCH}"
+
+# This recipe provides the latest firmware files for wl12xx.
+# Therefore, use the contents of this recipe instead of the contents
+# of linux-firmware-wl12xx.
+RCONFLICTS_${PN} = "linux-firmware-wl12xx"
+RREPLACES_${PN}  = "linux-firmware-wl12xx"
+
+PR = "r0+gitr${SRCREV}"
+
+COMPATIBLE_MACHINE = "omap3|omapl138|da850-omapl138-evm|ti33x"
+
+SRCREV = "db43d1f05efda9777d7ac1ac366637e29e21f77f"
+SRC_URI = "git://github.com/TI-ECS/bt-firmware.git;protocol=git \
+           file://0001-Makefile-allow-building-within-the-OE.patch"
+
+PLATFORM = "unknown"
+PLATFORM_ti33x = "am335x-evm"
+PLATFORM_omap3 = "am37x-evm"
+PLATFORM_omapl138 = "am180x-evm"
+PLATFORM_da850-omapl138-evm = "am180x-evm"
+
+S = "${WORKDIR}/git"
+
+do_compile() {
+	:
+}
+
+do_install() {
+    install -d ${D}${base_libdir}/firmware
+	oe_runmake 'DEST_DIR=${D}' 'BASE_LIB_DIR=${base_libdir}' 'PLATFORM=${PLATFORM}' install
+}
+
+FILES_${PN} += "${base_libdir}/firmware"
-- 
1.7.0.4



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

* Re: [PATCH] bt-firmware: Port bt-firmware recipe
  2012-09-22 14:50   ` Cooper Jr., Franklin
@ 2012-10-05  4:59     ` Cooper Jr., Franklin
  0 siblings, 0 replies; 5+ messages in thread
From: Cooper Jr., Franklin @ 2012-10-05  4:59 UTC (permalink / raw)
  To: Koen Kooi, Franklin S. Cooper Jr; +Cc: meta-ti

Quick correction The statement in the previous was in reference to a recipe I will be submitting soon called wl12xx-firmware. That recipe is the one that was called linux-firmware in Arago which I am now renaming to wl12xx-firmware. 


Bt-firmware does provide the latest files needed for the Bluetooth portion of wl12xx. What is located in linux-firmware-wl12xx is outdated compared to the contents of bt-firmware. For example linux-firmware-wl12xx does not contain the bluetooth init script for am335x, while bt-firmware does.


-----Original Message-----
From: meta-ti-bounces@yoctoproject.org [mailto:meta-ti-bounces@yoctoproject.org] On Behalf Of Cooper Jr., Franklin
Sent: Saturday, September 22, 2012 9:50 AM
To: Koen Kooi; Franklin S. Cooper Jr
Cc: meta-ti@yoctoproject.org
Subject: Re: [meta-ti] [PATCH] bt-firmware: Port bt-firmware recipe

In arago this recipe was named linux-firmware. However, the custom git tree that is used only contains the firmware files for the wl12xx which is why I renamed it to reflect that. The firmware provided in this git tree will be the latest and greatest and include bug fixes that we discover during our testing. Now that I think of it will this cause an issue for people who want to use this recipe and linux-firmware-wl12xx at the same time? It seems like this can cause a race condition in determining which set of files will be used. I never used RCONFLICTS before but I am guessing setting RCONFLICTS = "linux-firmware-wl12xx" will fix that problem. I will try that out. If you have any other suggestions let me know.

-----Original Message-----
From: meta-ti-bounces@yoctoproject.org [mailto:meta-ti-bounces@yoctoproject.org] On Behalf Of Koen Kooi
Sent: Friday, September 21, 2012 11:43 PM
To: Franklin S. Cooper Jr
Cc: meta-ti@yoctoproject.org
Subject: Re: [meta-ti] [PATCH] bt-firmware: Port bt-firmware recipe


Op 22 sep. 2012, om 02:23 heeft Franklin S. Cooper Jr <fcooperjr27@gmail.com> het volgende geschreven:

> * Port bt-firmware recipe from arago.
> * Bt-firmware provides the bluetooth firmware for the TI wl12xx  Wi+Fi 
> + Bluetooth module.

What is the difference between this and the linux-firmware recipe?
_______________________________________________
meta-ti mailing list
meta-ti@yoctoproject.org
https://lists.yoctoproject.org/listinfo/meta-ti
_______________________________________________
meta-ti mailing list
meta-ti@yoctoproject.org
https://lists.yoctoproject.org/listinfo/meta-ti


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

* Re: [PATCH] bt-firmware: Port bt-firmware recipe
  2012-09-22  4:43 ` Koen Kooi
@ 2012-09-22 14:50   ` Cooper Jr., Franklin
  2012-10-05  4:59     ` Cooper Jr., Franklin
  0 siblings, 1 reply; 5+ messages in thread
From: Cooper Jr., Franklin @ 2012-09-22 14:50 UTC (permalink / raw)
  To: Koen Kooi, Franklin S. Cooper Jr; +Cc: meta-ti

In arago this recipe was named linux-firmware. However, the custom git tree that is used only contains the firmware files for the wl12xx which is why I renamed it to reflect that. The firmware provided in this git tree will be the latest and greatest and include bug fixes that we discover during our testing. Now that I think of it will this cause an issue for people who want to use this recipe and linux-firmware-wl12xx at the same time? It seems like this can cause a race condition in determining which set of files will be used. I never used RCONFLICTS before but I am guessing setting RCONFLICTS = "linux-firmware-wl12xx" will fix that problem. I will try that out. If you have any other suggestions let me know.

-----Original Message-----
From: meta-ti-bounces@yoctoproject.org [mailto:meta-ti-bounces@yoctoproject.org] On Behalf Of Koen Kooi
Sent: Friday, September 21, 2012 11:43 PM
To: Franklin S. Cooper Jr
Cc: meta-ti@yoctoproject.org
Subject: Re: [meta-ti] [PATCH] bt-firmware: Port bt-firmware recipe


Op 22 sep. 2012, om 02:23 heeft Franklin S. Cooper Jr <fcooperjr27@gmail.com> het volgende geschreven:

> * Port bt-firmware recipe from arago.
> * Bt-firmware provides the bluetooth firmware for the TI wl12xx  Wi+Fi 
> + Bluetooth module.

What is the difference between this and the linux-firmware recipe?
_______________________________________________
meta-ti mailing list
meta-ti@yoctoproject.org
https://lists.yoctoproject.org/listinfo/meta-ti


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

* Re: [PATCH] bt-firmware: Port bt-firmware recipe
  2012-09-22  0:23 Franklin S. Cooper Jr
@ 2012-09-22  4:43 ` Koen Kooi
  2012-09-22 14:50   ` Cooper Jr., Franklin
  0 siblings, 1 reply; 5+ messages in thread
From: Koen Kooi @ 2012-09-22  4:43 UTC (permalink / raw)
  To: Franklin S. Cooper Jr; +Cc: meta-ti


Op 22 sep. 2012, om 02:23 heeft Franklin S. Cooper Jr <fcooperjr27@gmail.com> het volgende geschreven:

> * Port bt-firmware recipe from arago.
> * Bt-firmware provides the bluetooth firmware for the TI wl12xx
>  Wi+Fi + Bluetooth module.

What is the difference between this and the linux-firmware recipe?

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

* [PATCH] bt-firmware: Port bt-firmware recipe
@ 2012-09-22  0:23 Franklin S. Cooper Jr
  2012-09-22  4:43 ` Koen Kooi
  0 siblings, 1 reply; 5+ messages in thread
From: Franklin S. Cooper Jr @ 2012-09-22  0:23 UTC (permalink / raw)
  To: meta-ti

* Port bt-firmware recipe from arago.
* Bt-firmware provides the bluetooth firmware for the TI wl12xx
  Wi+Fi + Bluetooth module.

Signed-off-by: Franklin S. Cooper Jr <fcooper@ti.com>
---
 ...01-Makefile-allow-building-within-the-SDK.patch |   50 ++++++++++++++++++++
 recipes-bsp/bt-firmware/bt-firmware_git.bb         |   31 ++++++++++++
 2 files changed, 81 insertions(+), 0 deletions(-)
 create mode 100644 recipes-bsp/bt-firmware/bt-firmware/0001-Makefile-allow-building-within-the-SDK.patch
 create mode 100644 recipes-bsp/bt-firmware/bt-firmware_git.bb

diff --git a/recipes-bsp/bt-firmware/bt-firmware/0001-Makefile-allow-building-within-the-SDK.patch b/recipes-bsp/bt-firmware/bt-firmware/0001-Makefile-allow-building-within-the-SDK.patch
new file mode 100644
index 0000000..38bd3c5
--- /dev/null
+++ b/recipes-bsp/bt-firmware/bt-firmware/0001-Makefile-allow-building-within-the-SDK.patch
@@ -0,0 +1,50 @@
+From 8f226ccc9d2cbd10d454e131376c35f502a45e3b Mon Sep 17 00:00:00 2001
+From: Chase Maupin <Chase.Maupin@ti.com>
+Date: Wed, 7 Mar 2012 14:11:42 -0600
+Subject: [PATCH] Makefile: allow building within the SDK
+
+* Use defaults and source values that allow building this
+  component within the SDK as well as with OE.
+
+Upstread-Status: Pending
+    * Will be accepted into next release
+
+Signed-off-by: Chase Maupin <Chase.Maupin@ti.com>
+---
+ Makefile |   21 +++++++++++++++++++++
+ 1 files changed, 21 insertions(+), 0 deletions(-)
+
+diff --git a/Makefile b/Makefile
+index 9035e40..bd94881 100644
+--- a/Makefile
++++ b/Makefile
+@@ -1,5 +1,26 @@
+ # Installs the the Bluetooth firmware files into the root file system
+ 
++-include ../../../Rules.make
++
++# If KERNEL_DIR is not set then use the default in Rules.make
++DEST_DIR ?= ${DESTDIR}
++
++PLATFORM ?= "unknown"
++MACHINE_NAME ?= "unknown"
++
++ifeq ($(PLATFORM), am335x-evm)
++    MACHINE_NAME := am335x
++endif
++ifeq ($(PLATFORM), am180x-evm)
++    MACHINE_NAME := am1808
++endif
++ifeq ($(PLATFORM), da850-omapl138-evm)
++    MACHINE_NAME := am1808
++endif
++ifeq ($(PLATFORM), am37x-evm)
++    MACHINE_NAME := omap3evm
++endif
++
+ install:
+ 	install -d $(DEST_DIR)${BASE_LIB_DIR}/firmware
+ 	cp -f ./${MACHINE_NAME}/* $(DEST_DIR)${BASE_LIB_DIR}/firmware
+-- 
+1.7.0.4
+
diff --git a/recipes-bsp/bt-firmware/bt-firmware_git.bb b/recipes-bsp/bt-firmware/bt-firmware_git.bb
new file mode 100644
index 0000000..181b228
--- /dev/null
+++ b/recipes-bsp/bt-firmware/bt-firmware_git.bb
@@ -0,0 +1,31 @@
+DESCRIPTION = "Firmware files for Bluetooth"
+LICENSE = "TI-TSPA"
+LIC_FILES_CHKSUM = "file://am335x/LICENCE;md5=ba590e1d103f891d0151609046aef9e8 \
+                    file://am1808/LICENCE;md5=ba590e1d103f891d0151609046aef9e8 \
+                    file://omap3evm/LICENCE;md5=ba590e1d103f891d0151609046aef9e8 \
+"
+
+PACKAGE_ARCH = "${MACHINE_ARCH}"
+
+PR = "r0+gitr${SRCREV}"
+
+COMPATIBLE_MACHINE = "am37x-evm|am180x-evm|da850-omapl138-evm|am335x-evm"
+
+SRCREV = "db43d1f05efda9777d7ac1ac366637e29e21f77f"
+SRC_URI = "git://github.com/TI-ECS/bt-firmware.git;protocol=git \
+           file://0001-Makefile-allow-building-within-the-SDK.patch"
+
+S = "${WORKDIR}/git"
+
+do_compile() {
+	:
+}
+
+do_install() {
+    install -d ${D}${base_libdir}/firmware
+	oe_runmake 'DEST_DIR=${D}' 'BASE_LIB_DIR=${base_libdir}' 'PLATFORM=${MACHINE}' install
+}
+
+FILES_${PN} += "${base_libdir}/firmware"
+
+
-- 
1.7.0.4



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

end of thread, other threads:[~2012-10-05 19:02 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-10-05 19:30 [PATCH] bt-firmware: Port bt-firmware recipe Franklin S. Cooper Jr
  -- strict thread matches above, loose matches on Subject: below --
2012-09-22  0:23 Franklin S. Cooper Jr
2012-09-22  4:43 ` Koen Kooi
2012-09-22 14:50   ` Cooper Jr., Franklin
2012-10-05  4:59     ` Cooper Jr., Franklin

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.