summaryrefslogtreecommitdiff
path: root/v4l/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'v4l/Makefile')
-rw-r--r--v4l/Makefile13
1 files changed, 12 insertions, 1 deletions
diff --git a/v4l/Makefile b/v4l/Makefile
index 73058a1e9..1af345804 100644
--- a/v4l/Makefile
+++ b/v4l/Makefile
@@ -217,6 +217,11 @@ $(obj)/av7110_firm.h: $(obj)/fdump
EXTRA_CFLAGS += -DCONFIG_DVB_AV7110_FIRMWARE_FILE
endif
+ifeq ($(ARCH),)
+ARCH := $(shell uname -m | sed -e s/i.86/i386/ -e s/sun4u/sparc64/ \
+ -e s/arm.*/arm/ -e s/sa110/arm/ \
+ -e s/s390x/s390/ -e s/parisc64/parisc/ )
+endif
#################################################
# compile modules
@@ -346,6 +351,10 @@ all:: default
default:: links .version
$(MAKE) -C $(KDIR) SUBDIRS=$(PWD) $(MYCFLAGS) modules
+qconfig:: links .version
+ ./scripts/make_kconfig.pl /usr/src/linux-2.6.14 $(ARCH)
+ $(KDIR)/scripts/kconfig/qconf Kconfig
+
pvrusb2::
@echo creating pvrusb2 symbolic links...
@find ../v4l_experimental/pvrusb2 -name '*.[ch]' -type f -exec ln -sf '{}' . \;
@@ -524,7 +533,9 @@ rmmodules::
clean::
@find . -name '*.c' -type l -exec rm '{}' \;
@find . -name '*.h' -type l -exec rm '{}' \;
- -rm -f *~ *.o *.ko .*.o.cmd .*.ko.cmd *.mod.c av7110_firm.h fdump ivtv-svnversion.h .pvrusb2-merge
+ -rm -f *~ *.o *.ko .*.o.cmd .*.ko.cmd *.mod.c av7110_firm.h fdump \
+ ivtv-svnversion.h .pvrusb2-merge \
+ Kconfig Kconfig.kern .config .config.cmd
distclean:: clean
-rm -f .version .*.o.flags .*.o.d