[OpenWrt-Devel] Problem building modules out-of-tree (kbuild) for x86

Philip Prindeville philipp_subx at redfish-solutions.com
Mon Dec 19 17:11:23 EST 2016


> On Dec 19, 2016, at 1:25 AM, Alexandru Ardelean <ardeleanalex at gmail.com> wrote:
> 
> On Mon, Dec 19, 2016 at 1:41 AM, Philip Prindeville
> <philipp_subx at redfish-solutions.com> wrote:
>> Hi.
>> 
>> I’m trying to add the Intel e1000e, igb, and ixgbe drivers that are on Source Forge.
>> 
>> A snapshot of my work is here:
>> 
>> https://github.com/pprindeville/packages/tree/sf-ether
>> 
>> When I build this as “make -j1 V=s” using a mostly unmodified x86_64 generic configuration, I get:
>> 
>> 
>> […]
> 
> Maybe your host gcc is being picked by `make` ?
> In that case, it probably detects that option as valid/available.
> 
> I don't know how to better address this ; I'd assume, maybe by
> ensuring that the CC variable points to the right GCC.
> Tho, curiously,  CROSS_COMPILE="x86_64-openwrt-linux-musl-"   should
> that be x86_64-openwrt-linux-musl-gcc ?
> 
> Maybe, also look for missing env vars that point to the right GCC.


No, not for $(CROSS_COMPILE)… it’s a prefix that gets added before “cc”, “g++”, “ld”, “as”, etc. to make sure that the appropriate version gets invoked.

It typically gets invoked as $(CROSS_COMPILE)cc for instance.

-Philip
_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


More information about the openwrt-devel mailing list