make mrproper deletes lib/acpi/dsdt.c

Simon Glass sjg at chromium.org
Fri Feb 4 16:34:33 CET 2022


Hi Marcel,

On Fri, 4 Feb 2022 at 03:10, Marcel Ziswiler
<marcel.ziswiler at toradex.com> wrote:
>
> Hi Simon
>
> Since a few days I noticed the following:
>
> ⬢[zim at toolbox u-boot.git]$ git status
> On branch master
> Your branch is up to date with 'origin/master'.
> ⬢[zim at toolbox u-boot.git]$ make mrproper
> ⬢[zim at toolbox u-boot.git]$ git status
> On branch master
> Your branch is up to date with 'origin/master'.
>
> Changes not staged for commit:
>   (use "git add/rm <file>..." to update what will be committed)
>   (use "git restore <file>..." to discard changes in working directory)
>         deleted:    lib/acpi/dsdt.c
>
> So somehow cleaning with mrproper deletes that file. Do you know what could be the cause?

Yes it is the

-o -name 'dsdt.c'

in the Makefile 'clean' rule. That file is created during the build in
a board/ directory (e.g. with chromebook_coral) which is why we delete
it. It seems like we need to make a change somewhere.

Regards,
Simon


More information about the U-Boot mailing list