Return-Path: Received: from mail-ob0-f176.google.com (mail-ob0-f176.google.com [209.85.214.176]) by yocto-www.yoctoproject.org (Postfix) with ESMTP id 2E78DE00293 for ; Fri, 5 Oct 2012 12:02:13 -0700 (PDT) Received: by mail-ob0-f176.google.com with SMTP id x4so2589275obh.35 for ; Fri, 05 Oct 2012 12:02:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:x-mailer; bh=6SFfmtABTnO2AmOyjIW5b4NfjXTOy2OjW4mlJx7TiZU=; b=CHnsDOGaAJ8tyiPUWT+GgCEvm2NTEJub+BT5Mtmt9+h7VXD5+98hmFWo4151J6Jo9N J7malrBWQmBR7HqJ9WcOpFaYOh92EqDMgHz8IAANBDFLFINpSR+dt1ZPQqvk3UDDoo+s o+265CBIf7U8tFvIAYsMoyHSob4nA9mK51IAJIfYiIV1z81DAyUaeYgp9wm1h0joejac 5zhyG7PR/iDBZz7uZUnv3Q2GzQLVH42cbFak+PCqO9rPhxQGHoRVcL0pHKZOkNJHkrXE 4I1QxoWLtiOF1I2VHH5XtPd98bYSMHQgnwWc/5JNp6mISGoAGLv93qeGKXkTBYCDWBL1 QTgg== Received: by 10.182.218.37 with SMTP id pd5mr7833969obc.24.1349463732804; Fri, 05 Oct 2012 12:02:12 -0700 (PDT) Received: from localhost.localdomain (dragon.ti.com. [192.94.94.33]) by mx.google.com with ESMTPS id ec1sm10163774obc.2.2012.10.05.12.02.11 (version=TLSv1/SSLv3 cipher=OTHER); Fri, 05 Oct 2012 12:02:12 -0700 (PDT) From: "Franklin S. Cooper Jr" To: meta-ti@yoctoproject.org Date: Fri, 5 Oct 2012 14:30:44 -0500 Message-Id: <1349465444-20248-1-git-send-email-fcooper@ti.com> X-Mailer: git-send-email 1.7.0.4 Subject: [PATCH] bt-firmware: Port bt-firmware recipe X-BeenThere: meta-ti@yoctoproject.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: Usage and development list for the meta-ti layer List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 05 Oct 2012 19:02:13 -0000 * 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 --- 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 +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 +--- + 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