From 2951f6bc15e9af3994c38aa8390c3fc8d0bd20d1 Mon Sep 17 00:00:00 2001 From: Larry Finger Date: Wed, 15 May 2013 13:31:06 -0500 Subject: [PATCH] rtl8188eu: Allow driver to build on PowerPC This driver is not yet tested on big-endian architecture Signed-off-by: Larry Finger --- Makefile | 8 ++++++-- core/rtw_br_ext.c | 4 ++++ 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 3d55337..1a02c94 100644 --- a/Makefile +++ b/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 diff --git a/core/rtw_br_ext.c b/core/rtw_br_ext.c index f7f13dc..44b59f1 100644 --- a/core/rtw_br_ext.c +++ b/core/rtw_br_ext.c @@ -45,6 +45,10 @@ #include "./8192cd_debug.h" #endif // rtw_wifi_driver +#ifndef csum_ipv6_magic +#include +#endif + #ifdef CL_IPV6_PASS #ifdef __KERNEL__ #include