<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>i.MX Processors中的主题 Yocto how to apply kernel patch for custom imx28-based board</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/Yocto-how-to-apply-kernel-patch-for-custom-imx28-based-board/m-p/404222#M60020</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We are using Yocto as the build environment for a custom, imx28-based, board. We are using the Freescale imx28evk BSP as the base BSP for our board.&amp;nbsp; We have followed the Freescale model for the imx28 and added a new custom board to the linux-imx recipe, together with imx28evk, imx23ekv and imx5 boards, under the meta-fsl-arm layer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to apply a number of patches specific to our kernel/BSP. I've been investigating how to do this and it looks like this can be achieved by using the .bbappend file under the linux kernel recipe. The problem I see with this approach is that the append file applies to a specific recipe. The imx28evk, imx23evk, mx5 and our custom board are all under the one kernel recipe and so I think the patches would apply to all of these boards and not just our board. I want the patches to just apply to our custom board and I haven't found a way to do this. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is this correct? I am new to Yocto and so perhaps there is a better approach. Is there another way to just apply patches to our custom board given that it is part of a single recipe that includes a number of other Freescale boards?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Bruno&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 16 Oct 2015 09:37:04 GMT</pubDate>
    <dc:creator>bdp42</dc:creator>
    <dc:date>2015-10-16T09:37:04Z</dc:date>
    <item>
      <title>Yocto how to apply kernel patch for custom imx28-based board</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Yocto-how-to-apply-kernel-patch-for-custom-imx28-based-board/m-p/404222#M60020</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We are using Yocto as the build environment for a custom, imx28-based, board. We are using the Freescale imx28evk BSP as the base BSP for our board.&amp;nbsp; We have followed the Freescale model for the imx28 and added a new custom board to the linux-imx recipe, together with imx28evk, imx23ekv and imx5 boards, under the meta-fsl-arm layer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to apply a number of patches specific to our kernel/BSP. I've been investigating how to do this and it looks like this can be achieved by using the .bbappend file under the linux kernel recipe. The problem I see with this approach is that the append file applies to a specific recipe. The imx28evk, imx23evk, mx5 and our custom board are all under the one kernel recipe and so I think the patches would apply to all of these boards and not just our board. I want the patches to just apply to our custom board and I haven't found a way to do this. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is this correct? I am new to Yocto and so perhaps there is a better approach. Is there another way to just apply patches to our custom board given that it is part of a single recipe that includes a number of other Freescale boards?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Bruno&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Oct 2015 09:37:04 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Yocto-how-to-apply-kernel-patch-for-custom-imx28-based-board/m-p/404222#M60020</guid>
      <dc:creator>bdp42</dc:creator>
      <dc:date>2015-10-16T09:37:04Z</dc:date>
    </item>
    <item>
      <title>Re: Yocto how to apply kernel patch for custom imx28-based board</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Yocto-how-to-apply-kernel-patch-for-custom-imx28-based-board/m-p/404223#M60021</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Having investigated this a bit it looks like the way to do this is to use overrides in Yocto.&lt;/P&gt;&lt;P&gt;It should be possible to conditionally apply patches based on the definition of MACHINE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've added a bbappend file that contains the following&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:"&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;SRC_URI_append_am_100 = " \&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; file://add_support_new_board.patch \&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; file://add_os_led_support.patch \&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; file://add_support_nand_S34ML01G1.patch \&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; file://add_change_nand_partitions.patch \&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;/P&gt;&lt;P&gt;From my understanding of all of this these patches should only be applied when MACHINE=am_100.&lt;/P&gt;&lt;P&gt;In our case MACHINE is defined as "am_100" and I can see that this is the actual definition when I start the build&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;Build Configuration:&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;BB_VERSION&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; = "1.26.0"&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;BUILD_SYS&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; = "x86_64-linux"&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;NATIVELSBSTRING&amp;nbsp;&amp;nbsp; = "Ubuntu-14.04"&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;TARGET_SYS&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; = "arm-poky-linux-gnueabi"&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;MACHINE&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; = "am_100"&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;DISTRO&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; = "poky"&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;DISTRO_VERSION&amp;nbsp;&amp;nbsp;&amp;nbsp; = "1.8.1"&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;TUNE_FEATURES&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; = "arm armv5 thumb dsp"&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;TARGET_FPU&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; = "soft"&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;/P&gt;&lt;P&gt;However the patches are not being applied. They only get applied when I use the following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SRC_URI_append_mx28 = ....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This came from Freescale and is used to build for the imx28evk platform.&lt;/P&gt;&lt;P&gt;Can anyone suggest why the overrides are not working as expected?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Bruno&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Oct 2015 15:06:54 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Yocto-how-to-apply-kernel-patch-for-custom-imx28-based-board/m-p/404223#M60021</guid>
      <dc:creator>bdp42</dc:creator>
      <dc:date>2015-10-20T15:06:54Z</dc:date>
    </item>
    <item>
      <title>Re: Yocto how to apply kernel patch for custom imx28-based board</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Yocto-how-to-apply-kernel-patch-for-custom-imx28-based-board/m-p/404224#M60022</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Bruno,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The machine-specific appends should do the trick. However, it seems like the machine configuration is still invoking the i.MX28 EVK. Have you made a machine configuration file for the am_100? Perhaps there's something missing from the machine configuration.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Oct 2015 22:30:24 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Yocto-how-to-apply-kernel-patch-for-custom-imx28-based-board/m-p/404224#M60022</guid>
      <dc:creator>gusarambula</dc:creator>
      <dc:date>2015-10-30T22:30:24Z</dc:date>
    </item>
    <item>
      <title>Re: Yocto how to apply kernel patch for custom imx28-based board</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Yocto-how-to-apply-kernel-patch-for-custom-imx28-based-board/m-p/404225#M60023</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yes I did create a conf file. I have attached the file. It is quite similar to the mx28evk conf file and I did not think there was much to change but maybe there is something I have missed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Bruno&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Nov 2015 16:09:57 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Yocto-how-to-apply-kernel-patch-for-custom-imx28-based-board/m-p/404225#M60023</guid>
      <dc:creator>bdp42</dc:creator>
      <dc:date>2015-11-03T16:09:57Z</dc:date>
    </item>
  </channel>
</rss>

