From 49ba52cb46919c8a46c318e77edd1845b9f51178 Mon Sep 17 00:00:00 2001 From: Mauro Carvalho Chehab Date: Thu, 31 Aug 2006 17:52:53 -0300 Subject: Allow compilation of the audio drivers From: Mauro Carvalho Chehab Now, make will compile also the audio drivers at the tree. By default, they will not be installed. A new option were added to install those files: make sound-install Signed-off-by: Mauro Carvalho Chehab --- v4l/Makefile.sound | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) (limited to 'v4l/Makefile.sound') diff --git a/v4l/Makefile.sound b/v4l/Makefile.sound index 157a75ec4..0f218b78b 100644 --- a/v4l/Makefile.sound +++ b/v4l/Makefile.sound @@ -12,3 +12,27 @@ obj-$(CONFIG_SOUND_BT878) += btaudio.o snd-tea575x-tuner-objs := tea575x-tuner.o obj-$(CONFIG_SND_FM801_TEA575X) += snd-tea575x-tuner.o +KDIRA := /lib/modules/$(KERNELRELEASE)/kernel + + +sound-install install-sound:: + @dir="sound/pci"; \ + files='snd-bt87x.ko'; \ + echo -e "\nInstalling $(KDIRA)/$$dir files:"; \ + install -d $(KDIRA)/$$dir; \ + for i in $$files;do if [ -e $$i ]; then echo -n "$$i "; \ + install -m 644 -c $$i $(KDIRA)/$$dir; fi; done; echo; + + @dir="sound/oss"; \ + files='aci.ko btaudio.ko'; \ + echo -e "\nInstalling $(KDIRA)/$$dir files:"; \ + install -d $(KDIRA)/$$dir; \ + for i in $$files;do if [ -e $$i ]; then echo -n "$$i "; \ + install -m 644 -c $$i $(KDIRA)/$$dir; fi; done; echo; + + @dir="sound/i2c/other"; \ + files='snd-tea575x-tuner.ko'; \ + echo -e "\nInstalling $(KDIRA)/$$dir files:"; \ + install -d $(KDIRA)/$$dir; \ + for i in $$files;do if [ -e $$i ]; then echo -n "$$i "; \ + install -m 644 -c $$i $(KDIRA)/$$dir; fi; done; echo; -- cgit v1.2.3