Mailing List archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[linux-dvb] Re: [PATCH] build-2.6 w/ separate objdir



> It seems that with that patch applied it doesn't build anymore
> w/o separate object directory:

Ouch, I've already suspected that. So we need a switch like this (untested):

--- Makefile	5 Apr 2004 12:17:33 -0000	1.15
+++ Makefile	10 May 2004 16:50:18 -0000
@@ -2,10 +2,11 @@
 
 KERNELRELEASE := $(shell uname -r)
 KERNELSRCDIR := /lib/modules/$(KERNELRELEASE)/build
+KERNELBUILDDIR := $(KERNELSRCDIR)
 BUILD_DIR := $(shell pwd)
 export DVB_SRC_DIR := $(shell cd ..; pwd)
  
-include $(KERNELSRCDIR)/.config
+include $(KERNELBUILDDIR)/.config
 
 # if no DVB drivers are selected in the kernel config,
 # we check if an av7110 driver firmware is available
@@ -33,7 +34,11 @@
 all: makelinks $(DVB_FIRMWARE) $(VIDEO_BUF)
 	rm -rf bt848.h
 	ln -s $(KERNELSRCDIR)/drivers/media/video/bt848.h bt848.h
+ifeq ($(KERNELBUILDDIR),$(KERNELSRCDIR))
 	$(MAKE) -C $(KERNELSRCDIR) SUBDIRS=$(BUILD_DIR) AV7110_FIRMWARE=$(CONFIG_DVB_AV7110_FIRMWARE_FILE) AV7110_OSD=$(CONFIG_DVB_AV7110_OSD)
+else
+	$(MAKE) -C $(KERNELSRCDIR) O=$(KERNELBUILDDIR) SUBDIRS=$(BUILD_DIR) AV7110_FIRMWARE=$(CONFIG_DVB_AV7110_FIRMWARE_FILE) AV7110_OSD=$(CONFIG_DVB_AV7110_OSD)
+endif
 
 video-buf.c:
 	rm -rf video-buf.c
== end of patch ==

Olaf



-- 
Info:
To unsubscribe send a mail to ecartis@linuxtv.org with "unsubscribe linux-dvb" as subject.



Home | Main Index | Thread Index