<div dir="ltr"><div class="gmail_default" style="font-family:'comic sans ms',sans-serif;font-size:small"><span style="font-family:arial">On Tue, Sep 30, 2014 at 1:28 AM, Thomas De Schampheleire </span><span dir="ltr" style="font-family:arial"><<a href="mailto:patrickdepinguin@gmail.com" target="_blank">patrickdepinguin@gmail.com</a>></span><span style="font-family:arial"> wrote:</span><br></div><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">Hi Kantanu,<br>
<br>
<br>
On Mon, Sep 29, 2014 at 9:41 PM, Kantanu Kumar Mohapatra<br>
<div><div><<a href="mailto:kantanukumar@gmail.com" target="_blank">kantanukumar@gmail.com</a>> wrote:<br>
><br>
> On 30-Sep-2014 12:44 AM, "Thomas De Schampheleire"<br>
> <<a href="mailto:patrickdepinguin@gmail.com" target="_blank">patrickdepinguin@gmail.com</a>> wrote:<br>
>><br>
>> Hi Kantanu,<br>
>><br>
>> (please don't top post)<br>
>><br>
>> On Mon, Sep 29, 2014 at 8:43 PM, Kantanu Kumar Mohapatra<br>
>> <<a href="mailto:kantanukumar@gmail.com" target="_blank">kantanukumar@gmail.com</a>> wrote:<br>
>> > Many thanks.<br>
>> ><br>
>> > Yaa I too found it as the place to take the source. The thing is, uboot<br>
>> > tools is under auto-target. That's I am not much familiar with, how to<br>
>> > make<br>
>> > changes to that to take the source?<br>
>> ><br>
>> > I'll be thankful if you could help me to make changes to that makefile.<br>
>><br>
>> Have a look at the manual chapter regarding adding new packages. It<br>
>> explains the different variables that exist, both for the generic and<br>
>> autotools infrastructures.<br>
>> <a href="http://buildroot.uclibc.org/downloads/manual/manual.html#adding-packages" target="_blank">http://buildroot.uclibc.org/downloads/manual/manual.html#adding-packages</a><br>
>><br>
>> What Thomas Petazzoni suggested is to change the variable<br>
>> UBOOT_TOOLS_VERSION.<br>
>><br>
>> Best regards,<br>
>> Thomas<br>
><br>
> Thanks Thomas. I have tried with changing the tools version, that's not<br>
> working, as buildroot 10 not having uboot tool separate. fw_printenv comes<br>
> integrated with uboot-tools-10.03.<br>
><br>
> I can see the target fw_printenv, gets compiled like this,<br>
> $(TARGET_DIR)/usr/sbin/fw_printenv: $(U_BOOT_DIR)/$(U_BOOT_BIN)<br>
> $(TARGET_CC) -I$(U_BOOT_DIR)/include -I$(LINUX_HEADERS_DIR)/include \<br>
> -DUSE_HOSTCC -o $@ \<br>
> $(U_BOOT_DIR)/tools/env/*.c $(U_BOOT_DIR)/lib_generic/crc32.c<br>
><br>
> I am using here another -D flag in uboot-tools-10.03. Same thing want to<br>
> replicated for uboot tools 14 and same source only want to take.<br>
<br>
</div></div>I don't understand you anymore.<br>
You want to remain at u-boot-tools 2010.03, when using buildroot<br>
2014.xx, correct?<br>
So what you would do is change UBOOT_TOOLS_VERSION = 2010.03 inside<br>
buildroot 2014.xx.<br>
<br>
The 'uboot-tools' package is just using standard uboot sources, but<br>
only builds the tools in the tools directory.<br>
<br>
If this information is not clear enough to you, please try to rephrase<br>
in more details what you want to achieve. Please also be specific<br>
about the versions. In your first mail you mentioned<br>
buildroot-2014.03, but this does not exist.<br>
<br>
Thanks,<br>
Thomas<br></blockquote><div><br></div><div><br></div><div class="gmail_default" style="font-family:'comic sans ms',sans-serif;font-size:small">​Thanks a lot Thomas for your reply. Sorry for the typo, please consider the new version as buildroot-2014.02.</div><div class="gmail_default" style="font-family:'comic sans ms',sans-serif"><br></div><div class="gmail_default" style="font-family:'comic sans ms',sans-serif">Let me explain all in detail.</div><div class="gmail_default" style="font-family:'comic sans ms',sans-serif"><br></div><div class="gmail_default" style="font-family:'comic sans ms',sans-serif">old br2:</div><div class="gmail_default" style="font-family:'comic sans ms',sans-serif">========</div><div class="gmail_default" style="font-family:'comic sans ms',sans-serif">version: 2010.05</div><div class="gmail_default" style="font-family:'comic sans ms',sans-serif">uboot: 2010.03(customized)</div><div class="gmail_default" style="font-family:'comic sans ms',sans-serif">uboot-tools: 2010.03 (used from uboot src)</div><div class="gmail_default" style="font-family:'comic sans ms',sans-serif"><br></div><div class="gmail_default" style="font-family:'comic sans ms',sans-serif"><br></div><div class="gmail_default" style="font-family:'comic sans ms',sans-serif">New br2 (which I am upgrading to):</div><div class="gmail_default" style="font-family:'comic sans ms',sans-serif">===========================</div><div class="gmail_default" style="font-family:'comic sans ms',sans-serif">version: 2014.02</div><div class="gmail_default" style="font-family:'comic sans ms',sans-serif">uboot: 2010.03(customized, same should be across tools too)</div><div class="gmail_default" style="font-family:'comic sans ms',sans-serif">uboot-tools: 2014.01 ( should be same as uboot-2010.03)</div><div class="gmail_default" style="font-family:'comic sans ms',sans-serif"><br></div><div class="gmail_default" style="font-family:'comic sans ms',sans-serif">In br2-14, I am getting the uboot image(.bin) properly, which I customized to get a .rom with my headers added to it, done in boot/uboot/<a href="http://uboot.mk" target="_blank">uboot.mk</a></div><div class="gmail_default" style="font-family:'comic sans ms',sans-serif"><br></div><div class="gmail_default" style="font-family:'comic sans ms',sans-serif">Here the problem which I faced is "fw_printenv" executable, which is built in tools, for br2-2014.02. fw_printenv is created, when getting the uboot image in br2-2010.03 (target/uboot/Makefile.in). </div><div class="gmail_default" style="font-family:'comic sans ms',sans-serif"><br></div><div class="gmail_default" style="font-family:'comic sans ms',sans-serif">In br2-2014.02,</div><div class="gmail_default" style="font-family:'comic sans ms',sans-serif">Tools should be taken from the source, which went into output/build/uboot-2010.03, But instead it creates another uboot-tools-2014.01 inside output/build/ and places source there. </div><div class="gmail_default" style="font-family:'comic sans ms',sans-serif"><br></div><div class="gmail_default" style="font-family:'comic sans ms',sans-serif">How to build that fw_printenv, in old way like br2-10, seen as below?</div><div class="gmail_default" style="font-family:'comic sans ms',sans-serif"><br></div><div class="gmail_default" style="font-family:'comic sans ms',sans-serif"><div class="gmail_default">$(TARGET_DIR)/usr/sbin/fw_printenv: $(U_BOOT_DIR)/$(U_BOOT_BIN)</div><div class="gmail_default">    mkdir -p $(@D)</div><div class="gmail_default">    $(TARGET_CC) -I$(U_BOOT_DIR)/include -I$(LINUX_HEADERS_DIR)/include \<br></div><div class="gmail_default">        -D_custom_flag \</div><div class="gmail_default">        -DUSE_HOSTCC -o $@ \<br></div><div class="gmail_default">        $(U_BOOT_DIR)/tools/env/*.c $(U_BOOT_DIR)/lib_generic/crc32.c</div><div><br></div></div><div class="gmail_default" style="font-family:'comic sans ms',sans-serif;font-size:small">I want to use another "-D_custom_flag" to build "fw_printenv", in br2-14. Please suggest me the changes to be done. If I change   UBOOT_TOOLS_VERSION = 2010.03, in  <a href="http://uboot-tools.mk" target="_blank">uboot-tools.mk</a>, getting compilation error, as it has dependency on host-tools.​</div><div class="gmail_default" style="font-family:'comic sans ms',sans-serif;font-size:small"><br></div><div class="gmail_default" style="font-family:'comic sans ms',sans-serif;font-size:small">Thanks,</div><div class="gmail_default" style="font-family:'comic sans ms',sans-serif;font-size:small">Kantanu</div></div><br></div><div class="gmail_extra"><br></div><div class="gmail_extra"><br></div></div>