Re: [PATCH] dtc: Use better check for libyaml

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sun, May 3, 2020 at 3:16 AM Marek Behun <marek.behun@xxxxxx> wrote:
>
> On Sun, 3 May 2020 02:56:42 +0900
> Masahiro Yamada <masahiroy@xxxxxxxxxx> wrote:
>
> > You missed to see the cost of parsing the Makefile.
> >
> >
> > scripts/dtc/Makefile is parsed every time
> > you run 'make'.
> >
> > Even if you have nothing to recompile,
> > it builds the tiny program in background.
> >
> > This happens for 'make mrproper' too.
>
> I missed this point by a large margin indeed.
>
> > Maybe, file a bug report to your distribution
> > if the pc file is strangely installed?
> >
> > ...
>
> Very well, thank you for elaborating on that. Sorry this took your time.

No problem.

> Now that I know this, wouldn't it make more sense to decide
> whether to build yamltree.c or not in config stage, eg. in a Kconfig
> file? Because now it seems that pkg-config is being run everytime we run
> make. I understand that it is much cheaper than gcc, but either way...


'make dt_binding_check' does not even require the .config


I do not like to run pkg-config while parsing Makefile.
Another solution is to build two dtc variants,
with/without yaml.

> Marek



-- 
Best Regards
Masahiro Yamada



[Index of Archives]     [Device Tree Compilter]     [Device Tree Spec]     [Linux Driver Backports]     [Video for Linux]     [Linux USB Devel]     [Linux PCI Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [XFree86]     [Yosemite Backpacking]


  Powered by Linux