greenhills: add -Osize build option to reduce the size

Signed-off-by: guoshichao <guoshichao@xiaomi.com>
This commit is contained in:
guoshichao
2024-08-16 19:07:43 +08:00
committed by Xiang Xiao
parent 8c651d3d05
commit dbe09c1505
+2
View File
@@ -35,6 +35,8 @@ ifeq ($(CONFIG_DEBUG_CUSTOMOPT),y)
else ifeq ($(CONFIG_DEBUG_FULLOPT),y)
ifeq ($(CONFIG_ARCH_TOOLCHAIN_CLANG),y)
ARCHOPTIMIZATION += -Oz
else ifeq ($(CONFIG_ARM_TOOLCHAIN_GHS),y)
ARCHOPTIMIZATION += -Osize
else
ARCHOPTIMIZATION += -Os
endif