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. 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... Marek