From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail.free-electrons.com (top.free-electrons.com [176.31.233.9]) by yocto-www.yoctoproject.org (Postfix) with ESMTP id 93CC8E0044A for ; Thu, 2 Jan 2014 10:06:42 -0800 (PST) Received: by mail.free-electrons.com (Postfix, from userid 106) id 1901E89C; Thu, 2 Jan 2014 19:07:03 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on mail.free-electrons.com X-Spam-Level: X-Spam-Status: No, score=-1.0 required=5.0 tests=ALL_TRUSTED,SHORTCIRCUIT, URIBL_BLOCKED shortcircuit=ham autolearn=disabled version=3.3.2 Received: from [192.168.42.189] (unknown [193.253.168.26]) by mail.free-electrons.com (Postfix) with ESMTPSA id 7EF6F6E2; Thu, 2 Jan 2014 19:07:02 +0100 (CET) Message-ID: <52C5AAAE.70305@free-electrons.com> Date: Thu, 02 Jan 2014 19:06:38 +0100 From: Alexandre Belloni Organization: Free Electrons User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.2.0 MIME-Version: 1.0 To: "Daiane.Angolini@freescale.com" , "meta-freescale@yoctoproject.org" References: <1388670350-23158-1-git-send-email-alexandre.belloni@free-electrons.com> <1388670350-23158-3-git-send-email-alexandre.belloni@free-electrons.com> <38fc80208d7b4e3f9391a096cd7ec26e@BY2PR03MB379.namprd03.prod.outlook.com> In-Reply-To: <38fc80208d7b4e3f9391a096cd7ec26e@BY2PR03MB379.namprd03.prod.outlook.com> X-Enigmail-Version: 1.5.2 Cc: Maxime Ripard , "jimwall@q.com" Subject: Re: [meta-fsl-arm-extra][for dora][PATCH 3/4] linux-cfa: split recipe to create an include file X-BeenThere: meta-freescale@yoctoproject.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: Usage and development list for the meta-fsl-* layers List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 02 Jan 2014 18:06:44 -0000 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit 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 >> --- >> 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