Something like this seems to work for me across the board:

$(MAKE) \
                ARCH=$(ARCH) \
                KARCH="$(LINUX_KARCH)" \
                KSRC="$(LINUX_DIR)" \
                BUILD_KERNEL="$(BUILD_KERNEL)" \
                CROSS_COMPILE="$(TARGET_CROSS)" \
                CC="$(TARGET_CC)" \
                CXX="$(TARGET_CXX)" \
                CFLAGS="$(BYTE_ORDER) $(DEBUG) -Os -march=$(ARCH)
-I$(LINUX_DIR)/include -I$(STAGING_DIR)/usr/include " \
                LDFLAGS="$(TARGET_LDFLAGS)" VERBOSE=1 default



On Mon, Dec 19, 2016 at 11:41 PM, Philip Prindeville
<phil...@redfish-solutions.com> wrote:
> Hi.
>
> I’m trying to package the e1000e, igb, and ixgbe drivers for OpenWRT, which 
> is cross-built.
>
> And modules are typically built with kbuild for a different kernel (since the 
> OpenWRT target systems are obviously not build platforms).
>
> I’ve tried with 3.3.5.3 and 3.3.3 for e1000e, and can’t get it to build.
>
> It always tried to use the native ‘cc’, for instance, even when I specify 
> CC=“$(TARGET_CROSS)cc” for instance (ditto for GCC).
>
> What’s the workaround?
>
> Thanks,
>
> -Philip
>
>
> ------------------------------------------------------------------------------
> Developer Access Program for Intel Xeon Phi Processors
> Access to Intel Xeon Phi processor-based developer platforms.
> With one year of Intel Parallel Studio XE.
> Training and support from Colfax.
> Order your platform today.http://sdm.link/intel
> _______________________________________________
> E1000-devel mailing list
> E1000-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/e1000-devel
> To learn more about Intel&#174; Ethernet, visit 
> http://communities.intel.com/community/wired



-- 
Kristian Kielhofner

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most 
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
E1000-devel mailing list
E1000-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/e1000-devel
To learn more about Intel&#174; Ethernet, visit 
http://communities.intel.com/community/wired

Reply via email to