mirror of
https://github.com/lwfinger/rtl8188eu.git
synced 2024-11-21 20:13:39 +00:00
rtl8188eu: Allow driver to build on PowerPC
This driver is not yet tested on big-endian architecture Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
This commit is contained in:
parent
6b5af3a7fe
commit
2951f6bc15
2 changed files with 10 additions and 2 deletions
8
Makefile
8
Makefile
|
@ -178,9 +178,13 @@ endif
|
|||
endif
|
||||
|
||||
ifeq ($(CONFIG_PLATFORM_I386_PC), y)
|
||||
EXTRA_CFLAGS += -DCONFIG_LITTLE_ENDIAN
|
||||
SUBARCH := $(shell uname -m | sed -e s/i.86/i386/)
|
||||
SUBARCH := $(shell uname -m | sed -e s/i.86/i386/ | sed -e s/ppc/powerpc/)
|
||||
ARCH ?= $(SUBARCH)
|
||||
ifeq ($(ARCH), "powerpc")
|
||||
EXTRA_CFLAGS += -DCONFIG_BIG_ENDIAN
|
||||
else
|
||||
EXTRA_CFLAGS += -DCONFIG_LITTLE_ENDIAN
|
||||
endif
|
||||
CROSS_COMPILE ?=
|
||||
KVER := $(shell uname -r)
|
||||
KSRC := /lib/modules/$(KVER)/build
|
||||
|
|
|
@ -45,6 +45,10 @@
|
|||
#include "./8192cd_debug.h"
|
||||
#endif // rtw_wifi_driver
|
||||
|
||||
#ifndef csum_ipv6_magic
|
||||
#include <net/ip6_checksum.h>
|
||||
#endif
|
||||
|
||||
#ifdef CL_IPV6_PASS
|
||||
#ifdef __KERNEL__
|
||||
#include <linux/ipv6.h>
|
||||
|
|
Loading…
Reference in a new issue