Răsfoiți Sursa

qcacld-3.0: Enable size optimization compiler flag for genoa

Enable size optimization compiler flag for genoa

Change-Id: Ibda9f6baf07077b0fcc6ae4d7bd6c148252cc82b
CRs-Fixed: 2255923
Nirav Shah 6 ani în urmă
părinte
comite
8ba94a5d59
2 a modificat fișierele cu 5 adăugiri și 0 ștergeri
  1. 2 0
      Kbuild
  2. 3 0
      configs/genoa.snoc.perf_defconfig

+ 2 - 0
Kbuild

@@ -1903,6 +1903,8 @@ cppflags-y += -DATH_SUPPORT_WRAP=0
 cppflags-y += -DQCA_HOST2FW_RXBUF_RING
 #endof dummy flags
 
+ccflags-$(CONFIG_ENABLE_SIZE_OPTIMIZE) += -Os
+
 # DFS component
 cppflags-$(CONFIG_WLAN_DFS_MASTER_ENABLE) += -DQCA_MCL_DFS_SUPPORT
 ifeq ($(CONFIG_WLAN_FEATURE_DFS_OFFLOAD), y)

+ 3 - 0
configs/genoa.snoc.perf_defconfig

@@ -172,6 +172,8 @@ CONFIG_ENABLE_SMMU_S1_TRANSLATION := y
 endif
 endif
 
+CONFIG_ENABLE_SIZE_OPTIMIZE := y
+
 # configure log buffer size
 CONFIG_CFG_NUM_DP_TRACE_RECORD := 1000
 CONFIG_CFG_NUM_HTC_CREDIT_HISTORY := 16
@@ -180,4 +182,5 @@ CONFIG_CFG_NUM_WMI_MGMT_EVENT_HISTORY := 16
 CONFIG_CFG_NUM_TX_RX_HISTOGRAM := 16
 CONFIG_CFG_NUM_RX_IND_RECORD := 1024
 
+
 ###################################