<div dir="auto"><div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">20 Kas 2019 Ã‡ar 18:00 tarihinde Andrey Zhizhikin <<a href="mailto:andrey.z@gmail.com" target="_blank" rel="noreferrer">andrey.z@gmail.com</a>> ÅŸunu yazdı:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On Wed, Nov 20, 2019 at 3:14 PM Yusuf Altıparmak<br>
<<a href="mailto:yusufalti1997@gmail.com" rel="noreferrer noreferrer" target="_blank">yusufalti1997@gmail.com</a>> wrote:<br>
><br>
><br>
>> Hello Yusuf,<br>
>>  Â  Â You should be careful when generating kernel config file. Yocto project override kernel config(.config file) when compiling again.<br>
>><br>
><br>
> Hello Atakan,<br>
><br>
> I solved that problem by changing the defconfig source string in <machine>.conf file. Each time I make changes, I also copy new .config file to another folder and rename it as in <machine>.conf file. My <machine>.conf(t1042d4rdb-64b.conf) file is like this;<br>
> KERNEL_DEFCONFIG ?= "${S}/arch/powerpc/configs/yusuf_defconfig"<br>
> KBUILD_DEFCONFIG ?= "yusuf_defconfig"<br>
<br>
This approach has 2 problems:<br>
1. .config file is not the same as defconfig file. .config is<br>
auto-generated from whatever the defconfig you supply.<br>
2. keeping the config file in the kernel tree implies you have to<br>
maintain your own kernel repository, or pollute it with unnecessary<br>
copy operation during kernel build<br>
<br>
To solve those problems you can do the following:<br>
1. bitbake virtual/kernel -c savedefconfig would give you a defconfig<br>
file which is a real defconfig.<br>
2. keep this defconfig next to the kernel recipe, and set<br>
KBUILD_DEFCONFIG to the one you generated at the step 1. above<br>
<br>
In this case you would not need to keep your kernel tree, have a<br>
"clean" defconfig file on hands which you can always update, and have<br>
a very nice tidy kernel recipe to build.<br>
<br>
Also, add to your kernel recipe following lines:<br>
FILESEXTRAPATHS_prepend := "${THISDIR}/${BPN}:"<br>
SRC_URI += "file://yusuf_defconfig"<br>
<br>
This would ensure that your yusuf_defconfig could be found and used<br>
for the build. ${BPN} is the kernel recipe name, so you would need to<br>
create a folder named as your kernel recipe next to the recipe itself<br>
and store the config file there.<br>
<br>
><br>
> Best Regards<br>
><br>
> --<br>
> _______________________________________________<br>
> meta-freescale mailing list<br>
> <a href="mailto:meta-freescale@yoctoproject.org" rel="noreferrer noreferrer" target="_blank">meta-freescale@yoctoproject.org</a><br>
> <a href="https://lists.yoctoproject.org/listinfo/meta-freescale" rel="noreferrer noreferrer noreferrer" target="_blank">https://lists.yoctoproject.org/listinfo/meta-freescale</a><br>
<br>
<br>
<br>
-- <br>
Regards,<br>
Andrey.<br></blockquote></div></div><div dir="auto"><br></div><div dir="auto">Thank you Andrey, </div><div dir="auto"><br></div><div dir="auto">I will do this solution to avoid further compile time errors. </div><div dir="auto"><br></div><div dir="auto">Best Regards. </div><div dir="auto"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
</blockquote></div></div></div>