Out of tree nouveau.ko build.
As a part of updating Ubuntu's nouveau package, I've been figuring exactly how to build nouveau.ko from cgit.freedesktop.org/nouveau/linux-2.6
A first and trivial pass at this is attached. It doesn't do any interesting kernel configuration checking; it just sets the right include paths and calls out to make.
ifndef LINUXDIRRUNNING_REL := $(shell uname -r)
LINUXDIR := $(shell if [ -e /lib/modules/$(RUNNING_REL)/source ]; then \ echo /lib/modules/$(RUNNING_REL)/source; \ else echo /lib/modules/$(RUNNING_REL)/build; fi)
endif
all: modules
modules:
make -C $(LINUXDIR) CC="$(CC) -I$(CURDIR)/include/drm" SUBDIRS=`/bin/pwd`/drivers/gpu/drm CONFIG_DRM_NOUVEAU=m CONFIG_DRM_TTM=m modules
install:
make -C $(LINUXDIR) CC="$(CC) -I$(CURDIR)/include/drm" SUBDIRS=`/bin/pwd`/drivers/gpu/drm CONFIG_DRM_NOUVEAU=m CONFIG_DRM_TTM=m modules_install
clean:
make -C $(LINUXDIR) SUBDIRS=`/bin/pwd`/drivers/gpu/drm CONFIG_DRM_NOUVEAU=m CONFIG_DRM_TTM=m clean
_______________________________________________
Nouveau mailing list [email protected]
http://lists.freedesktop.org/mailman/listinfo/nouveau
A message that is not in the archive (sent off-list or not yet received): 1245839531.5592.12.camel-Ej038JCHlWh3+r/[email protected]
Quoted 7 lines · On Wed, 24 Jun 2009 20:32:11 +1000 Christopher James Halse Rogers…
As a part of updating Ubuntu's nouveau package, I've been figuring exactly how to build nouveau.ko from cgit.freedesktop.org/nouveau/linux-2.6
A first and trivial pass at this is attached. It doesn't do any interesting kernel configuration checking; it just sets the right include paths and calls out to make.
I took the Makefile and improved it, it can be found in
http://cgit.freedesktop.org/nouveau/linux-2.6/tree/nouveau?h=newttm-devel-compat
along with important information on the kernel dependencies. The kernel config is not any way checked AFAIK, so you need to take care of it yourself. The Makefile should be good for any Nouveau kernel branch.
Signature · 2 lines
Pekka Paalanen http://www.iki.fi/pq/