Skip to contentSkip to conversation

u-boot top makefile

DISCUSSION Val Shkolnikov 2 participants 2 messages Feb 18 1 message not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

#1 lore raw

Hello,
I would like to modify the top Makefile target scripts_dtc recipe. Currently, it's a long shell command. I'd like to separate it into a script in the scripts directory. The scripts of this length should not be coded directly in the makefile. In this particular case if $Q is unset (vebose mode), the whole recipe is echoed. Also echoed an "Error: " string coming from the scripts/dtc-version.sh called in the recipe. This confuses error detection tools used in our organization. Regards,
/Val

#2 lore raw
Quoted 8 lines · Val Shkolnikov

Hello,
I would like to modify the top Makefile target scripts_dtc recipe. Currently, it's a long shell command. I'd like to separate it into a script in the scripts directory. The scripts of this length should not be coded directly in the makefile. In this particular case if $Q is unset (vebose mode), the whole recipe is echoed. Also echoed an "Error: " string coming from the scripts/dtc-version.sh called in the recipe. This confuses error detection tools used in our organization.

I think moving that out of the Makefile might hinder readability, honestly. But it would be good to know what the Error you hit with dtc-version.sh because that case should likely be handled better by our usage in the Makefile.

Signature · 1 line
Tom