[ccan] [PATCH] cpuid: new module
Ahmed Samy
f.fallen45 at gmail.com
Mon Sep 23 22:44:57 EST 2013
On Mon, Sep 23, 2013 at 11:33 AM, David Gibson
<david at gibson.dropbear.id.au>wrote:
> > For a compiler magic, we can test with ${shell "arch -m"} maybe?
>
> That might work. I don't know if ccan has support for
> cross-compiling, in which case you'd need to check target arch, rather
> than host arch.
>
> I'm not sure if it does support cross-compiling either, but for a
temporary thing we could do:
TARGETARCH=i386
WITH_CPUID="no"
ifeq ($(ARCH}, i386)
WITH_CPUID="yes"
endif
Also test for x86_64 but that's probably not the most effecient way, will
wait for Rusty's comeback or a better suggestion.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ozlabs.org/pipermail/ccan/attachments/20130923/1b094c8a/attachment.html>
More information about the ccan
mailing list