I'm worried about tool chain problems, so I wanted to be able to build with a cross compiler. This patch adds that functionality to Kconfig.
This is most of the way there, but doesn't work when CONFIG_CROSS_COMPILE is set.
+ifeq ($(CONFIG_CROSS_COMPILE),y) +CC=$(CONFIG_CROSS_COMPILER) +CCSTRING="XCC" +endif
If I change it to
ifneq ($(CONFIG_CROSS_COMPILE),n) ... endif
It always uses the cross compiler.
Can someone spot what I did wrong, please?
xgcc_debug.diff just prints out the compiler information when you do make clean. It was a faster way for me to try things, but I still didn't find the correct way to do it.
Signed-off-by: Myles Watson mylesgw@gmail.com
Thanks, Myles