[coreboot] [PATCH] cross compiler
Myles Watson
mylesgw at gmail.com
Mon Oct 26 19:43:55 CET 2009
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 at gmail.com>
Thanks,
Myles
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.coreboot.org/pipermail/coreboot/attachments/20091026/901a7204/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: cross_compiler.diff
Type: text/x-patch
Size: 4169 bytes
Desc: not available
URL: <http://www.coreboot.org/pipermail/coreboot/attachments/20091026/901a7204/attachment.diff>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: xgcc_debug.diff
Type: text/x-patch
Size: 584 bytes
Desc: not available
URL: <http://www.coreboot.org/pipermail/coreboot/attachments/20091026/901a7204/attachment-0001.diff>
More information about the coreboot
mailing list