summaryrefslogtreecommitdiff
path: root/v4l/Makefile
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab@infradead.org>2008-07-18 08:35:40 -0300
committerMauro Carvalho Chehab <mchehab@infradead.org>2008-07-18 08:35:40 -0300
commite68d63cdeb1115d0fd27f54d413ba25c1b3216f9 (patch)
tree2fffb6017b88dca6f279f37bcfc061254c34108e /v4l/Makefile
parentb7a4e5584e065e0e27aeedd1583e68edd4daea43 (diff)
downloadmediapointer-dvb-s2-e68d63cdeb1115d0fd27f54d413ba25c1b3216f9.tar.gz
mediapointer-dvb-s2-e68d63cdeb1115d0fd27f54d413ba25c1b3216f9.tar.bz2
A few improvements at firmware build
From: Mauro Carvalho Chehab <mchehab@infradead.org> make firmware will now create the firmware files, using .ihex, .HEX and .H16 target files, under linux/firmware. TODO: - use the right names for those firmwares; - link them with the module, if desired by enduser. Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Diffstat (limited to 'v4l/Makefile')
-rw-r--r--v4l/Makefile10
1 files changed, 4 insertions, 6 deletions
diff --git a/v4l/Makefile b/v4l/Makefile
index 57bb4e614..579b85f88 100644
--- a/v4l/Makefile
+++ b/v4l/Makefile
@@ -45,8 +45,9 @@ default:: config-compat.h Makefile.media links oss # firmware
./scripts/rmmod.pl check
# $(MAKE) checkpatch
-firmware:: firmlinks
- $(MAKE) -C $(OUTDIR) SUBDIRS=$(PWD)/firmware $(MYCFLAGS) modules
+firmware::
+ $(MAKE) -C firmware
+
#################################################
# Object specific rules
@@ -252,10 +253,6 @@ 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
@@ -280,6 +277,7 @@ clean::
@find . -name '*.h' -type l -exec rm '{}' \;
-rm -f *~ *.o *.ko .*.o.cmd .*.ko.cmd *.mod.c av7110_firm.h fdump \
config-compat.h Module.symvers
+ make -C firmware clean
distclean:: clean
-rm -f .version .*.o.flags .*.o.d Makefile.media \