[U-Boot] Building common/lib files in tools/

Hi Masahiro,
I see that we have a few files in tools/ which #include their counterpart .c files in common/ or lib/. The most noticeable example is libfdt.
Is there a better way of doing this? Would it be possible to pick up the files automatically and still put the output file in tools/?
The reason I ask is that I would like to add support for decompression into a tool, but the thought of adding links to all the compression library files leaves me with a bad taste in my mouth.
Regards, Simon

Hi Simon,
On Mon, 2 Jun 2014 21:40:05 -0600 Simon Glass sjg@chromium.org wrote:
Hi Masahiro,
I see that we have a few files in tools/ which #include their counterpart .c files in common/ or lib/. The most noticeable example is libfdt.
Is there a better way of doing this? Would it be possible to pick up the files automatically and still put the output file in tools/?
The reason I ask is that I would like to add support for decompression into a tool, but the thought of adding links to all the compression library files leaves me with a bad taste in my mouth.
OK.
I think I found a better way. I will post it (probably tomorrow) after testing it a little bit more.
Best Regards Masahiro Yamada

Hi Masahiro,
On 3 June 2014 06:02, Masahiro Yamada yamada.m@jp.panasonic.com wrote:
Hi Simon,
On Mon, 2 Jun 2014 21:40:05 -0600 Simon Glass sjg@chromium.org wrote:
Hi Masahiro,
I see that we have a few files in tools/ which #include their counterpart .c files in common/ or lib/. The most noticeable example is libfdt.
Is there a better way of doing this? Would it be possible to pick up the files automatically and still put the output file in tools/?
The reason I ask is that I would like to add support for decompression into a tool, but the thought of adding links to all the compression library files leaves me with a bad taste in my mouth.
OK.
I think I found a better way. I will post it (probably tomorrow) after testing it a little bit more.
Sounds good, thank you.
Regards, Simon

Hi Simon,
On Tue, 3 Jun 2014 09:51:59 -0600 Simon Glass sjg@chromium.org wrote:
Hi Masahiro,
On 3 June 2014 06:02, Masahiro Yamada yamada.m@jp.panasonic.com wrote:
Hi Simon,
On Mon, 2 Jun 2014 21:40:05 -0600 Simon Glass sjg@chromium.org wrote:
Hi Masahiro,
I see that we have a few files in tools/ which #include their counterpart .c files in common/ or lib/. The most noticeable example is libfdt.
Is there a better way of doing this? Would it be possible to pick up the files automatically and still put the output file in tools/?
The reason I ask is that I would like to add support for decompression into a tool, but the thought of adding links to all the compression library files leaves me with a bad taste in my mouth.
OK.
I think I found a better way. I will post it (probably tomorrow) after testing it a little bit more.
Sounds good, thank you.
Could you check this? http://patchwork.ozlabs.org/patch/355815/
Best Regards Masahiro Yamada
participants (2)
-
Masahiro Yamada
-
Simon Glass