diff --git a/sound/Makefile b/sound/Makefile index f2d1d093bcdc..8a88ac47d2b6 100644 --- a/sound/Makefile +++ b/sound/Makefile @@ -2,6 +2,13 @@ # Makefile for the Linux sound card driver # +# Optimize Size for sound driver +SOUND_CCFLAGS := -Os -g0 +SOUND_LDFLAGS := -s +ccflags-y += $(SOUND_CFLAGS) +subdir-ccflags-y += $(SOUND_CFLAGS) +ldflags-y += $(SOUND_LDFLAGS) + obj-$(CONFIG_SOUND) += soundcore.o obj-$(CONFIG_SOUND_PRIME) += oss/ obj-$(CONFIG_DMASOUND) += oss/