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 D6350E00406 for ; Thu, 22 Aug 2013 10:17:24 -0700 (PDT) Received: by mail.free-electrons.com (Postfix, from userid 106) id 45D7D81E; Thu, 22 Aug 2013 19:17:25 +0200 (CEST) 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.1.53] (128-79-216-144.hfc.dyn.abo.bbox.fr [128.79.216.144]) by mail.free-electrons.com (Postfix) with ESMTPSA id CF37C81A; Thu, 22 Aug 2013 19:17:24 +0200 (CEST) Message-ID: <521647A1.8070206@free-electrons.com> Date: Thu, 22 Aug 2013 19:17:21 +0200 From: Alexandre Belloni Organization: Free Electrons User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130803 Thunderbird/17.0.8 MIME-Version: 1.0 To: Otavio Salvador References: <1377183077-5270-1-git-send-email-alexandre.belloni@free-electrons.com> <1377183077-5270-4-git-send-email-alexandre.belloni@free-electrons.com> In-Reply-To: X-Enigmail-Version: 1.4.6 Cc: "meta-freescale@yoctoproject.org" , Maxime Ripard , jimwall@q.com, brian@crystalfontz.com Subject: Re: [meta-fsl-arm-extra][PATCH 3/4] linux-cfa: add a kernel recipe supporting Crystalfontz boards 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, 22 Aug 2013 17:17:25 -0000 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit On 22/08/2013 19:06, Otavio Salvador wrote: > On Thu, Aug 22, 2013 at 11:51 AM, Alexandre Belloni > wrote: >> Signed-off-by: Alexandre Belloni >> --- >> recipes-kernel/linux/linux-cfa-3.10/defconfig | 177 ++++++++++++++++++++++++++ >> recipes-kernel/linux/linux-cfa_3.10.bb | 33 +++++ >> 2 files changed, 210 insertions(+) >> create mode 100644 recipes-kernel/linux/linux-cfa-3.10/defconfig >> create mode 100644 recipes-kernel/linux/linux-cfa_3.10.bb >> >> diff --git a/recipes-kernel/linux/linux-cfa-3.10/defconfig b/recipes-kernel/linux/linux-cfa-3.10/defconfig > ... >> diff --git a/recipes-kernel/linux/linux-cfa_3.10.bb b/recipes-kernel/linux/linux-cfa_3.10.bb >> new file mode 100644 >> index 0000000..2c2a723 >> --- /dev/null >> +++ b/recipes-kernel/linux/linux-cfa_3.10.bb >> @@ -0,0 +1,33 @@ >> +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 \ >> + file://defconfig" >> + >> +SRCREV = "552d876f4737ffeb18c9139ede3c439bdcafca94" >> + >> +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}-${MACHINE} ${KERNEL_IMAGETYPE}-${MACHINE} ${KERNEL_IMAGETYPE}-${KERNEL_VERSION} ${KERNEL_PRIORITY} || true >> +} >> + >> +COMPATIBLE_MACHINE = "cfa10036" >> + > What it does different here than original linux-dtb alternatives? > Actually, the default environment present in the barebox mainline for the cfa10036 is looking for a kernel named zImage-cfa10036 and DTBs named oftree-${DTB_BOARD_NAME} in /boot. So I'm just creating more links to the kernel and DTBs. I'm not doing anything differently, I'm just creating more links. -- Alexandre Belloni, Free Electrons Embedded Linux, Kernel and Android engineering http://free-electrons.com