All of lore.kernel.org
 help / color / mirror / Atom feed
From: Alexandre Belloni <alexandre.belloni@free-electrons.com>
To: "Daiane.Angolini@freescale.com" <Daiane.Angolini@freescale.com>,
	 "meta-freescale@yoctoproject.org"
	<meta-freescale@yoctoproject.org>
Cc: Maxime Ripard <maxime.ripard@free-electrons.com>,
	"jimwall@q.com" <jimwall@q.com>
Subject: Re: [meta-fsl-arm-extra][for dora][PATCH 3/4] linux-cfa: split recipe to create an include file
Date: Thu, 02 Jan 2014 19:06:38 +0100	[thread overview]
Message-ID: <52C5AAAE.70305@free-electrons.com> (raw)
In-Reply-To: <38fc80208d7b4e3f9391a096cd7ec26e@BY2PR03MB379.namprd03.prod.outlook.com>

On 02/01/2014 17:22, Daiane.Angolini@freescale.com wrote:
> 
> 
>> -----Original Message-----
>> From: meta-freescale-bounces@yoctoproject.org [mailto:meta-freescale-
>> bounces@yoctoproject.org] On Behalf Of Alexandre Belloni
>> Sent: Thursday, January 02, 2014 11:46 AM
>> To: meta-freescale@yoctoproject.org
>> Cc: Maxime Ripard; jimwall@q.com
>> Subject: [meta-freescale] [meta-fsl-arm-extra][for dora][PATCH 3/4] linux-
>> cfa: split recipe to create an include file
> 
> I like it!
> 
>>
>> Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>
>> ---
>>  recipes-kernel/linux/linux-cfa.inc     | 29 +++++++++++++++++++++++++++++
>>  recipes-kernel/linux/linux-cfa_3.10.bb | 29 +----------------------------
>>  2 files changed, 30 insertions(+), 28 deletions(-)  create mode 100644
>> recipes-kernel/linux/linux-cfa.inc
>>
>> diff --git a/recipes-kernel/linux/linux-cfa.inc b/recipes-
>> kernel/linux/linux-cfa.inc
>> new file mode 100644
>> index 000000000000..408a51f8d852
>> --- /dev/null
>> +++ b/recipes-kernel/linux/linux-cfa.inc
>> @@ -0,0 +1,29 @@
>> +DESCRIPTION = "Linux kernel for Crystalfontz boards"
>> +SECTion = "kernel"
>> +LICENSE = "GPLv2"
>> +
>> +LIC_FILES_CHKSUM = "file://COPYING;md5=d7810fab7487fb0aad327b76f1be7cd7"
>> +
>> +inherit kernel
>> +require recipes-kernel/linux/linux-dtb.inc
>> +
>> +SRC_URI =
>> "git://github.com/crystalfontz/cfa_10036_kernel;branch=${SRC_BRANCH} \
>> +           file://defconfig"
>> +
>> +S = "${WORKDIR}/git"
>> +
>> +# create symlinks that are the defaults of barebox
>> +pkg_postinst_kernel-devicetree_append () {
>> +	for DTB_FILE in ${KERNEL_DEVICETREE}
>> +	do
>> +		DTB_BASE_NAME=`basename ${DTB_FILE} | awk -F "." '{print $1}'`
>> +		DTB_BOARD_NAME=`echo ${DTB_BASE_NAME} | awk -F "-" '{print
>> $2}'`
>> +		DTB_SYMLINK_NAME=`echo ${KERNEL_IMAGE_SYMLINK_NAME} | sed
>> "s/${MACHINE}/${DTB_BASE_NAME}/g"`
>> +		update-alternatives --install /${KERNEL_IMAGEDEST}/oftree-
>> ${DTB_BOARD_NAME} oftree-${DTB_BOARD_NAME} devicetree-
>> ${DTB_SYMLINK_NAME}.dtb ${KERNEL_PRIORITY} || true
>> +	done
>> +}
>> +
>> +pkg_postinst_kernel-image_append () {
>> +	update-alternatives --install
>> +/${KERNEL_IMAGEDEST}/${KERNEL_IMAGETYPE}-cfa10036
>> +${KERNEL_IMAGETYPE}-cfa10036 ${KERNEL_IMAGETYPE}-${KERNEL_VERSION}
>> +${KERNEL_PRIORITY} || true }
>> +
>> diff --git a/recipes-kernel/linux/linux-cfa_3.10.bb b/recipes-
>> kernel/linux/linux-cfa_3.10.bb
>> index 65ea294539c8..ddf53961ef76 100644
>> --- a/recipes-kernel/linux/linux-cfa_3.10.bb
>> +++ b/recipes-kernel/linux/linux-cfa_3.10.bb
>> @@ -1,34 +1,7 @@
>> -DESCRIPTION = "Linux kernel for Crystalfontz boards"
>> -SECTion = "kernel"
>> -LICENSE = "GPLv2"
>> -
>> -LIC_FILES_CHKSUM = "file://COPYING;md5=d7810fab7487fb0aad327b76f1be7cd7"
>> -
>> -inherit kernel
>> -require recipes-kernel/linux/linux-dtb.inc
>> +include linux-cfa.inc
> 
> You may want to use "require" to your -cfa.inc file as well.
> 

Ok, will do.

>>
>>  SRC_BRANCH = "cfa-3.10.25"
>> -SRC_URI =
>> "git://github.com/crystalfontz/cfa_10036_kernel;branch=${SRC_BRANCH} \
>> -           file://defconfig"
>> -
>>  SRCREV = "61dbe8ef338ce4cc1c10d5a6cdd418c047fb136d"
>>
>> -S = "${WORKDIR}/git"
>> -
>> -# create symlinks that are the defaults of barebox -pkg_postinst_kernel-
>> devicetree_append () {
>> -	for DTB_FILE in ${KERNEL_DEVICETREE}
>> -	do
>> -		DTB_BASE_NAME=`basename ${DTB_FILE} | awk -F "." '{print $1}'`
>> -		DTB_BOARD_NAME=`echo ${DTB_BASE_NAME} | awk -F "-" '{print
>> $2}'`
>> -		DTB_SYMLINK_NAME=`echo ${KERNEL_IMAGE_SYMLINK_NAME} | sed
>> "s/${MACHINE}/${DTB_BASE_NAME}/g"`
>> -		update-alternatives --install /${KERNEL_IMAGEDEST}/oftree-
>> ${DTB_BOARD_NAME} oftree-${DTB_BOARD_NAME} devicetree-
>> ${DTB_SYMLINK_NAME}.dtb ${KERNEL_PRIORITY} || true
>> -	done
>> -}
>> -
>> -pkg_postinst_kernel-image_append () {
>> -	update-alternatives --install
>> /${KERNEL_IMAGEDEST}/${KERNEL_IMAGETYPE}-cfa10036 ${KERNEL_IMAGETYPE}-
>> cfa10036 ${KERNEL_IMAGETYPE}-${KERNEL_VERSION} ${KERNEL_PRIORITY} || true
>> -}
>> -
>>  COMPATIBLE_MACHINE = "cfa10036"
>>
>> --
>> 1.8.3.2
>>
>> _______________________________________________
>> meta-freescale mailing list
>> meta-freescale@yoctoproject.org
>> https://lists.yoctoproject.org/listinfo/meta-freescale
>>
> 


-- 
Alexandre Belloni, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com


  reply	other threads:[~2014-01-02 18:06 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-01-02 13:45 [meta-fsl-arm-extra][for dora][PATCH 1/4] linux-cfa: bump to 3.10.25 Alexandre Belloni
2014-01-02 13:45 ` [meta-fsl-arm-extra][for dora][PATCH 2/4] linux-cfa: fine tune kernel configuration Alexandre Belloni
2014-01-02 13:45 ` [meta-fsl-arm-extra][for dora][PATCH 3/4] linux-cfa: split recipe to create an include file Alexandre Belloni
2014-01-02 16:22   ` Daiane.Angolini
2014-01-02 18:06     ` Alexandre Belloni [this message]
2014-01-02 13:45 ` [meta-fsl-arm-extra][for dora][PATCH 4/4] linux-cfa: Add a recipe for 3.12 Alexandre Belloni

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=52C5AAAE.70305@free-electrons.com \
    --to=alexandre.belloni@free-electrons.com \
    --cc=Daiane.Angolini@freescale.com \
    --cc=jimwall@q.com \
    --cc=maxime.ripard@free-electrons.com \
    --cc=meta-freescale@yoctoproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.