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:
Larry Finger 2013-05-15 13:31:06 -05:00
parent 6b5af3a7fe
commit 2951f6bc15
2 changed files with 10 additions and 2 deletions

View file

@ -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

View file

@ -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>