summaryrefslogtreecommitdiff
path: root/v4l/Makefile
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab@infradead.org>2008-07-18 01:14:44 -0300
committerMauro Carvalho Chehab <mchehab@infradead.org>2008-07-18 01:14:44 -0300
commitbe1dce088255ee8b88d5dcb06dc4f15bb3ad7b5a (patch)
tree7bf5d406e4271c8a71b4d233e64c99eb32f5a450 /v4l/Makefile
parentb2de91325c251c8e8eaabc97ae587ccead3f4f82 (diff)
downloadmediapointer-dvb-s2-be1dce088255ee8b88d5dcb06dc4f15bb3ad7b5a.tar.gz
mediapointer-dvb-s2-be1dce088255ee8b88d5dcb06dc4f15bb3ad7b5a.tar.bz2
Prepare to allow firmware out-of-tree firmware compilation
From: Mauro Carvalho Chehab <mchehab@infradead.org> This patch synchronizes the firmware hex files from Kernel and starts to prepare to allow firmware compilation at the out-of-tree driver. Yet, some work need to be done to make it work. Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Diffstat (limited to 'v4l/Makefile')
-rw-r--r--v4l/Makefile9
1 files changed, 8 insertions, 1 deletions
diff --git a/v4l/Makefile b/v4l/Makefile
index 60bf0b317..aaba68952 100644
--- a/v4l/Makefile
+++ b/v4l/Makefile
@@ -39,11 +39,14 @@ endif # TOPDIR
#################################################
# default compilation rule
-default:: config-compat.h Makefile.media links oss
+default:: config-compat.h Makefile.media links oss firmware
@echo Kernel build directory is $(OUTDIR)
$(MAKE) -C $(OUTDIR) SUBDIRS=$(PWD) $(MYCFLAGS) modules
./scripts/rmmod.pl check
# $(MAKE) checkpatch
+
+firmware:: firmlinks
+ $(MAKE) -C $(OUTDIR) SUBDIRS=$(PWD)/firmware $(MYCFLAGS) modules
#################################################
# Object specific rules
@@ -249,6 +252,10 @@ links::
@find ../linux/drivers/media -name '*.[ch]' -type f -print0 | xargs -0n 255 ln -sf --target-directory=.
@find ../linux/sound -name '*.[ch]' -type f -print0 | xargs -0n 255 ln -sf --target-directory=.
+firmlinks::
+ for i in `find ../linux/firmware/ -type d|sed s,"../linux/firmware",,`; do mkdir -p firmware/$$i; done >/dev/null
+ for i in `find ../linux/firmware/ -type f|sed s,"../linux/firmware",,`; do ln -sf $(PWD)/../linux/firmware/$$i firmware/$$i; done
+
# This link is so code with #include "oss/*.h" will find its header files
oss:
ln -sf . oss