Browse Source

qcacld-3.0: Consolidate setting of endian macros

There are a multitude of endian macros currently supported by the
driver. Consolidate them in one place as a precursor to future
consolidation.

Change-Id: Id4e57eb6e409aa0c84d46b8ce9eb85f3be56716e
CRs-Fixed: 2220920
Jeff Johnson 7 years ago
parent
commit
ec884ea161
1 changed files with 5 additions and 4 deletions
  1. 5 4
      Kbuild

+ 5 - 4
Kbuild

@@ -1839,10 +1839,7 @@ endif
 
 EXTRA_CFLAGS += $(INCS)
 
-CDEFINES :=	-DANI_LITTLE_BYTE_ENDIAN \
-		-DANI_LITTLE_BIT_ENDIAN \
-		-DDOT11F_LITTLE_ENDIAN_HOST \
-		-DANI_OS_TYPE_ANDROID=6 \
+CDEFINES :=	-DANI_OS_TYPE_ANDROID=6 \
 		-DPTT_SOCK_SVC_ENABLE \
 		-Wall\
 		-Werror\
@@ -2243,9 +2240,13 @@ endif
 ifeq ($(CONFIG_LITTLE_ENDIAN), 1)
 AH_LITTLE_ENDIAN=1234
 CDEFINES += -DAH_BYTE_ORDER=$(AH_LITTLE_ENDIAN)
+CDEFINES += -DANI_LITTLE_BYTE_ENDIAN
+CDEFINES += -DANI_LITTLE_BIT_ENDIAN
+CDEFINES += -DDOT11F_LITTLE_ENDIAN_HOST
 else
 AH_BIG_ENDIAN=4321
 CDEFINES += -DAH_BYTE_ORDER=$(AH_BIG_ENDIAN)
+CDEFINES += -DANI_BIG_BYTE_ENDIAN
 CDEFINES += -DBIG_ENDIAN_HOST
 endif