mirror of
https://github.com/lwfinger/rtl8188eu.git
synced 2024-11-25 14:03:40 +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
|
endif
|
||||||
|
|
||||||
ifeq ($(CONFIG_PLATFORM_I386_PC), y)
|
ifeq ($(CONFIG_PLATFORM_I386_PC), y)
|
||||||
EXTRA_CFLAGS += -DCONFIG_LITTLE_ENDIAN
|
SUBARCH := $(shell uname -m | sed -e s/i.86/i386/ | sed -e s/ppc/powerpc/)
|
||||||
SUBARCH := $(shell uname -m | sed -e s/i.86/i386/)
|
|
||||||
ARCH ?= $(SUBARCH)
|
ARCH ?= $(SUBARCH)
|
||||||
|
ifeq ($(ARCH), "powerpc")
|
||||||
|
EXTRA_CFLAGS += -DCONFIG_BIG_ENDIAN
|
||||||
|
else
|
||||||
|
EXTRA_CFLAGS += -DCONFIG_LITTLE_ENDIAN
|
||||||
|
endif
|
||||||
CROSS_COMPILE ?=
|
CROSS_COMPILE ?=
|
||||||
KVER := $(shell uname -r)
|
KVER := $(shell uname -r)
|
||||||
KSRC := /lib/modules/$(KVER)/build
|
KSRC := /lib/modules/$(KVER)/build
|
||||||
|
|
|
@ -45,6 +45,10 @@
|
||||||
#include "./8192cd_debug.h"
|
#include "./8192cd_debug.h"
|
||||||
#endif // rtw_wifi_driver
|
#endif // rtw_wifi_driver
|
||||||
|
|
||||||
|
#ifndef csum_ipv6_magic
|
||||||
|
#include <net/ip6_checksum.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifdef CL_IPV6_PASS
|
#ifdef CL_IPV6_PASS
|
||||||
#ifdef __KERNEL__
|
#ifdef __KERNEL__
|
||||||
#include <linux/ipv6.h>
|
#include <linux/ipv6.h>
|
||||||
|
|
Loading…
Reference in a new issue