Skip to contentSkip to conversation

make mrproper deletes lib/acpi/dsdt.c

DISCUSSION Marcel Ziswiler 2 participants 3 messages Feb 4, 2022 – Feb 16, 2022

lore
Share & tools
lore
#0 lore raw

Hi Simon

Since a few days I noticed the following:

⬢[zim@toolbox u-boot.git]$ git status
On branch master
Your branch is up to date with 'origin/master'.
⬢[zim@toolbox u-boot.git]$ make mrproper
⬢[zim@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?

Thanks!

Cheers

Marcel

#1 lore raw

Hi Marcel,

Quoted 13 lines · Marcel Ziswiler

Hi Simon

Since a few days I noticed the following:

⬢[zim@toolbox u-boot.git]$ git status
On branch master
Your branch is up to date with 'origin/master'.
⬢[zim@toolbox u-boot.git]$ make mrproper
⬢[zim@toolbox u-boot.git]$ git status
On branch master
Your branch is up to date with 'origin/master'.

Quoted 6 lines

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

#2 lore raw

+Heinrich Schuchardt who noticed the same thing

We should know the pathname of the generated dsdt.c file so perhaps we should delete it explicitly?

- Simon

Quoted 35 lines · Simon Glass

Hi Marcel,

Quoted 13 lines · Marcel Ziswiler

Hi Simon

Since a few days I noticed the following:

⬢[zim@toolbox u-boot.git]$ git status
On branch master
Your branch is up to date with 'origin/master'.
⬢[zim@toolbox u-boot.git]$ make mrproper
⬢[zim@toolbox u-boot.git]$ git status
On branch master
Your branch is up to date with 'origin/master'.

Quoted 6 lines

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