diff options
author | Mauro Carvalho Chehab <mchehab@infradead.org> | 2008-06-16 10:01:11 -0300 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@infradead.org> | 2008-06-16 10:01:11 -0300 |
commit | 855fdb627f0cba969239e66fdc9c71afdbb1ba35 (patch) | |
tree | 690da9df83f71a673309f3ca92be9ea77155fdf8 /v4l2-apps/util/Makefile | |
parent | a7f8d622583ff88477842332b87c9d5cc195e6d1 (diff) | |
download | mediapointer-dvb-s2-855fdb627f0cba969239e66fdc9c71afdbb1ba35.tar.gz mediapointer-dvb-s2-855fdb627f0cba969239e66fdc9c71afdbb1ba35.tar.bz2 |
Add a tool to debug bttv registers
From: Mauro Carvalho Chehab <mchehab@infradead.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Diffstat (limited to 'v4l2-apps/util/Makefile')
-rw-r--r-- | v4l2-apps/util/Makefile | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/v4l2-apps/util/Makefile b/v4l2-apps/util/Makefile index cc0547c32..65af47835 100644 --- a/v4l2-apps/util/Makefile +++ b/v4l2-apps/util/Makefile @@ -1,9 +1,13 @@ # Makefile for linuxtv.org v4l2-apps/util +ifeq ($(KERNEL_DIR),) + KERNEL_DIR = /usr +endif + CPPFLAGS += -I../../linux/include -D_GNU_SOURCE LDFLAGS += -lm -binaries = v4l2-ctl v4l2-dbg ivtv-ctl cx18-ctl +binaries = v4l2-ctl v4l2-dbg ivtv-ctl cx18-ctl bttv-dbg ifeq ($(prefix),) prefix = /usr @@ -32,12 +36,12 @@ install: include ../Make.rules -parse.h: /usr/include/linux/input.h +parse.h: $(KERNEL_DIR)/include/linux/input.h @echo generating parse.h @echo -en "struct parse_key {\n\tchar *name;\n\tunsigned int value;\n} " >parse.h @echo -en "keynames[] = {\n" >>parse.h - @more /usr/include/linux/input.h |perl -n \ + @more $(KERNEL_DIR)/linux/input.h |perl -n \ -e 'if (m/^\#define\s+(KEY_[^\s]+)\s+(0x[\d\w]+|[\d]+)/) ' \ -e '{ printf "\t{\"%s\", %s},\n",$$1,$$2; }' \ -e 'if (m/^\#define\s+(BTN_[^\s]+)\s+(0x[\d\w]+|[\d]+)/) ' \ |