Skip to contentSkip to conversation

bt-enable: Add bt-enable recipe

PATCH Superseded Franklin S. Cooper Jr 4 participants 7 messages Oct 5, 2012 – Oct 9, 2012

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 bt-enable: Add bt-enable recipe

* Port bt-enable recipe from arago.
* Bt-enable is used to enable the BT module on the TI wl12xx Wi-Fi + Bluetooth module.

---
Version 2 changes:
Loosen up COMPATIBLE_MACHINE restriction. Using generic SOC family when possible.

...kefile-Update-makefile-to-work-well-in-OE.patch | 78 ++++++++++++++++++++

 recipes-bsp/bt-enable/bt-enable_1.0.bb             |   41 ++++++++++
 2 files changed, 119 insertions(+), 0 deletions(-)
 create mode 100644 recipes-bsp/bt-enable/bt-enable/0001-Makefile-Update-makefile-to-work-well-in-OE.patch
 create mode 100644 recipes-bsp/bt-enable/bt-enable_1.0.bb
recipes-bsp/bt-enable/bt-enable/0001-Makefile-Update-makefile-to-work-well-in-OE.patch new file +78 -0
new file mode 100644
index 0000000..7e6756c
@@ -0,0 +1,78 @@
+From a400ac3d83023a66a356d056899d6b380cb30473 Mon Sep 17 00:00:00 2001
+From: Chase Maupin <[email protected]>
+Date: Wed, 7 Mar 2012 10:51:43 -0600
+Subject: [PATCH] Makefile: Update makefile to work with OE
+
+* Updated the makefile to with OE
+* Use the kernel install target for installing the module
+
+Upstream-Status: Pending
+    * will be in next release
+
+Signed-off-by: Chase Maupin <[email protected]>
+---
+ Makefile |   45 ++++++++++++++++++++++++++++++++++++++++-----
+ 1 files changed, 40 insertions(+), 5 deletions(-)
+
+diff --git a/Makefile b/Makefile
+index ebbcd11..b17d33e 100755
+--- a/Makefile
++++ b/Makefile
+@@ -7,15 +7,50 @@ else
+   EXTRA_CFLAGS += -O2
+ endif
+
++-include ../../../Rules.make
++
++# If KERNEL_DIR is not set then use the default in Rules.make
++KERNEL_DIR ?= ${LINUXKERNEL_INSTALL_DIR}
++DEST_DIR ?= ${DESTDIR}
++
++PLATFORM ?= "unknown"
++MACHINE_NAME ?= "unknown"
++
++# Use the PLATFORM value from the Rules.make if it was sourced
++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
++
++# If CROSS_COMPILE is not set by Rules.make then set a sane default
++CROSS_COMPILE ?= arm-arago-linux-gnueabi-
++export CROSS_COMPILE
++
++# set the INSTALL_MOD_DIR so that the executables won't be placed in extra
++INSTALL_MOD_DIR = kernel/drivers/bt_enable
++export INSTALL_MOD_DIR
++
+ obj-m := gpio_en.o
+
++MAKE_ENV = ARCH=arm
++
+ PWD := $(shell pwd)
+ all:
+-	pwd
+-	@echo EXTRA_CFLAGS = $(EXTRA_CFLAGS)
+-	$(MAKE) CROSS_COMPILE=$(CROSS_COMPILE) ARCH=$(ARCH) EXTRA_CFLAGS="$(EXTRA_CFLAGS)" -C $(KERNEL_DIR) M=$(PWD) modules
++	@cp -f gpio_en_${MACHINE_NAME}.c gpio_en.c
++	$(MAKE) EXTRA_CFLAGS="$(EXTRA_CFLAGS)" -C $(KERNEL_DIR) $(MAKE_ENV) \
++    M=$(PWD) modules
++
+ install:
+-	install -d ${DEST_DIR}${BASE_LIB_DIR}/modules/${KRNL_VER}/kernel/drivers/bt_enable
+-	install -m 0755 ./gpio_en.ko ${DEST_DIR}${BASE_LIB_DIR}/modules/${KRNL_VER}/kernel/drivers/bt_enable
++	$(MAKE) EXTRA_CFLAGS="$(EXTRA_CFLAGS)" -C $(KERNEL_DIR) $(MAKE_ENV) \
++    M=$(PWD) INSTALL_MOD_PATH="${DEST_DIR}" modules_install
++
+ clean:
+	rm -rf *.o *~ core .depend .*.cmd *.ko *.mod.c .tmp_versions *.symvers
+--
+1.7.0.4
recipes-bsp/bt-enable/bt-enable_1.0.bb new file +41 -0

41 lines not on this page · raw message

Signature · 1 line
1.7.0.4
#1 lore raw

Why isn't this using the standard kim platformdata in the kernel? That also gives you a nice rfkill interface. That's how all the wl127x boards in mainline do it.

Op 5 okt. 2012, om 21:27 heeft Franklin S. Cooper Jr <[email protected]> het volgende geschreven:

Quoted 154 lines

* Port bt-enable recipe from arago.
* Bt-enable is used to enable the BT module on the TI wl12xx Wi-Fi + Bluetooth module.

---
Version 2 changes:
Loosen up COMPATIBLE_MACHINE restriction. Using generic SOC family when possible.

...kefile-Update-makefile-to-work-well-in-OE.patch |   78 ++++++++++++++++++++
recipes-bsp/bt-enable/bt-enable_1.0.bb             |   41 ++++++++++
2 files changed, 119 insertions(+), 0 deletions(-)

create mode 100644 recipes-bsp/bt-enable/bt-enable/0001-Makefile-Update-makefile-to-work-well-in-OE.patch create mode 100644 recipes-bsp/bt-enable/bt-enable_1.0.bb

recipes-bsp/bt-enable/bt-enable/0001-Makefile-Update-makefile-to-work-well-in-OE.patch new file +78 -0
new file mode 100644
index 0000000..7e6756c
@@ -0,0 +1,78 @@
+From a400ac3d83023a66a356d056899d6b380cb30473 Mon Sep 17 00:00:00 2001
+From: Chase Maupin <[email protected]>
+Date: Wed, 7 Mar 2012 10:51:43 -0600
+Subject: [PATCH] Makefile: Update makefile to work with OE
+
+* Updated the makefile to with OE
+* Use the kernel install target for installing the module
+
+Upstream-Status: Pending
+    * will be in next release
+
+Signed-off-by: Chase Maupin <[email protected]>
+---
+ Makefile |   45 ++++++++++++++++++++++++++++++++++++++++-----
+ 1 files changed, 40 insertions(+), 5 deletions(-)
+
+diff --git a/Makefile b/Makefile
+index ebbcd11..b17d33e 100755
+--- a/Makefile
++++ b/Makefile
+@@ -7,15 +7,50 @@ else
+   EXTRA_CFLAGS += -O2
+ endif
+
++-include ../../../Rules.make
++
++# If KERNEL_DIR is not set then use the default in Rules.make
++KERNEL_DIR ?= ${LINUXKERNEL_INSTALL_DIR}
++DEST_DIR ?= ${DESTDIR}
++
++PLATFORM ?= "unknown"
++MACHINE_NAME ?= "unknown"
++
++# Use the PLATFORM value from the Rules.make if it was sourced
++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
++
++# If CROSS_COMPILE is not set by Rules.make then set a sane default
++CROSS_COMPILE ?= arm-arago-linux-gnueabi-
++export CROSS_COMPILE
++
++# set the INSTALL_MOD_DIR so that the executables won't be placed in extra
++INSTALL_MOD_DIR = kernel/drivers/bt_enable
++export INSTALL_MOD_DIR
++
+ obj-m := gpio_en.o
+
++MAKE_ENV = ARCH=arm
++
+ PWD := $(shell pwd)
+ all:
+-	pwd
+-	@echo EXTRA_CFLAGS = $(EXTRA_CFLAGS)
+-	$(MAKE) CROSS_COMPILE=$(CROSS_COMPILE) ARCH=$(ARCH) EXTRA_CFLAGS="$(EXTRA_CFLAGS)" -C $(KERNEL_DIR) M=$(PWD) modules
++	@cp -f gpio_en_${MACHINE_NAME}.c gpio_en.c
++	$(MAKE) EXTRA_CFLAGS="$(EXTRA_CFLAGS)" -C $(KERNEL_DIR) $(MAKE_ENV) \
++    M=$(PWD) modules
++
+ install:
+-	install -d ${DEST_DIR}${BASE_LIB_DIR}/modules/${KRNL_VER}/kernel/drivers/bt_enable
+-	install -m 0755 ./gpio_en.ko ${DEST_DIR}${BASE_LIB_DIR}/modules/${KRNL_VER}/kernel/drivers/bt_enable
++	$(MAKE) EXTRA_CFLAGS="$(EXTRA_CFLAGS)" -C $(KERNEL_DIR) $(MAKE_ENV) \
++    M=$(PWD) INSTALL_MOD_PATH="${DEST_DIR}" modules_install
++
+ clean:
+	rm -rf *.o *~ core .depend .*.cmd *.ko *.mod.c .tmp_versions *.symvers
+--
+1.7.0.4
recipes-bsp/bt-enable/bt-enable_1.0.bb new file +41 -0
new file mode 100644
index 0000000..b6f1ee7
@@ -0,0 +1,41 @@
+DESCRIPTION = "BT GPIO Enable"
+LICENSE = "BSD"
+COMPATIBLE_MACHINE = "omap3|omapl138|da850-omapl138-evm|ti33x"
+LIC_FILES_CHKSUM = "file://gpio_en_am1808.c;beginline=1;endline=34;md5=fe94639d8f61c867d1bc4bf61473d3cd \
+                    file://gpio_en_am335x.c;beginline=1;endline=34;md5=fe94639d8f61c867d1bc4bf61473d3cd \
+                    file://gpio_en_omap3evm.c;beginline=1;endline=34;md5=fe94639d8f61c867d1bc4bf61473d3cd \
+"
+
+DEPENDS = "virtual/kernel"
+
+PACKAGE_ARCH = "${MACHINE_ARCH}"
+
+PACKAGE_STRIP = "no"
+
+inherit module
+
+MACHINE_KERNEL_PR_append = "a"
+PR = "r0+gitr${SRCREV}"
+
+SRCREV = "97c4600ff7d39f1cc6079939248cd9ed15100db4"
+
+SRC_URI = "git://github.com/TI-ECS/bt_enable.git;protocol=git \
+           file://0001-Makefile-Update-makefile-to-work-well-in-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"
+
+EXTRA_OEMAKE = " \
+	KERNEL_DIR=${STAGING_KERNEL_DIR} \
+    PLATFORM=${PLATFORM} \
+"
+
+do_install () {
+	oe_runmake 'DEST_DIR=${D}' install
+}
Signature · 6 lines
1.7.0.4

_______________________________________________
meta-ti mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/meta-ti
#2 lore raw

Looping in wireless team who can answer that question.

However, I don't see tis as blocking the acceptance of this recipe but more of feedback on the driver implementation. Do you see a reason to block the recipe?

Quoted 203 lines

-----Original Message-----
From: [email protected] [mailto:meta-ti- [email protected]] On Behalf Of Koen Kooi
Sent: Saturday, October 06, 2012 2:43 AM
To: Franklin S. Cooper Jr
Cc: [email protected]
Subject: Re: [meta-ti] [PATCH] bt-enable: Add bt-enable recipe

Why isn't this using the standard kim platformdata in the kernel? That also gives you a nice rfkill interface. That's how all the wl127x boards in mainline do it.

Op 5 okt. 2012, om 21:27 heeft Franklin S. Cooper Jr <[email protected]> het volgende geschreven:

Quoted 8 lines

* Port bt-enable recipe from arago.
* Bt-enable is used to enable the BT module on the TI wl12xx Wi-Fi + Bluetooth module.

---
Version 2 changes:
Loosen up COMPATIBLE_MACHINE restriction. Using generic SOC

family when

Quoted 3 lines

possible.

...kefile-Update-makefile-to-work-well-in-OE.patch | 78

++++++++++++++++++++

Quoted 1 line

recipes-bsp/bt-enable/bt-enable_1.0.bb | 41

++++++++++

Quoted 2 lines
2 files changed, 119 insertions(+), 0 deletions(-)

create mode 100644 recipes-bsp/bt-enable/bt-enable/0001-

Makefile-Update-makefile-to-work-well-in-OE.patch

Review

Quoted 3 lines

create mode 100644 recipes-bsp/bt-enable/bt-enable_1.0.bb

(quoted diff) +0 -0

Update-makefile-to-work-well-in-OE.patch b/recipes-bsp/bt- enable/bt-enable/0001-Makefile-Update-makefile-to-work-well-in- OE.patch

recipes-bsp/bt-enable/bt-enable/0001-Makefile-Update-

Quoted 4 lines

new file mode 100644
index 0000000..7e6756c

recipes-bsp/bt-enable/bt-enable/0001-Makefile-Update- new file +0 -0

makefile-to-work-well-in-OE.patch

recipes-bsp/bt-enable/bt-enable/0001-Makefile-Update- line 1

Quoted 2 lines
recipes-bsp/bt-enable/bt-enable/0001-Makefile-Update- new file +1 -0
@@ -0,0 +1,78 @@
+From a400ac3d83023a66a356d056899d6b380cb30473 Mon Sep 17

00:00:00 2001

Quoted 23 lines
recipes-bsp/bt-enable/bt-enable/0001-Makefile-Update- new file +23 -0
+From: Chase Maupin <[email protected]>
+Date: Wed, 7 Mar 2012 10:51:43 -0600
+Subject: [PATCH] Makefile: Update makefile to work with OE
+
+* Updated the makefile to with OE
+* Use the kernel install target for installing the module
+
+Upstream-Status: Pending
+    * will be in next release
+
+Signed-off-by: Chase Maupin <[email protected]>
+---
+ Makefile |   45 ++++++++++++++++++++++++++++++++++++++++-----
+ 1 files changed, 40 insertions(+), 5 deletions(-)
+
+diff --git a/Makefile b/Makefile
+index ebbcd11..b17d33e 100755
+--- a/Makefile
++++ b/Makefile
+@@ -7,15 +7,50 @@ else
+   EXTRA_CFLAGS += -O2
+ endif
+

recipes-bsp/bt-enable/bt-enable/0001-Makefile-Update- line 34

Quoted 10 lines
recipes-bsp/bt-enable/bt-enable/0001-Makefile-Update- new file +10 -0
++-include ../../../Rules.make
++
++# If KERNEL_DIR is not set then use the default in Rules.make
++KERNEL_DIR ?= ${LINUXKERNEL_INSTALL_DIR}
++DEST_DIR ?= ${DESTDIR}
++
++PLATFORM ?= "unknown"
++MACHINE_NAME ?= "unknown"
++
++# Use the PLATFORM value from the Rules.make if it was

sourced

Quoted 4 lines
recipes-bsp/bt-enable/bt-enable/0001-Makefile-Update- new file +4 -0
++ifeq ($(PLATFORM), am335x-evm)
++    MACHINE_NAME := "am335x"
++endif
++ifeq ($(PLATFORM), am180x-evm)

recipes-bsp/bt-enable/bt-enable/0001-Makefile-Update- line 48

Quoted 10 lines
recipes-bsp/bt-enable/bt-enable/0001-Makefile-Update- new file +10 -0
++    MACHINE_NAME := "am1808"
++endif
++ifeq ($(PLATFORM), da850-omapl138-evm)
++    MACHINE_NAME := "am1808"
++endif
++ifeq ($(PLATFORM), am37x-evm)
++    MACHINE_NAME := "omap3evm"
++endif
++
++# If CROSS_COMPILE is not set by Rules.make then set a sane

default

recipes-bsp/bt-enable/bt-enable/0001-Makefile-Update- line 52

Quoted 4 lines
recipes-bsp/bt-enable/bt-enable/0001-Makefile-Update- new file +4 -0
++CROSS_COMPILE ?= arm-arago-linux-gnueabi-
++export CROSS_COMPILE
++
++# set the INSTALL_MOD_DIR so that the executables won't be

placed in extra

recipes-bsp/bt-enable/bt-enable/0001-Makefile-Update- line 64

Quoted 12 lines
recipes-bsp/bt-enable/bt-enable/0001-Makefile-Update- new file +12 -0
++INSTALL_MOD_DIR = kernel/drivers/bt_enable
++export INSTALL_MOD_DIR
++
+ obj-m := gpio_en.o
+
++MAKE_ENV = ARCH=arm
++
+ PWD := $(shell pwd)
+ all:
+-	pwd
+-	@echo EXTRA_CFLAGS = $(EXTRA_CFLAGS)
+-	$(MAKE) CROSS_COMPILE=$(CROSS_COMPILE) ARCH=$(ARCH)

EXTRA_CFLAGS="$(EXTRA_CFLAGS)" -C $(KERNEL_DIR) M=$(PWD) modules

recipes-bsp/bt-enable/bt-enable/0001-Makefile-Update- line 66

Quoted 2 lines
recipes-bsp/bt-enable/bt-enable/0001-Makefile-Update- new file +2 -0
++	@cp -f gpio_en_${MACHINE_NAME}.c gpio_en.c
++	$(MAKE) EXTRA_CFLAGS="$(EXTRA_CFLAGS)" -C $(KERNEL_DIR)

$(MAKE_ENV) \

recipes-bsp/bt-enable/bt-enable/0001-Makefile-Update- line 70

Quoted 4 lines
recipes-bsp/bt-enable/bt-enable/0001-Makefile-Update- new file +4 -0
++    M=$(PWD) modules
++
+ install:
+-	install -d

${DEST_DIR}${BASE_LIB_DIR}/modules/${KRNL_VER}/kernel/drivers/bt_ enable

recipes-bsp/bt-enable/bt-enable/0001-Makefile-Update- line 71

Quoted 1 line
recipes-bsp/bt-enable/bt-enable/0001-Makefile-Update- new file +1 -0
+-	install -m 0755 ./gpio_en.ko

${DEST_DIR}${BASE_LIB_DIR}/modules/${KRNL_VER}/kernel/drivers/bt_ enable

recipes-bsp/bt-enable/bt-enable/0001-Makefile-Update- line 72

Quoted 1 line
recipes-bsp/bt-enable/bt-enable/0001-Makefile-Update- new file +1 -0
++	$(MAKE) EXTRA_CFLAGS="$(EXTRA_CFLAGS)" -C $(KERNEL_DIR)

$(MAKE_ENV) \

recipes-bsp/bt-enable/bt-enable/0001-Makefile-Update- line 76

Quoted 4 lines
recipes-bsp/bt-enable/bt-enable/0001-Makefile-Update- new file +4 -0
++    M=$(PWD) INSTALL_MOD_PATH="${DEST_DIR}" modules_install
++
+ clean:
+	rm -rf *.o *~ core .depend .*.cmd *.ko *.mod.c

.tmp_versions *.symvers

recipes-

Quoted 3 lines
recipes-bsp/bt-enable/bt-enable/0001-Makefile-Update- new file +2 -0
+--
+1.7.0.4
recipes- renamed from recipes-bsp/bt-enable/bt-enable_1.0.bb +0 -0

bsp/bt-enable/bt-enable_1.0.bb

recipes-bsp/bt-enable/bt-enable_1.0.bb line 4

Quoted 9 lines

new file mode 100644
index 0000000..b6f1ee7

recipes-bsp/bt-enable/bt-enable_1.0.bb new file +4 -0
@@ -0,0 +1,41 @@
+DESCRIPTION = "BT GPIO Enable"
+LICENSE = "BSD"
+COMPATIBLE_MACHINE = "omap3|omapl138|da850-omapl138-evm|ti33x"
+LIC_FILES_CHKSUM =

"file://gpio_en_am1808.c;beginline=1;endline=34;md5=fe94639d8f61c 867d1bc4bf61473d3cd \

recipes-bsp/bt-enable/bt-enable_1.0.bb line 5

Quoted 1 line
recipes-bsp/bt-enable/bt-enable_1.0.bb new file +1 -0
+

file://gpio_en_am335x.c;beginline=1;endline=34;md5=fe94639d8f61c8 67d1bc4bf61473d3cd \

recipes-bsp/bt-enable/bt-enable_1.0.bb line 6

Quoted 1 line
recipes-bsp/bt-enable/bt-enable_1.0.bb new file +1 -0
+

file://gpio_en_omap3evm.c;beginline=1;endline=34;md5=fe94639d8f61 c867d1bc4bf61473d3cd \

Quoted 6 lines
recipes-bsp/bt-enable/bt-enable_1.0.bb new file +6 -0
+"
+
+DEPENDS = "virtual/kernel"
+
+PACKAGE_ARCH = "${MACHINE_ARCH}"
+

recipes-bsp/bt-enable/bt-enable_1.0.bb

Quoted 10 lines
recipes-bsp/bt-enable/bt-enable_1.0.bb new file +10 -0
+PACKAGE_STRIP = "no"
+
+inherit module
+
+MACHINE_KERNEL_PR_append = "a"
+PR = "r0+gitr${SRCREV}"
+
+SRCREV = "97c4600ff7d39f1cc6079939248cd9ed15100db4"
+
+SRC_URI = "git://github.com/TI-ECS/bt_enable.git;protocol=git

\

recipes-bsp/bt-enable/bt-enable_1.0.bb line 23

Quoted 1 line
recipes-bsp/bt-enable/bt-enable_1.0.bb new file +1 -0
+           file://0001-Makefile-Update-makefile-to-work-well-

in-OE.patch \

Quoted 21 lines
recipes-bsp/bt-enable/bt-enable_1.0.bb new file +18 -1
+          "
+
+PLATFORM = "unknown"
+PLATFORM_ti33x = "am335x-evm"
+PLATFORM_omap3 = "am37x-evm"
+PLATFORM_omapl138 = "am180x-evm"
+PLATFORM_da850-omapl138-evm = "am180x-evm"
+
+S = "${WORKDIR}/git"
+
+EXTRA_OEMAKE = " \
+	KERNEL_DIR=${STAGING_KERNEL_DIR} \
+    PLATFORM=${PLATFORM} \
+"
+
+do_install () {
+	oe_runmake 'DEST_DIR=${D}' install
+}
--

1.7.0.4

Quoted 4 lines

_______________________________________________
meta-ti mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/meta-ti

_______________________________________________
meta-ti mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/meta-ti

#3 lore raw

Op 8 okt. 2012, om 14:09 heeft "Maupin, Chase" <[email protected]> het volgende geschreven:

Quoted 3 lines

Looping in wireless team who can answer that question.

However, I don't see tis as blocking the acceptance of this recipe but more of feedback on the driver implementation. Do you see a reason to block the recipe?

I see tons of reasons to block this recipe: duplicate DEPENDS, duplicate PACKAGE_ARCH, wrong ordering of variables, inconsistent whitespace, overriding EXTRA_OEMAKE instead of appending it, introducing another dependency on meta-oe. And that's even without the issue I raised earlier: why do it different from mainline? It looks like this is an 'opkg install unbreak-bluetooth' type of thing and you can't even tell me *why*.

Do I need to go on?

Quoted 204 lines
Quoted 204 lines

-----Original Message-----
From: [email protected] [mailto:meta-ti- [email protected]] On Behalf Of Koen Kooi
Sent: Saturday, October 06, 2012 2:43 AM
To: Franklin S. Cooper Jr
Cc: [email protected]
Subject: Re: [meta-ti] [PATCH] bt-enable: Add bt-enable recipe

Why isn't this using the standard kim platformdata in the kernel? That also gives you a nice rfkill interface. That's how all the wl127x boards in mainline do it.

Op 5 okt. 2012, om 21:27 heeft Franklin S. Cooper Jr <[email protected]> het volgende geschreven:

Quoted 8 lines

* Port bt-enable recipe from arago.
* Bt-enable is used to enable the BT module on the TI wl12xx Wi-Fi + Bluetooth module.

---
Version 2 changes:
Loosen up COMPATIBLE_MACHINE restriction. Using generic SOC

family when

Quoted 3 lines

possible.

...kefile-Update-makefile-to-work-well-in-OE.patch | 78

++++++++++++++++++++

Quoted 1 line

recipes-bsp/bt-enable/bt-enable_1.0.bb | 41

++++++++++

Quoted 2 lines
2 files changed, 119 insertions(+), 0 deletions(-)

create mode 100644 recipes-bsp/bt-enable/bt-enable/0001-

Makefile-Update-makefile-to-work-well-in-OE.patch

Review

Quoted 3 lines

create mode 100644 recipes-bsp/bt-enable/bt-enable_1.0.bb

(quoted diff) +0 -0

Update-makefile-to-work-well-in-OE.patch b/recipes-bsp/bt- enable/bt-enable/0001-Makefile-Update-makefile-to-work-well-in- OE.patch

recipes-bsp/bt-enable/bt-enable/0001-Makefile-Update-

Quoted 4 lines

new file mode 100644
index 0000000..7e6756c

recipes-bsp/bt-enable/bt-enable/0001-Makefile-Update- new file +0 -0

makefile-to-work-well-in-OE.patch

recipes-bsp/bt-enable/bt-enable/0001-Makefile-Update- line 1

Quoted 2 lines
recipes-bsp/bt-enable/bt-enable/0001-Makefile-Update- new file +1 -0
@@ -0,0 +1,78 @@
+From a400ac3d83023a66a356d056899d6b380cb30473 Mon Sep 17

00:00:00 2001

Quoted 23 lines
recipes-bsp/bt-enable/bt-enable/0001-Makefile-Update- new file +23 -0
+From: Chase Maupin <[email protected]>
+Date: Wed, 7 Mar 2012 10:51:43 -0600
+Subject: [PATCH] Makefile: Update makefile to work with OE
+
+* Updated the makefile to with OE
+* Use the kernel install target for installing the module
+
+Upstream-Status: Pending
+    * will be in next release
+
+Signed-off-by: Chase Maupin <[email protected]>
+---
+ Makefile |   45 ++++++++++++++++++++++++++++++++++++++++-----
+ 1 files changed, 40 insertions(+), 5 deletions(-)
+
+diff --git a/Makefile b/Makefile
+index ebbcd11..b17d33e 100755
+--- a/Makefile
++++ b/Makefile
+@@ -7,15 +7,50 @@ else
+   EXTRA_CFLAGS += -O2
+ endif
+

recipes-bsp/bt-enable/bt-enable/0001-Makefile-Update- line 34

Quoted 10 lines
recipes-bsp/bt-enable/bt-enable/0001-Makefile-Update- new file +10 -0
++-include ../../../Rules.make
++
++# If KERNEL_DIR is not set then use the default in Rules.make
++KERNEL_DIR ?= ${LINUXKERNEL_INSTALL_DIR}
++DEST_DIR ?= ${DESTDIR}
++
++PLATFORM ?= "unknown"
++MACHINE_NAME ?= "unknown"
++
++# Use the PLATFORM value from the Rules.make if it was

sourced

Quoted 4 lines
recipes-bsp/bt-enable/bt-enable/0001-Makefile-Update- new file +4 -0
++ifeq ($(PLATFORM), am335x-evm)
++    MACHINE_NAME := "am335x"
++endif
++ifeq ($(PLATFORM), am180x-evm)

recipes-bsp/bt-enable/bt-enable/0001-Makefile-Update- line 48

Quoted 10 lines
recipes-bsp/bt-enable/bt-enable/0001-Makefile-Update- new file +10 -0
++    MACHINE_NAME := "am1808"
++endif
++ifeq ($(PLATFORM), da850-omapl138-evm)
++    MACHINE_NAME := "am1808"
++endif
++ifeq ($(PLATFORM), am37x-evm)
++    MACHINE_NAME := "omap3evm"
++endif
++
++# If CROSS_COMPILE is not set by Rules.make then set a sane

default

recipes-bsp/bt-enable/bt-enable/0001-Makefile-Update- line 52

Quoted 4 lines
recipes-bsp/bt-enable/bt-enable/0001-Makefile-Update- new file +4 -0
++CROSS_COMPILE ?= arm-arago-linux-gnueabi-
++export CROSS_COMPILE
++
++# set the INSTALL_MOD_DIR so that the executables won't be

placed in extra

recipes-bsp/bt-enable/bt-enable/0001-Makefile-Update- line 64

Quoted 12 lines
recipes-bsp/bt-enable/bt-enable/0001-Makefile-Update- new file +12 -0
++INSTALL_MOD_DIR = kernel/drivers/bt_enable
++export INSTALL_MOD_DIR
++
+ obj-m := gpio_en.o
+
++MAKE_ENV = ARCH=arm
++
+ PWD := $(shell pwd)
+ all:
+-	pwd
+-	@echo EXTRA_CFLAGS = $(EXTRA_CFLAGS)
+-	$(MAKE) CROSS_COMPILE=$(CROSS_COMPILE) ARCH=$(ARCH)

EXTRA_CFLAGS="$(EXTRA_CFLAGS)" -C $(KERNEL_DIR) M=$(PWD) modules

recipes-bsp/bt-enable/bt-enable/0001-Makefile-Update- line 66

Quoted 2 lines
recipes-bsp/bt-enable/bt-enable/0001-Makefile-Update- new file +2 -0
++	@cp -f gpio_en_${MACHINE_NAME}.c gpio_en.c
++	$(MAKE) EXTRA_CFLAGS="$(EXTRA_CFLAGS)" -C $(KERNEL_DIR)

$(MAKE_ENV) \

recipes-bsp/bt-enable/bt-enable/0001-Makefile-Update- line 70

Quoted 4 lines
recipes-bsp/bt-enable/bt-enable/0001-Makefile-Update- new file +4 -0
++    M=$(PWD) modules
++
+ install:
+-	install -d

${DEST_DIR}${BASE_LIB_DIR}/modules/${KRNL_VER}/kernel/drivers/bt_ enable

recipes-bsp/bt-enable/bt-enable/0001-Makefile-Update- line 71

Quoted 1 line
recipes-bsp/bt-enable/bt-enable/0001-Makefile-Update- new file +1 -0
+-	install -m 0755 ./gpio_en.ko

${DEST_DIR}${BASE_LIB_DIR}/modules/${KRNL_VER}/kernel/drivers/bt_ enable

recipes-bsp/bt-enable/bt-enable/0001-Makefile-Update- line 72

Quoted 1 line
recipes-bsp/bt-enable/bt-enable/0001-Makefile-Update- new file +1 -0
++	$(MAKE) EXTRA_CFLAGS="$(EXTRA_CFLAGS)" -C $(KERNEL_DIR)

$(MAKE_ENV) \

recipes-bsp/bt-enable/bt-enable/0001-Makefile-Update- line 76

Quoted 4 lines
recipes-bsp/bt-enable/bt-enable/0001-Makefile-Update- new file +4 -0
++    M=$(PWD) INSTALL_MOD_PATH="${DEST_DIR}" modules_install
++
+ clean:
+	rm -rf *.o *~ core .depend .*.cmd *.ko *.mod.c

.tmp_versions *.symvers

recipes-

Quoted 3 lines
recipes-bsp/bt-enable/bt-enable/0001-Makefile-Update- new file +2 -0
+--
+1.7.0.4
recipes- renamed from recipes-bsp/bt-enable/bt-enable_1.0.bb +0 -0

bsp/bt-enable/bt-enable_1.0.bb

recipes-bsp/bt-enable/bt-enable_1.0.bb line 4

Quoted 9 lines

new file mode 100644
index 0000000..b6f1ee7

recipes-bsp/bt-enable/bt-enable_1.0.bb new file +4 -0
@@ -0,0 +1,41 @@
+DESCRIPTION = "BT GPIO Enable"
+LICENSE = "BSD"
+COMPATIBLE_MACHINE = "omap3|omapl138|da850-omapl138-evm|ti33x"
+LIC_FILES_CHKSUM =

"file://gpio_en_am1808.c;beginline=1;endline=34;md5=fe94639d8f61c 867d1bc4bf61473d3cd \

recipes-bsp/bt-enable/bt-enable_1.0.bb line 5

Quoted 1 line
recipes-bsp/bt-enable/bt-enable_1.0.bb new file +1 -0
+

file://gpio_en_am335x.c;beginline=1;endline=34;md5=fe94639d8f61c8 67d1bc4bf61473d3cd \

recipes-bsp/bt-enable/bt-enable_1.0.bb line 6

Quoted 1 line
recipes-bsp/bt-enable/bt-enable_1.0.bb new file +1 -0
+

file://gpio_en_omap3evm.c;beginline=1;endline=34;md5=fe94639d8f61 c867d1bc4bf61473d3cd \

Quoted 6 lines
recipes-bsp/bt-enable/bt-enable_1.0.bb new file +6 -0
+"
+
+DEPENDS = "virtual/kernel"
+
+PACKAGE_ARCH = "${MACHINE_ARCH}"
+

recipes-bsp/bt-enable/bt-enable_1.0.bb

Quoted 10 lines
recipes-bsp/bt-enable/bt-enable_1.0.bb new file +10 -0
+PACKAGE_STRIP = "no"
+
+inherit module
+
+MACHINE_KERNEL_PR_append = "a"
+PR = "r0+gitr${SRCREV}"
+
+SRCREV = "97c4600ff7d39f1cc6079939248cd9ed15100db4"
+
+SRC_URI = "git://github.com/TI-ECS/bt_enable.git;protocol=git

\

recipes-bsp/bt-enable/bt-enable_1.0.bb line 23

Quoted 1 line
recipes-bsp/bt-enable/bt-enable_1.0.bb new file +1 -0
+           file://0001-Makefile-Update-makefile-to-work-well-

in-OE.patch \

Quoted 21 lines
recipes-bsp/bt-enable/bt-enable_1.0.bb new file +18 -1
+          "
+
+PLATFORM = "unknown"
+PLATFORM_ti33x = "am335x-evm"
+PLATFORM_omap3 = "am37x-evm"
+PLATFORM_omapl138 = "am180x-evm"
+PLATFORM_da850-omapl138-evm = "am180x-evm"
+
+S = "${WORKDIR}/git"
+
+EXTRA_OEMAKE = " \
+	KERNEL_DIR=${STAGING_KERNEL_DIR} \
+    PLATFORM=${PLATFORM} \
+"
+
+do_install () {
+	oe_runmake 'DEST_DIR=${D}' install
+}
--

1.7.0.4

Quoted 4 lines

_______________________________________________
meta-ti mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/meta-ti

_______________________________________________
meta-ti mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/meta-ti

#4 lore raw
Quoted 18 lines

-----Original Message-----
From: Koen Kooi [mailto:[email protected]]
Sent: Monday, October 08, 2012 8:05 AM
To: Maupin, Chase
Cc: Franklin S. Cooper Jr; Reizer, Eyal; Algranati, EYAL; meta- [email protected]
Subject: Re: [meta-ti] [PATCH] bt-enable: Add bt-enable recipe

Op 8 okt. 2012, om 14:09 heeft "Maupin, Chase"
<[email protected]> het volgende geschreven:

Quoted 3 lines

Looping in wireless team who can answer that question.

However, I don't see tis as blocking the acceptance of this

recipe but more of feedback on the driver implementation. Do you see a reason to block the recipe?

Quoted 7 lines

I see tons of reasons to block this recipe: duplicate DEPENDS, duplicate PACKAGE_ARCH, wrong ordering of variables, inconsistent whitespace, overriding EXTRA_OEMAKE instead of appending it, introducing another dependency on meta-oe. And that's even without the issue I raised earlier: why do it different from mainline? It looks like this is an 'opkg install unbreak- bluetooth' type of thing and you can't even tell me *why*.

I looped in the driver maintainers to tell you *why*, so please give them a chance to respond.

As for the other feedback, thank you. I'm sure Franklin will find these specifics helpful for correcting his recipe.

But my initial statement stands. The structure of the driver should not be what blocks this recipe. Feedback to the driver owner is useful and appreciated so don't think I'm saying we should ignore that. Let's focus on the recipe here and let the driver owner have a chance to address issues you see with their driver.

Quoted 2 lines

Do I need to go on?

If you have more useful feedback then please do. Perhaps some specifics on "wrong ordering of variables" and the new "dependency on meta-oe" would be useful. I see that PLATFORM could possibly be done differently (and should not have both omapl138 and da850-omapl138-evm defined), but I'm afraid I don't see the meta-oe dependency. Any help you can give here would be appreciated.

Quoted 222 lines
Quoted 11 lines
Quoted 11 lines

-----Original Message-----
From: [email protected] [mailto:meta-ti- [email protected]] On Behalf Of Koen Kooi
Sent: Saturday, October 06, 2012 2:43 AM
To: Franklin S. Cooper Jr
Cc: [email protected]
Subject: Re: [meta-ti] [PATCH] bt-enable: Add bt-enable recipe

Why isn't this using the standard kim platformdata in the

kernel?

Quoted 1 line
Quoted 1 line

That also gives you a nice rfkill interface. That's how all

the

Quoted 20 lines
Quoted 20 lines

wl127x boards in mainline do it.

Op 5 okt. 2012, om 21:27 heeft Franklin S. Cooper Jr <[email protected]> het volgende geschreven:

Quoted 8 lines

* Port bt-enable recipe from arago.
* Bt-enable is used to enable the BT module on the TI wl12xx Wi-Fi + Bluetooth module.

---
Version 2 changes:
Loosen up COMPATIBLE_MACHINE restriction. Using generic SOC

family when

Quoted 3 lines

possible.

...kefile-Update-makefile-to-work-well-in-OE.patch | 78

++++++++++++++++++++

Quoted 1 line

recipes-bsp/bt-enable/bt-enable_1.0.bb | 41

++++++++++

Quoted 8 lines
Quoted 8 lines
Quoted 2 lines
2 files changed, 119 insertions(+), 0 deletions(-)

create mode 100644 recipes-bsp/bt-enable/bt-enable/0001-

Makefile-Update-makefile-to-work-well-in-OE.patch

Review

Quoted 3 lines

create mode 100644 recipes-bsp/bt-enable/bt-enable_1.0.bb

(quoted diff) +0 -0

Update-makefile-to-work-well-in-OE.patch b/recipes-bsp/bt- enable/bt-enable/0001-Makefile-Update-makefile-to-work-well-

in-

Quoted 9 lines
Quoted 9 lines

OE.patch

recipes-bsp/bt-enable/bt-enable/0001-Makefile-Update-

Quoted 4 lines

new file mode 100644
index 0000000..7e6756c

recipes-bsp/bt-enable/bt-enable/0001-Makefile-Update- new file +0 -0

makefile-to-work-well-in-OE.patch

recipes-bsp/bt-enable/bt-enable/0001-Makefile-Update- line 1

Quoted 2 lines
recipes-bsp/bt-enable/bt-enable/0001-Makefile-Update- new file +1 -0
@@ -0,0 +1,78 @@
+From a400ac3d83023a66a356d056899d6b380cb30473 Mon Sep 17

00:00:00 2001

Quoted 13 lines
Quoted 5 lines
Quoted 5 lines
recipes-bsp/bt-enable/bt-enable/0001-Makefile-Update- new file +5 -0
+From: Chase Maupin <[email protected]>
+Date: Wed, 7 Mar 2012 10:51:43 -0600
+Subject: [PATCH] Makefile: Update makefile to work with OE
+
+* Updated the makefile to with OE
Quoted 8 lines

recipes-bsp/bt-enable/bt-enable/0001-Makefile-Update- line 14

Quoted 8 lines
recipes-bsp/bt-enable/bt-enable/0001-Makefile-Update- new file +8 -0
+* Use the kernel install target for installing the module
+
+Upstream-Status: Pending
+    * will be in next release
+
+Signed-off-by: Chase Maupin <[email protected]>
+---
+ Makefile |   45 ++++++++++++++++++++++++++++++++++++++++---

--

Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
recipes-bsp/bt-enable/bt-enable/0001-Makefile-Update- new file +5 -0
+ 1 files changed, 40 insertions(+), 5 deletions(-)
+
+diff --git a/Makefile b/Makefile
+index ebbcd11..b17d33e 100755
+--- a/Makefile
Quoted 8 lines
Quoted 8 lines

recipes-bsp/bt-enable/bt-enable/0001-Makefile-Update- line 27

Quoted 8 lines
recipes-bsp/bt-enable/bt-enable/0001-Makefile-Update- new file +8 -0
++++ b/Makefile
+@@ -7,15 +7,50 @@ else
+   EXTRA_CFLAGS += -O2
+ endif
+
++-include ../../../Rules.make
++
++# If KERNEL_DIR is not set then use the default in

Rules.make

Quoted 40 lines
Quoted 40 lines

recipes-bsp/bt-enable/bt-enable/0001-Makefile-Update- line 34

Quoted 7 lines
recipes-bsp/bt-enable/bt-enable/0001-Makefile-Update- new file +7 -0
++KERNEL_DIR ?= ${LINUXKERNEL_INSTALL_DIR}
++DEST_DIR ?= ${DESTDIR}
++
++PLATFORM ?= "unknown"
++MACHINE_NAME ?= "unknown"
++
++# Use the PLATFORM value from the Rules.make if it was

sourced

Quoted 4 lines
recipes-bsp/bt-enable/bt-enable/0001-Makefile-Update- new file +4 -0
++ifeq ($(PLATFORM), am335x-evm)
++    MACHINE_NAME := "am335x"
++endif
++ifeq ($(PLATFORM), am180x-evm)

recipes-bsp/bt-enable/bt-enable/0001-Makefile-Update- line 48

Quoted 10 lines
recipes-bsp/bt-enable/bt-enable/0001-Makefile-Update- new file +10 -0
++    MACHINE_NAME := "am1808"
++endif
++ifeq ($(PLATFORM), da850-omapl138-evm)
++    MACHINE_NAME := "am1808"
++endif
++ifeq ($(PLATFORM), am37x-evm)
++    MACHINE_NAME := "omap3evm"
++endif
++
++# If CROSS_COMPILE is not set by Rules.make then set a sane

default

recipes-bsp/bt-enable/bt-enable/0001-Makefile-Update- line 52

Quoted 4 lines
recipes-bsp/bt-enable/bt-enable/0001-Makefile-Update- new file +4 -0
++CROSS_COMPILE ?= arm-arago-linux-gnueabi-
++export CROSS_COMPILE
++
++# set the INSTALL_MOD_DIR so that the executables won't be

placed in extra

Quoted 12 lines
recipes-bsp/bt-enable/bt-enable/0001-Makefile-Update- new file +12 -0
++INSTALL_MOD_DIR = kernel/drivers/bt_enable
++export INSTALL_MOD_DIR
++
+ obj-m := gpio_en.o
+
++MAKE_ENV = ARCH=arm
++
+ PWD := $(shell pwd)
+ all:
+-	pwd
+-	@echo EXTRA_CFLAGS = $(EXTRA_CFLAGS)
+-	$(MAKE) CROSS_COMPILE=$(CROSS_COMPILE) ARCH=$(ARCH)
Quoted 1 line
Quoted 1 line

EXTRA_CFLAGS="$(EXTRA_CFLAGS)" -C $(KERNEL_DIR) M=$(PWD)

modules

Quoted 2 lines
Quoted 2 lines

recipes-bsp/bt-enable/bt-enable/0001-Makefile-Update- line 66

Quoted 2 lines
recipes-bsp/bt-enable/bt-enable/0001-Makefile-Update- new file +2 -0
++	@cp -f gpio_en_${MACHINE_NAME}.c gpio_en.c
++	$(MAKE) EXTRA_CFLAGS="$(EXTRA_CFLAGS)" -C

$(KERNEL_DIR)

Quoted 6 lines
Quoted 6 lines

$(MAKE_ENV) \

Quoted 4 lines
recipes-bsp/bt-enable/bt-enable/0001-Makefile-Update- new file +4 -0
++    M=$(PWD) modules
++
+ install:
+-	install -d

${DEST_DIR}${BASE_LIB_DIR}/modules/${KRNL_VER}/kernel/drivers/bt_

Quoted 3 lines
Quoted 3 lines

enable

Quoted 1 line
recipes-bsp/bt-enable/bt-enable/0001-Makefile-Update- new file +1 -0
+-	install -m 0755 ./gpio_en.ko

${DEST_DIR}${BASE_LIB_DIR}/modules/${KRNL_VER}/kernel/drivers/bt_

Quoted 2 lines
Quoted 2 lines

enable

Quoted 1 line
recipes-bsp/bt-enable/bt-enable/0001-Makefile-Update- new file +1 -0
++	$(MAKE) EXTRA_CFLAGS="$(EXTRA_CFLAGS)" -C

$(KERNEL_DIR)

Quoted 9 lines
Quoted 9 lines

$(MAKE_ENV) \

recipes-bsp/bt-enable/bt-enable/0001-Makefile-Update- line 76

Quoted 4 lines
recipes-bsp/bt-enable/bt-enable/0001-Makefile-Update- new file +4 -0
++    M=$(PWD) INSTALL_MOD_PATH="${DEST_DIR}" modules_install
++
+ clean:
+	rm -rf *.o *~ core .depend .*.cmd *.ko *.mod.c

.tmp_versions *.symvers

Review

Quoted 3 lines
recipes-bsp/bt-enable/bt-enable/0001-Makefile-Update- new file +2 -0
+--
+1.7.0.4
(quoted diff) +0 -0

b/recipes-

Quoted 9 lines
Quoted 9 lines

bsp/bt-enable/bt-enable_1.0.bb

recipes-bsp/bt-enable/bt-enable_1.0.bb line 3

Quoted 8 lines

new file mode 100644
index 0000000..b6f1ee7

recipes-bsp/bt-enable/bt-enable_1.0.bb new file +3 -0
@@ -0,0 +1,41 @@
+DESCRIPTION = "BT GPIO Enable"
+LICENSE = "BSD"
+COMPATIBLE_MACHINE = "omap3|omapl138|da850-omapl138-

evm|ti33x"

Quoted 2 lines
Quoted 2 lines

recipes-bsp/bt-enable/bt-enable_1.0.bb line 4

Quoted 1 line
recipes-bsp/bt-enable/bt-enable_1.0.bb new file +1 -0
+LIC_FILES_CHKSUM =

"file://gpio_en_am1808.c;beginline=1;endline=34;md5=fe94639d8f61c

Quoted 3 lines
Quoted 3 lines

867d1bc4bf61473d3cd \

Quoted 1 line
recipes-bsp/bt-enable/bt-enable_1.0.bb new file +1 -0
+

file://gpio_en_am335x.c;beginline=1;endline=34;md5=fe94639d8f61c8

Quoted 3 lines
Quoted 3 lines

67d1bc4bf61473d3cd \

Quoted 1 line
recipes-bsp/bt-enable/bt-enable_1.0.bb new file +1 -0
+

file://gpio_en_omap3evm.c;beginline=1;endline=34;md5=fe94639d8f61

Quoted 17 lines
Quoted 17 lines

c867d1bc4bf61473d3cd \

Quoted 6 lines
recipes-bsp/bt-enable/bt-enable_1.0.bb new file +6 -0
+"
+
+DEPENDS = "virtual/kernel"
+
+PACKAGE_ARCH = "${MACHINE_ARCH}"
+

recipes-bsp/bt-enable/bt-enable_1.0.bb

Quoted 10 lines
recipes-bsp/bt-enable/bt-enable_1.0.bb new file +10 -0
+PACKAGE_STRIP = "no"
+
+inherit module
+
+MACHINE_KERNEL_PR_append = "a"
+PR = "r0+gitr${SRCREV}"
+
+SRCREV = "97c4600ff7d39f1cc6079939248cd9ed15100db4"
+
+SRC_URI = "git://github.com/TI-

ECS/bt_enable.git;protocol=git

Quoted 2 lines
Quoted 2 lines

\

Quoted 1 line
recipes-bsp/bt-enable/bt-enable_1.0.bb new file +1 -0
+           file://0001-Makefile-Update-makefile-to-work-

well-

Quoted 31 lines
Quoted 31 lines

in-OE.patch \

Quoted 21 lines
recipes-bsp/bt-enable/bt-enable_1.0.bb new file +18 -1
+          "
+
+PLATFORM = "unknown"
+PLATFORM_ti33x = "am335x-evm"
+PLATFORM_omap3 = "am37x-evm"
+PLATFORM_omapl138 = "am180x-evm"
+PLATFORM_da850-omapl138-evm = "am180x-evm"
+
+S = "${WORKDIR}/git"
+
+EXTRA_OEMAKE = " \
+	KERNEL_DIR=${STAGING_KERNEL_DIR} \
+    PLATFORM=${PLATFORM} \
+"
+
+do_install () {
+	oe_runmake 'DEST_DIR=${D}' install
+}
--

1.7.0.4

Quoted 4 lines

_______________________________________________
meta-ti mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/meta-ti

_______________________________________________
meta-ti mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/meta-ti

#5 lore raw
Quoted 38 lines · Chase
Quoted 18 lines

-----Original Message-----
From: Koen Kooi [mailto:[email protected]]
Sent: Monday, October 08, 2012 8:05 AM
To: Maupin, Chase
Cc: Franklin S. Cooper Jr; Reizer, Eyal; Algranati, EYAL; meta- [email protected]
Subject: Re: [meta-ti] [PATCH] bt-enable: Add bt-enable recipe

Op 8 okt. 2012, om 14:09 heeft "Maupin, Chase"
<[email protected]> het volgende geschreven:

Quoted 3 lines

Looping in wireless team who can answer that question.

However, I don't see tis as blocking the acceptance of this

recipe but more of feedback on the driver implementation. Do you see a reason to block the recipe?

Quoted 7 lines

I see tons of reasons to block this recipe: duplicate DEPENDS, duplicate PACKAGE_ARCH, wrong ordering of variables, inconsistent whitespace, overriding EXTRA_OEMAKE instead of appending it, introducing another dependency on meta-oe. And that's even without the issue I raised earlier: why do it different from mainline? It looks like this is an 'opkg install unbreak- bluetooth' type of thing and you can't even tell me *why*.

I looped in the driver maintainers to tell you *why*, so please give them a chance to respond.

As for the other feedback, thank you. I'm sure Franklin will find these specifics helpful for correcting his recipe.

But my initial statement stands. The structure of the driver should not be what blocks this recipe. Feedback to the driver owner is useful and appreciated so don't think I'm saying we should ignore that. Let's focus on the recipe here and let the driver owner have a chance to address issues you see with their driver.

Quoted 8 lines
Quoted 1 line

Do I need to go on?

If you have more useful feedback then please do. Perhaps some specifics on "wrong ordering of variables" and the new "dependency on meta-oe" would be useful. I see that PLATFORM could possibly be done differently (and should not have both omapl138 and da850-omapl138-evm defined), but I'm afraid I don't see the meta-oe dependency. Any help you can give here would be appreciated.

Chase,

Franklin already sent the new revision of the patch (although, the last one was v2 and the new one is still v2...) with most of the issues fixed.

For the record, here are some specifics you asked:

1. duplicate DEPENDS - module.bbclass already sets it for you
2. duplicate PACKAGE_ARCH - same as above, set in module.bbclass
3. wrong ordering of variables - there are some hard exceptions, but even Yocto guys and Richard are not that strict on this matter...
4. inconsistent whitespace - EXTRA_OEMAKE is multi-line, but uses mix of spaces and tabs
4a. please note, it is "acceptable" to use tabs for shell-code indentation, but not in Python _code_. Also, it is acceptable to use tabs in multi-line variables. But please be consistent in using one or another. For simplicity it may just be easier to use only spaces...
5. overriding EXTRA_OEMAKE - you might lose framework's default make flags, although by default it's just "-e MAKEFLGAS="
6. another dependency on meta-oe - while not obvious, MACHINE_KERNEL_PR is really being used by meta-oe:
http://cgit.openembedded.org/meta-openembedded/tree/meta-oe/classes/kernel.bbclass#n24

Signature · 1 line
Denys
Quoted 225 lines
Quoted 186 lines
Quoted 9 lines
Quoted 9 lines

-----Original Message-----
From: [email protected] [mailto:meta-ti- [email protected]] On Behalf Of Koen Kooi
Sent: Saturday, October 06, 2012 2:43 AM
To: Franklin S. Cooper Jr
Cc: [email protected]
Subject: Re: [meta-ti] [PATCH] bt-enable: Add bt-enable recipe

Why isn't this using the standard kim platformdata in the

kernel?

Quoted 1 line
Quoted 1 line

That also gives you a nice rfkill interface. That's how all

the

Quoted 20 lines
Quoted 20 lines

wl127x boards in mainline do it.

Op 5 okt. 2012, om 21:27 heeft Franklin S. Cooper Jr <[email protected]> het volgende geschreven:

Quoted 8 lines

* Port bt-enable recipe from arago.
* Bt-enable is used to enable the BT module on the TI wl12xx Wi-Fi + Bluetooth module.

---
Version 2 changes:
Loosen up COMPATIBLE_MACHINE restriction. Using generic SOC

family when

Quoted 3 lines

possible.

...kefile-Update-makefile-to-work-well-in-OE.patch | 78

++++++++++++++++++++

Quoted 1 line

recipes-bsp/bt-enable/bt-enable_1.0.bb | 41

++++++++++

Quoted 8 lines
Quoted 8 lines
Quoted 2 lines
2 files changed, 119 insertions(+), 0 deletions(-)

create mode 100644 recipes-bsp/bt-enable/bt-enable/0001-

Makefile-Update-makefile-to-work-well-in-OE.patch

Review

Quoted 3 lines

create mode 100644 recipes-bsp/bt-enable/bt-enable_1.0.bb

(quoted diff) +0 -0

Update-makefile-to-work-well-in-OE.patch b/recipes-bsp/bt- enable/bt-enable/0001-Makefile-Update-makefile-to-work-well-

in-

Quoted 9 lines
Quoted 9 lines

OE.patch

recipes-bsp/bt-enable/bt-enable/0001-Makefile-Update-

Quoted 4 lines

new file mode 100644
index 0000000..7e6756c

recipes-bsp/bt-enable/bt-enable/0001-Makefile-Update- new file +0 -0

makefile-to-work-well-in-OE.patch

recipes-bsp/bt-enable/bt-enable/0001-Makefile-Update- line 1

Quoted 2 lines
recipes-bsp/bt-enable/bt-enable/0001-Makefile-Update- new file +1 -0
@@ -0,0 +1,78 @@
+From a400ac3d83023a66a356d056899d6b380cb30473 Mon Sep 17

00:00:00 2001

Quoted 13 lines
Quoted 5 lines
Quoted 5 lines
recipes-bsp/bt-enable/bt-enable/0001-Makefile-Update- new file +5 -0
+From: Chase Maupin <[email protected]>
+Date: Wed, 7 Mar 2012 10:51:43 -0600
+Subject: [PATCH] Makefile: Update makefile to work with OE
+
+* Updated the makefile to with OE
Quoted 8 lines

recipes-bsp/bt-enable/bt-enable/0001-Makefile-Update- line 14

Quoted 8 lines
recipes-bsp/bt-enable/bt-enable/0001-Makefile-Update- new file +8 -0
+* Use the kernel install target for installing the module
+
+Upstream-Status: Pending
+    * will be in next release
+
+Signed-off-by: Chase Maupin <[email protected]>
+---
+ Makefile |   45 ++++++++++++++++++++++++++++++++++++++++---

--

Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
recipes-bsp/bt-enable/bt-enable/0001-Makefile-Update- new file +5 -0
+ 1 files changed, 40 insertions(+), 5 deletions(-)
+
+diff --git a/Makefile b/Makefile
+index ebbcd11..b17d33e 100755
+--- a/Makefile
Quoted 8 lines
Quoted 8 lines

recipes-bsp/bt-enable/bt-enable/0001-Makefile-Update- line 27

Quoted 8 lines
recipes-bsp/bt-enable/bt-enable/0001-Makefile-Update- new file +8 -0
++++ b/Makefile
+@@ -7,15 +7,50 @@ else
+   EXTRA_CFLAGS += -O2
+ endif
+
++-include ../../../Rules.make
++
++# If KERNEL_DIR is not set then use the default in

Rules.make

Quoted 40 lines
Quoted 40 lines

recipes-bsp/bt-enable/bt-enable/0001-Makefile-Update- line 34

Quoted 7 lines
recipes-bsp/bt-enable/bt-enable/0001-Makefile-Update- new file +7 -0
++KERNEL_DIR ?= ${LINUXKERNEL_INSTALL_DIR}
++DEST_DIR ?= ${DESTDIR}
++
++PLATFORM ?= "unknown"
++MACHINE_NAME ?= "unknown"
++
++# Use the PLATFORM value from the Rules.make if it was

sourced

Quoted 4 lines
recipes-bsp/bt-enable/bt-enable/0001-Makefile-Update- new file +4 -0
++ifeq ($(PLATFORM), am335x-evm)
++    MACHINE_NAME := "am335x"
++endif
++ifeq ($(PLATFORM), am180x-evm)

recipes-bsp/bt-enable/bt-enable/0001-Makefile-Update- line 48

Quoted 10 lines
recipes-bsp/bt-enable/bt-enable/0001-Makefile-Update- new file +10 -0
++    MACHINE_NAME := "am1808"
++endif
++ifeq ($(PLATFORM), da850-omapl138-evm)
++    MACHINE_NAME := "am1808"
++endif
++ifeq ($(PLATFORM), am37x-evm)
++    MACHINE_NAME := "omap3evm"
++endif
++
++# If CROSS_COMPILE is not set by Rules.make then set a sane

default

recipes-bsp/bt-enable/bt-enable/0001-Makefile-Update- line 52

Quoted 4 lines
recipes-bsp/bt-enable/bt-enable/0001-Makefile-Update- new file +4 -0
++CROSS_COMPILE ?= arm-arago-linux-gnueabi-
++export CROSS_COMPILE
++
++# set the INSTALL_MOD_DIR so that the executables won't be

placed in extra

Quoted 12 lines
recipes-bsp/bt-enable/bt-enable/0001-Makefile-Update- new file +12 -0
++INSTALL_MOD_DIR = kernel/drivers/bt_enable
++export INSTALL_MOD_DIR
++
+ obj-m := gpio_en.o
+
++MAKE_ENV = ARCH=arm
++
+ PWD := $(shell pwd)
+ all:
+-	pwd
+-	@echo EXTRA_CFLAGS = $(EXTRA_CFLAGS)
+-	$(MAKE) CROSS_COMPILE=$(CROSS_COMPILE) ARCH=$(ARCH)
Quoted 1 line
Quoted 1 line

EXTRA_CFLAGS="$(EXTRA_CFLAGS)" -C $(KERNEL_DIR) M=$(PWD)

modules

Quoted 2 lines
Quoted 2 lines

recipes-bsp/bt-enable/bt-enable/0001-Makefile-Update- line 66

Quoted 2 lines
recipes-bsp/bt-enable/bt-enable/0001-Makefile-Update- new file +2 -0
++	@cp -f gpio_en_${MACHINE_NAME}.c gpio_en.c
++	$(MAKE) EXTRA_CFLAGS="$(EXTRA_CFLAGS)" -C

$(KERNEL_DIR)

Quoted 6 lines
Quoted 6 lines

$(MAKE_ENV) \

Quoted 4 lines
recipes-bsp/bt-enable/bt-enable/0001-Makefile-Update- new file +4 -0
++    M=$(PWD) modules
++
+ install:
+-	install -d

${DEST_DIR}${BASE_LIB_DIR}/modules/${KRNL_VER}/kernel/drivers/bt_

Quoted 3 lines
Quoted 3 lines

enable

Quoted 1 line
recipes-bsp/bt-enable/bt-enable/0001-Makefile-Update- new file +1 -0
+-	install -m 0755 ./gpio_en.ko

${DEST_DIR}${BASE_LIB_DIR}/modules/${KRNL_VER}/kernel/drivers/bt_

Quoted 2 lines
Quoted 2 lines

enable

Quoted 1 line
recipes-bsp/bt-enable/bt-enable/0001-Makefile-Update- new file +1 -0
++	$(MAKE) EXTRA_CFLAGS="$(EXTRA_CFLAGS)" -C

$(KERNEL_DIR)

Quoted 9 lines
Quoted 9 lines

$(MAKE_ENV) \

recipes-bsp/bt-enable/bt-enable/0001-Makefile-Update- line 76

Quoted 4 lines
recipes-bsp/bt-enable/bt-enable/0001-Makefile-Update- new file +4 -0
++    M=$(PWD) INSTALL_MOD_PATH="${DEST_DIR}" modules_install
++
+ clean:
+	rm -rf *.o *~ core .depend .*.cmd *.ko *.mod.c

.tmp_versions *.symvers

Review

Quoted 3 lines
recipes-bsp/bt-enable/bt-enable/0001-Makefile-Update- new file +2 -0
+--
+1.7.0.4
(quoted diff) +0 -0

b/recipes-

Quoted 9 lines
Quoted 9 lines

bsp/bt-enable/bt-enable_1.0.bb

recipes-bsp/bt-enable/bt-enable_1.0.bb line 3

Quoted 8 lines

new file mode 100644
index 0000000..b6f1ee7

recipes-bsp/bt-enable/bt-enable_1.0.bb new file +3 -0
@@ -0,0 +1,41 @@
+DESCRIPTION = "BT GPIO Enable"
+LICENSE = "BSD"
+COMPATIBLE_MACHINE = "omap3|omapl138|da850-omapl138-

evm|ti33x"

Quoted 2 lines
Quoted 2 lines

recipes-bsp/bt-enable/bt-enable_1.0.bb line 4

Quoted 1 line
recipes-bsp/bt-enable/bt-enable_1.0.bb new file +1 -0
+LIC_FILES_CHKSUM =

"file://gpio_en_am1808.c;beginline=1;endline=34;md5=fe94639d8f61c

Quoted 3 lines
Quoted 3 lines

867d1bc4bf61473d3cd \

Quoted 1 line
recipes-bsp/bt-enable/bt-enable_1.0.bb new file +1 -0
+

file://gpio_en_am335x.c;beginline=1;endline=34;md5=fe94639d8f61c8

Quoted 3 lines
Quoted 3 lines

67d1bc4bf61473d3cd \

Quoted 1 line
recipes-bsp/bt-enable/bt-enable_1.0.bb new file +1 -0
+

file://gpio_en_omap3evm.c;beginline=1;endline=34;md5=fe94639d8f61

Quoted 17 lines
Quoted 17 lines

c867d1bc4bf61473d3cd \

Quoted 6 lines
recipes-bsp/bt-enable/bt-enable_1.0.bb new file +6 -0
+"
+
+DEPENDS = "virtual/kernel"
+
+PACKAGE_ARCH = "${MACHINE_ARCH}"
+

recipes-bsp/bt-enable/bt-enable_1.0.bb

Quoted 10 lines
recipes-bsp/bt-enable/bt-enable_1.0.bb new file +10 -0
+PACKAGE_STRIP = "no"
+
+inherit module
+
+MACHINE_KERNEL_PR_append = "a"
+PR = "r0+gitr${SRCREV}"
+
+SRCREV = "97c4600ff7d39f1cc6079939248cd9ed15100db4"
+
+SRC_URI = "git://github.com/TI-

ECS/bt_enable.git;protocol=git

Quoted 34 lines
Quoted 2 lines
Quoted 2 lines

\

Quoted 1 line
recipes-bsp/bt-enable/bt-enable_1.0.bb new file +1 -0
+           file://0001-Makefile-Update-makefile-to-work-

well-

Quoted 31 lines
Quoted 31 lines

in-OE.patch \

Quoted 21 lines
recipes-bsp/bt-enable/bt-enable_1.0.bb new file +18 -1
+          "
+
+PLATFORM = "unknown"
+PLATFORM_ti33x = "am335x-evm"
+PLATFORM_omap3 = "am37x-evm"
+PLATFORM_omapl138 = "am180x-evm"
+PLATFORM_da850-omapl138-evm = "am180x-evm"
+
+S = "${WORKDIR}/git"
+
+EXTRA_OEMAKE = " \
+	KERNEL_DIR=${STAGING_KERNEL_DIR} \
+    PLATFORM=${PLATFORM} \
+"
+
+do_install () {
+	oe_runmake 'DEST_DIR=${D}' install
+}
--

1.7.0.4

Quoted 4 lines

_______________________________________________
meta-ti mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/meta-ti

_______________________________________________
meta-ti mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/meta-ti

_______________________________________________
meta-ti mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/meta-ti

#6 lore raw
Quoted 97 lines

-----Original Message-----
From: Dmytriyenko, Denys
Sent: Monday, October 08, 2012 3:08 PM
To: Maupin, Chase
Cc: Koen Kooi; Reizer, Eyal; [email protected]; Algranati, EYAL
Subject: Re: [meta-ti] [PATCH] bt-enable: Add bt-enable recipe

Quoted 5 lines · Chase
Quoted 5 lines

-----Original Message-----
From: Koen Kooi [mailto:[email protected]]
Sent: Monday, October 08, 2012 8:05 AM
To: Maupin, Chase
Cc: Franklin S. Cooper Jr; Reizer, Eyal; Algranati, EYAL;

meta-

Quoted 2 lines
Quoted 2 lines

[email protected]
Subject: Re: [meta-ti] [PATCH] bt-enable: Add bt-enable

recipe

Quoted 9 lines
Quoted 9 lines

Op 8 okt. 2012, om 14:09 heeft "Maupin, Chase"
<[email protected]> het volgende geschreven:

Quoted 3 lines

Looping in wireless team who can answer that question.

However, I don't see tis as blocking the acceptance of this

recipe but more of feedback on the driver implementation. Do

you

Quoted 3 lines
Quoted 3 lines

see a reason to block the recipe?

I see tons of reasons to block this recipe: duplicate

DEPENDS,

Quoted 1 line
Quoted 1 line

duplicate PACKAGE_ARCH, wrong ordering of variables,

inconsistent

Quoted 7 lines
Quoted 5 lines

whitespace, overriding EXTRA_OEMAKE instead of appending it, introducing another dependency on meta-oe. And that's even without the issue I raised earlier: why do it different from mainline? It looks like this is an 'opkg install unbreak- bluetooth' type of thing and you can't even tell me *why*.

I looped in the driver maintainers to tell you *why*, so please

give them a

Quoted 3 lines

chance to respond.

As for the other feedback, thank you. I'm sure Franklin will

find these

Quoted 3 lines

specifics helpful for correcting his recipe.

But my initial statement stands. The structure of the driver

should not be

Quoted 1 line

what blocks this recipe. Feedback to the driver owner is

useful and

Quoted 1 line

appreciated so don't think I'm saying we should ignore that.

Let's focus on

Quoted 1 line

the recipe here and let the driver owner have a chance to

address issues you

Quoted 5 lines

see with their driver.

Quoted 1 line

Do I need to go on?

If you have more useful feedback then please do. Perhaps some

specifics on

Quoted 1 line

"wrong ordering of variables" and the new "dependency on meta-

oe" would be

Quoted 1 line

useful. I see that PLATFORM could possibly be done differently

(and should

Quoted 1 line

not have both omapl138 and da850-omapl138-evm defined), but I'm

afraid I

Quoted 1 line

don't see the meta-oe dependency. Any help you can give here

would be

Quoted 1 line

appreciated.

Chase,

Franklin already sent the new revision of the patch (although, the last one
was v2 and the new one is still v2...) with most of the issues fixed.

For the record, here are some specifics you asked:

1. duplicate DEPENDS - module.bbclass already sets it for you
2. duplicate PACKAGE_ARCH - same as above, set in module.bbclass
3. wrong ordering of variables - there are some hard exceptions, but even
Yocto guys and Richard are not that strict on this matter...
4. inconsistent whitespace - EXTRA_OEMAKE is multi-line, but uses mix of
spaces and tabs
4a. please note, it is "acceptable" to use tabs for shell-code indentation,
but not in Python _code_. Also, it is acceptable to use tabs in multi-line
variables. But please be consistent in using one or another. For simplicity it
may just be easier to use only spaces...

Quoted 8 lines

5. overriding EXTRA_OEMAKE - you might lose framework's default make flags,
although by default it's just "-e MAKEFLGAS="
6. another dependency on meta-oe - while not obvious, MACHINE_KERNEL_PR is
really being used by meta-oe:
http://cgit.openembedded.org/meta-openembedded/tree/meta-
oe/classes/kernel.bbclass#n24

Denys,

Thanks for the clarification. So should we not be using MACHINE_KERNEL_PR in meta-ti if we do not want a dependency on meta-oe?

Quoted 248 lines

--
Denys

Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines

-----Original Message-----
From: [email protected] [mailto:meta-ti- [email protected]] On Behalf Of Koen Kooi
Sent: Saturday, October 06, 2012 2:43 AM
To: Franklin S. Cooper Jr
Cc: [email protected]
Subject: Re: [meta-ti] [PATCH] bt-enable: Add bt-enable

recipe

Quoted 4 lines
Quoted 4 lines
Quoted 2 lines
Quoted 2 lines

Why isn't this using the standard kim platformdata in the

kernel?

Quoted 1 line
Quoted 1 line

That also gives you a nice rfkill interface. That's how

all

Quoted 8 lines
Quoted 8 lines

the

Quoted 7 lines
Quoted 7 lines

wl127x boards in mainline do it.

Op 5 okt. 2012, om 21:27 heeft Franklin S. Cooper Jr <[email protected]> het volgende geschreven:

Quoted 2 lines

* Port bt-enable recipe from arago.
* Bt-enable is used to enable the BT module on the TI

wl12xx

Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines

Wi-Fi + Bluetooth module.

---
Version 2 changes:
Loosen up COMPATIBLE_MACHINE restriction. Using generic

SOC

Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines

family when

Quoted 3 lines

possible.

...kefile-Update-makefile-to-work-well-in-OE.patch | 78

++++++++++++++++++++

Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 1 line

recipes-bsp/bt-enable/bt-enable_1.0.bb | 41

++++++++++

Quoted 2 lines
2 files changed, 119 insertions(+), 0 deletions(-)

create mode 100644 recipes-bsp/bt-enable/bt-enable/0001-

Makefile-Update-makefile-to-work-well-in-OE.patch

Review

Quoted 3 lines

create mode 100644 recipes-bsp/bt-enable/bt-enable_1.0.bb

(quoted diff) +0 -0

Makefile-

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

Update-makefile-to-work-well-in-OE.patch b/recipes-bsp/bt- enable/bt-enable/0001-Makefile-Update-makefile-to-work-

well-

Quoted 6 lines
Quoted 6 lines

in-

Quoted 5 lines
Quoted 5 lines

OE.patch

recipes-bsp/bt-enable/bt-enable/0001-Makefile-

Quoted 4 lines

new file mode 100644
index 0000000..7e6756c

recipes-bsp/bt-enable/bt-enable/0001-Makefile- new file +0 -0

Update-

Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines

makefile-to-work-well-in-OE.patch

recipes-bsp/bt-enable/bt-enable/0001-Makefile- line 1

Quoted 2 lines
recipes-bsp/bt-enable/bt-enable/0001-Makefile- new file +1 -0
@@ -0,0 +1,78 @@
+From a400ac3d83023a66a356d056899d6b380cb30473 Mon Sep 17

00:00:00 2001

recipes-bsp/bt-enable/bt-enable/0001-Makefile- line 4

Quoted 3 lines
recipes-bsp/bt-enable/bt-enable/0001-Makefile- new file +3 -0
+From: Chase Maupin <[email protected]>
+Date: Wed, 7 Mar 2012 10:51:43 -0600
+Subject: [PATCH] Makefile: Update makefile to work with

OE

Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines

recipes-bsp/bt-enable/bt-enable/0001-Makefile- line 7

Quoted 3 lines
recipes-bsp/bt-enable/bt-enable/0001-Makefile- new file +3 -0
+
+* Updated the makefile to with OE
+* Use the kernel install target for installing the

module

Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines

recipes-bsp/bt-enable/bt-enable/0001-Makefile- line 14

Quoted 7 lines
recipes-bsp/bt-enable/bt-enable/0001-Makefile- new file +7 -0
+
+Upstream-Status: Pending
+    * will be in next release
+
+Signed-off-by: Chase Maupin <[email protected]>
+---
+ Makefile |   45

++++++++++++++++++++++++++++++++++++++++---

Quoted 23 lines
Quoted 23 lines

--

Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
recipes-bsp/bt-enable/bt-enable/0001-Makefile- new file +5 -0
+ 1 files changed, 40 insertions(+), 5 deletions(-)
+
+diff --git a/Makefile b/Makefile
+index ebbcd11..b17d33e 100755
+--- a/Makefile
Quoted 8 lines
Quoted 8 lines

recipes-bsp/bt-enable/bt-enable/0001-Makefile- line 27

Quoted 8 lines
recipes-bsp/bt-enable/bt-enable/0001-Makefile- new file +8 -0
++++ b/Makefile
+@@ -7,15 +7,50 @@ else
+   EXTRA_CFLAGS += -O2
+ endif
+
++-include ../../../Rules.make
++
++# If KERNEL_DIR is not set then use the default in

Rules.make

Quoted 8 lines
Quoted 8 lines

recipes-bsp/bt-enable/bt-enable/0001-Makefile- line 34

Quoted 7 lines
recipes-bsp/bt-enable/bt-enable/0001-Makefile- new file +7 -0
++KERNEL_DIR ?= ${LINUXKERNEL_INSTALL_DIR}
++DEST_DIR ?= ${DESTDIR}
++
++PLATFORM ?= "unknown"
++MACHINE_NAME ?= "unknown"
++
++# Use the PLATFORM value from the Rules.make if it was

sourced

Quoted 14 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
recipes-bsp/bt-enable/bt-enable/0001-Makefile- new file +6 -0
++ifeq ($(PLATFORM), am335x-evm)
++    MACHINE_NAME := "am335x"
++endif
++ifeq ($(PLATFORM), am180x-evm)
++    MACHINE_NAME := "am1808"
++endif
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines

recipes-bsp/bt-enable/bt-enable/0001-Makefile- line 48

Quoted 8 lines
recipes-bsp/bt-enable/bt-enable/0001-Makefile- new file +8 -0
++ifeq ($(PLATFORM), da850-omapl138-evm)
++    MACHINE_NAME := "am1808"
++endif
++ifeq ($(PLATFORM), am37x-evm)
++    MACHINE_NAME := "omap3evm"
++endif
++
++# If CROSS_COMPILE is not set by Rules.make then set a

sane

Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines

default

Quoted 4 lines
recipes-bsp/bt-enable/bt-enable/0001-Makefile- new file +4 -0
++CROSS_COMPILE ?= arm-arago-linux-gnueabi-
++export CROSS_COMPILE
++
++# set the INSTALL_MOD_DIR so that the executables won't

be

Quoted 17 lines
Quoted 17 lines
Quoted 13 lines
Quoted 13 lines

placed in extra

Quoted 12 lines
recipes-bsp/bt-enable/bt-enable/0001-Makefile- new file +12 -0
++INSTALL_MOD_DIR = kernel/drivers/bt_enable
++export INSTALL_MOD_DIR
++
+ obj-m := gpio_en.o
+
++MAKE_ENV = ARCH=arm
++
+ PWD := $(shell pwd)
+ all:
+-	pwd
+-	@echo EXTRA_CFLAGS = $(EXTRA_CFLAGS)
+-	$(MAKE) CROSS_COMPILE=$(CROSS_COMPILE) ARCH=$(ARCH)
Quoted 1 line
Quoted 1 line

EXTRA_CFLAGS="$(EXTRA_CFLAGS)" -C $(KERNEL_DIR) M=$(PWD)

modules

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
recipes-bsp/bt-enable/bt-enable/0001-Makefile- new file +2 -0
++	@cp -f gpio_en_${MACHINE_NAME}.c gpio_en.c
++	$(MAKE) EXTRA_CFLAGS="$(EXTRA_CFLAGS)" -C
Quoted 8 lines
Quoted 8 lines

$(KERNEL_DIR)

Quoted 6 lines
Quoted 6 lines

$(MAKE_ENV) \

Quoted 4 lines
recipes-bsp/bt-enable/bt-enable/0001-Makefile- new file +4 -0
++    M=$(PWD) modules
++
+ install:
+-	install -d

${DEST_DIR}${BASE_LIB_DIR}/modules/${KRNL_VER}/kernel/drivers/bt_

Quoted 4 lines
Quoted 4 lines
Quoted 3 lines
Quoted 3 lines

enable

Quoted 1 line
recipes-bsp/bt-enable/bt-enable/0001-Makefile- new file +1 -0
+-	install -m 0755 ./gpio_en.ko

${DEST_DIR}${BASE_LIB_DIR}/modules/${KRNL_VER}/kernel/drivers/bt_

Quoted 5 lines
Quoted 5 lines
Quoted 2 lines
Quoted 2 lines

enable

Quoted 1 line
recipes-bsp/bt-enable/bt-enable/0001-Makefile- new file +1 -0
++	$(MAKE) EXTRA_CFLAGS="$(EXTRA_CFLAGS)" -C

$(KERNEL_DIR)

Quoted 2 lines
Quoted 2 lines

$(MAKE_ENV) \

Quoted 1 line
recipes-bsp/bt-enable/bt-enable/0001-Makefile- new file +1 -0
++    M=$(PWD) INSTALL_MOD_PATH="${DEST_DIR}"

modules_install

Quoted 18 lines
Quoted 18 lines
Quoted 7 lines
Quoted 7 lines

recipes-bsp/bt-enable/bt-enable/0001-Makefile- line 76

Quoted 3 lines
recipes-bsp/bt-enable/bt-enable/0001-Makefile- new file +3 -0
++
+ clean:
+	rm -rf *.o *~ core .depend .*.cmd *.ko *.mod.c

.tmp_versions *.symvers

Review

Quoted 3 lines
recipes-bsp/bt-enable/bt-enable/0001-Makefile- new file +2 -0
+--
+1.7.0.4
(quoted diff) +0 -0

b/recipes-

Quoted 9 lines
Quoted 9 lines

bsp/bt-enable/bt-enable_1.0.bb

recipes-bsp/bt-enable/bt-enable_1.0.bb line 3

Quoted 8 lines

new file mode 100644
index 0000000..b6f1ee7

recipes-bsp/bt-enable/bt-enable_1.0.bb new file +3 -0
@@ -0,0 +1,41 @@
+DESCRIPTION = "BT GPIO Enable"
+LICENSE = "BSD"
+COMPATIBLE_MACHINE = "omap3|omapl138|da850-omapl138-

evm|ti33x"

Quoted 3 lines
Quoted 3 lines
Quoted 2 lines
Quoted 2 lines

recipes-bsp/bt-enable/bt-enable_1.0.bb line 4

Quoted 1 line
recipes-bsp/bt-enable/bt-enable_1.0.bb new file +1 -0
+LIC_FILES_CHKSUM =

"file://gpio_en_am1808.c;beginline=1;endline=34;md5=fe94639d8f61c

Quoted 4 lines
Quoted 4 lines
Quoted 3 lines
Quoted 3 lines

867d1bc4bf61473d3cd \

Quoted 1 line
recipes-bsp/bt-enable/bt-enable_1.0.bb new file +1 -0
+

file://gpio_en_am335x.c;beginline=1;endline=34;md5=fe94639d8f61c8

Quoted 4 lines
Quoted 4 lines
Quoted 3 lines
Quoted 3 lines

67d1bc4bf61473d3cd \

Quoted 1 line
recipes-bsp/bt-enable/bt-enable_1.0.bb new file +1 -0
+

file://gpio_en_omap3evm.c;beginline=1;endline=34;md5=fe94639d8f61

Quoted 57 lines
Quoted 18 lines
Quoted 17 lines
Quoted 17 lines

c867d1bc4bf61473d3cd \

Quoted 6 lines
recipes-bsp/bt-enable/bt-enable_1.0.bb new file +6 -0
+"
+
+DEPENDS = "virtual/kernel"
+
+PACKAGE_ARCH = "${MACHINE_ARCH}"
+

recipes-bsp/bt-enable/bt-enable_1.0.bb

Quoted 10 lines
recipes-bsp/bt-enable/bt-enable_1.0.bb new file +10 -0
+PACKAGE_STRIP = "no"
+
+inherit module
+
+MACHINE_KERNEL_PR_append = "a"
+PR = "r0+gitr${SRCREV}"
+
+SRCREV = "97c4600ff7d39f1cc6079939248cd9ed15100db4"
+
+SRC_URI = "git://github.com/TI-

ECS/bt_enable.git;protocol=git

Quoted 34 lines
Quoted 2 lines
Quoted 2 lines

\

Quoted 1 line
recipes-bsp/bt-enable/bt-enable_1.0.bb new file +1 -0
+           file://0001-Makefile-Update-makefile-to-work-

well-

Quoted 31 lines
Quoted 31 lines

in-OE.patch \

Quoted 21 lines
recipes-bsp/bt-enable/bt-enable_1.0.bb new file +18 -1
+          "
+
+PLATFORM = "unknown"
+PLATFORM_ti33x = "am335x-evm"
+PLATFORM_omap3 = "am37x-evm"
+PLATFORM_omapl138 = "am180x-evm"
+PLATFORM_da850-omapl138-evm = "am180x-evm"
+
+S = "${WORKDIR}/git"
+
+EXTRA_OEMAKE = " \
+	KERNEL_DIR=${STAGING_KERNEL_DIR} \
+    PLATFORM=${PLATFORM} \
+"
+
+do_install () {
+	oe_runmake 'DEST_DIR=${D}' install
+}
--

1.7.0.4

Quoted 4 lines

_______________________________________________
meta-ti mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/meta-ti

_______________________________________________
meta-ti mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/meta-ti

_______________________________________________
meta-ti mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/meta-ti