From: James Chargin <jimccrown@gmail.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] "make clean" not traversing into board-specific directories?
Date: Fri, 13 May 2016 15:41:51 -0700 [thread overview]
Message-ID: <5736582F.5080202@gmail.com> (raw)
In-Reply-To: <CAOMZO5Dh_o=LVepBvEhq_rxZtSwUQd=QxD1nxtqe5vEDND2P7g@mail.gmail.com>
Hi,
On 05/13/2016 01:50 PM, Fabio Estevam wrote:
> Hi J?rg,
>
> On Fri, May 13, 2016 at 1:57 PM,
> <Joerg.Scheuermann@continental-corporation.com> wrote:
>> Hello,
>>
>> I am using u-boot 2015.04 and have a mechanism implemented in the
>> board-specific Makefile for our board,
>> which uses xsltproc to generate header-files from xml input files - this
>> part is working by now.
>>
>> what is still not working is the removal of those generated files upon
>> calling "make clean",
>> and after some initial inspection I found out, that the board-specific
>> directories are completely ignored when calling "make clean"!
>>
>> - why is that the case, can't those directories not also be visited when
>> cleaning things up?
>
> It works fine for me.
>
> I built mx7dsabresd_defconfig with mainline U-boot and after that I see:
>
> ls board/freescale/mx7dsabresd/
> built-in.o imximage.cfg.cfgtmp MAINTAINERS mx7dsabresd.c
> mx7dsabresd.o
> imximage.cfg Kconfig Makefile mx7dsabresd.su
>
> Then after a 'make clean'
>
> ls board/freescale/mx7dsabresd/
> imximage.cfg Kconfig MAINTAINERS Makefile mx7dsabresd.c
>
> ,which worked as expected.
In March of 2015, I was told that the board directories are not visited
for "make clean". Quoting Mr. Masahiro Yamada
>
> CLEAN_FILES is only available at the top-level Makefile.
>
> Add
> CLEAN_FILES += board/my_board/test.img
> to the top-level Makefile, and it should work.
>
>
>> clean-files += test.img
>> clean-files := test.img
>
> These are correct in sub-directory Makefiles in general,
> but unfortunately, "make clean" does not descend into board/ directory
> for some reason.
>
> So, they do not work in board/*/Makefile
>
This was quite a while ago, so changes may have been made for more
recent releases. But at one time (v2014.07), "make clean" did not visit
board directories.
Regards,
--
Jim Chargin
AJA Video Systems jimc at aja.com
(530) 271-3334 http://www.aja.com
next prev parent reply other threads:[~2016-05-13 22:41 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-05-13 16:57 [U-Boot] "make clean" not traversing into board-specific directories? Joerg.Scheuermann at continental-corporation.com
2016-05-13 20:50 ` Fabio Estevam
2016-05-13 22:41 ` James Chargin [this message]
2016-05-14 9:10 ` Masahiro Yamada
2016-05-18 9:06 ` Joerg.Scheuermann at continental-corporation.com
2016-05-18 15:08 ` James Chargin
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=5736582F.5080202@gmail.com \
--to=jimccrown@gmail.com \
--cc=u-boot@lists.denx.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.