add --strip-debug on release builds
authorLawrence Mok <lawrence.mok@amlogic.com>
Tue, 29 Jul 2014 01:09:42 +0000 (18:09 -0700)
committerLawrence Mok <lawrence.mok@amlogic.com>
Wed, 30 Jul 2014 22:28:41 +0000 (15:28 -0700)
reduces output .ko size from 3.5MB to 255KB

Change-Id: Ic452d79101563aaf0d03b4cb3a975ab84c5b509b

mali/Kbuild

index e8331982b85358e368a74eff8b9ecffc2665c4d4..d22bb9e989b331a4aaa7d33cfd666dc1d79fb92a 100755 (executable)
@@ -50,6 +50,7 @@ ifeq ($(CONFIG_MALI400_DEBUG),y)
        BUILD ?= debug
 else
        BUILD ?= release
+       ldflags-y += --strip-debug
 endif
 ##################### end Kasin Added. ###################