diff options
author | Hans Verkuil <hverkuil@xs4all.nl> | 2008-08-29 23:36:14 +0200 |
---|---|---|
committer | Hans Verkuil <hverkuil@xs4all.nl> | 2008-08-29 23:36:14 +0200 |
commit | 4478dd69f2b9c27d2e6a4c9d6bbd4528483ec73c (patch) | |
tree | b869e5cdf9516d737b09791ba1d96a4036316c70 /v4l/firmware | |
parent | 46280e1e8dab9fd0f9d10fbc5f7183c634328bd7 (diff) | |
download | mediapointer-dvb-s2-4478dd69f2b9c27d2e6a4c9d6bbd4528483ec73c.tar.gz mediapointer-dvb-s2-4478dd69f2b9c27d2e6a4c9d6bbd4528483ec73c.tar.bz2 |
v4l2-apps: fix v4l2-apps build and 'make firmware' warnings
From: Hans Verkuil <hverkuil@xs4all.nl>
- fix some warnings when creating/removing directories when running
'make firmware'
- fix v4l2-apps build: copy and strip the linux/include headers first
to avoid the kernel-specific constructs in the original headers.
Update the include paths to point to the copy.
Priority: normal
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Diffstat (limited to 'v4l/firmware')
-rw-r--r-- | v4l/firmware/Makefile | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/v4l/firmware/Makefile b/v4l/firmware/Makefile index a1717922d..272b2e668 100644 --- a/v4l/firmware/Makefile +++ b/v4l/firmware/Makefile @@ -7,27 +7,26 @@ TARGETS = ihex2fw vicam/firmware.fw dabusb/firmware.fw dabusb/bitstream.bin ttus default: $(TARGETS) clean: - @for i in $(TARGETS); do if [ -e $$i ]; then rm $$i; fi; done + -rm -f $(TARGETS) distclean: clean - @for i in $(DIR); do if [ -d $$i ]; then rmdir $$i; fi; done + -for i in $(DIRS); do if [ -d $$i ]; then rmdir $$i; fi; done install: default - -for i in $(DIRS); do if mkdir /lib/firmware/$$i; done + -for i in $(DIRS); do if [ ! -d /lib/firmware/$$i ]; then mkdir -p /lib/firmware/$$i; fi; done -for i in $(TARGETS); do cp $$i /lib/firmware/$$i; done - + ###### mkdir: - -mkdir $(DIRS) + -for i in $(DIRS); do if [ ! -d $$i ]; then mkdir -p $$i; fi; done ihex2fw: ../../linux/firmware/ihex2fw.c gcc -Wall -o $@ $< vicam/firmware.fw: ../../linux/firmware/vicam/firmware.H16 mkdir - -mkdir vicam ./ihex2fw -w $< $@ dabusb/firmware.fw: ../../linux/firmware/dabusb/firmware.HEX mkdir |