xrmx / bootchart

merge of bootchart-collector and pybootchartgui
GNU General Public License v2.0
233 stars 87 forks source link

fix CROSS_COMPILE prefix in CC #80

Closed cengiz-io closed 2 years ago

cengiz-io commented 5 years ago

Hello,

With gnu make (4.1), I wasn't able to override CC value with CROSS_COMPILE. To find out what's really going on, I've added this temporary build target to dump variables

print-%  : ; @echo $* = $($*)

Whenever I pass CONFIG_CROSS_COMPILE via environment, it was getting assigned to CROSS_COMPILE but make was not changing the default value of CC due to ?= operator:

$ CONFIG_CROSS_COMPILE=arm-linux-gnueabihf- make print-CROSS_COMPILE print-CC
CROSS_COMPILE = arm-linux-gnueabihf-
CC = cc

So I've replaced the ?= operator with =. (This will prevent CC=compiler make definitions from working properly but that can be resolved by CC=compiler make -e, if needed.)