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 LINUXDIR RUNNING_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
signature.asc
Description: This is a digitally signed message part
_______________________________________________ Nouveau mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/nouveau
