From 56bd759df1d0c750a065b8c845e93d5dfa6b549d Mon Sep 17 00:00:00 2001 From: "Robin H. Johnson" Date: Sat, 8 Aug 2015 13:49:04 -0700 Subject: proj/gentoo: Initial commit MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This commit represents a new era for Gentoo: Storing the gentoo-x86 tree in Git, as converted from CVS. This commit is the start of the NEW history. Any historical data is intended to be grafted onto this point. Creation process: 1. Take final CVS checkout snapshot 2. Remove ALL ChangeLog* files 3. Transform all Manifests to thin 4. Remove empty Manifests 5. Convert all stale $Header$/$Id$ CVS keywords to non-expanded Git $Id$ 5.1. Do not touch files with -kb/-ko keyword flags. Signed-off-by: Robin H. Johnson X-Thanks: Alec Warner - did the GSoC 2006 migration tests X-Thanks: Robin H. Johnson - infra guy, herding this project X-Thanks: Nguyen Thai Ngoc Duy - Former Gentoo developer, wrote Git features for the migration X-Thanks: Brian Harring - wrote much python to improve cvs2svn X-Thanks: Rich Freeman - validation scripts X-Thanks: Patrick Lauer - Gentoo dev, running new 2014 work in migration X-Thanks: Michał Górny - scripts, QA, nagging X-Thanks: All of other Gentoo developers - many ideas and lots of paint on the bikeshed --- x11-base/nouveau-drm/Manifest | 2 + .../files/nouveau-drm-20100212-Makefile | 102 ++++++++++++++++++++ .../files/nouveau-drm-20121015-Makefile | 104 +++++++++++++++++++++ x11-base/nouveau-drm/metadata.xml | 9 ++ x11-base/nouveau-drm/nouveau-drm-20120728.ebuild | 48 ++++++++++ x11-base/nouveau-drm/nouveau-drm-20121015.ebuild | 48 ++++++++++ 6 files changed, 313 insertions(+) create mode 100644 x11-base/nouveau-drm/Manifest create mode 100644 x11-base/nouveau-drm/files/nouveau-drm-20100212-Makefile create mode 100644 x11-base/nouveau-drm/files/nouveau-drm-20121015-Makefile create mode 100644 x11-base/nouveau-drm/metadata.xml create mode 100644 x11-base/nouveau-drm/nouveau-drm-20120728.ebuild create mode 100644 x11-base/nouveau-drm/nouveau-drm-20121015.ebuild (limited to 'x11-base/nouveau-drm') diff --git a/x11-base/nouveau-drm/Manifest b/x11-base/nouveau-drm/Manifest new file mode 100644 index 000000000000..bc786daf06de --- /dev/null +++ b/x11-base/nouveau-drm/Manifest @@ -0,0 +1,2 @@ +DIST nouveau-drm-20120728.tar.gz 2423412 SHA256 d5ee7e49245d5eab57dd36f20439d99bb3bfe731c4133e07ea7a9e2a8bb92269 SHA512 747ff42747839371acfdecef6cada0c98fd75e856bbd3f9b1b9497a1b47144f5498a7de20d81f62f056c9b01203ab2f8bfd765280e006cab49acbfda7b315b42 WHIRLPOOL 12d376ee9b4bb054e9341d6ef97d13a6bc5f9a992eee82bbff3f974c61b4ebf89b22c09e4f85d3db4a834107ebc1cbf8665d73a6a5939b606ac8efcf58b5303f +DIST nouveau-drm-20121015.tar.gz 2484701 SHA256 6905cec49716c8b5f1881796f1190cd7eae6f73e23275e883e3d2b66a074771e SHA512 c652bc5a3b44d10a16bbd8c8cd9d7c9fd1393bc39cdeb5e350ab4995557e9c90aaa78ff317e08e47d07961a0dc6d96838db18a5b85b1dae8073dcc5157021038 WHIRLPOOL 2fba21206680799444eaf4b8b129b803f7d1c1a9c14e7ce47d5cbff240512ca90f63d017579ff1a2031f9cb5e02894f72832bc2dbe4285004dfdaae86c64b06f diff --git a/x11-base/nouveau-drm/files/nouveau-drm-20100212-Makefile b/x11-base/nouveau-drm/files/nouveau-drm-20100212-Makefile new file mode 100644 index 000000000000..123bc5339d3e --- /dev/null +++ b/x11-base/nouveau-drm/files/nouveau-drm-20100212-Makefile @@ -0,0 +1,102 @@ +# This Makefile is loosely based on the drm.git/linux-core/Makefile and +# the preliminary work by Christopher James Halse Rogers. +# Edited by Pekka Paalanen + +# By default, the build is done against the running linux kernel source. +# To build against a different kernel source tree, set LINUXDIR: +# +# make LINUXDIR=/path/to/kernel/source + +# By default, it is assumed the Nouveau kernel tree is found in $PWD/../. +# To use a different path to the Nouveau kernel tree, set NOUVEAUROOTDIR: +# +# make NOUVEAUROOTDIR=/path/to/nouveau/linux-2.6 + + +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 + +NOUVEAUGITREMOTE ?= origin +NOUVEAUROOTDIR ?= $(CURDIR)/.. +override NOUVEAUROOTDIR := $(abspath $(NOUVEAUROOTDIR)) + +TESTFILE := include/drm/nouveau_drm.h +ifeq ($(wildcard $(NOUVEAUROOTDIR)/$(TESTFILE)),) +$(error $(NOUVEAUROOTDIR) does not look like the right kernel tree, \ + please set NOUVEAUROOTDIR) +endif + +GIT_REVISION := $(shell GIT_DIR=$(NOUVEAUROOTDIR)/.git \ + git describe --always --abbrev=17 2> /dev/null) + +DRMINC := -I$(NOUVEAUROOTDIR)/include/drm +DRMDIR := $(NOUVEAUROOTDIR)/drivers/gpu/drm +DRMCFG := \ + CONFIG_DRM=m \ + CONFIG_DRM_KMS_HELPER=m \ + CONFIG_DRM_TTM=m \ + CONFIG_DRM_NOUVEAU=m \ + CONFIG_DRM_NOUVEAU_KMS=n \ + CONFIG_DRM_NOUVEAU_BACKLIGHT=y \ + CONFIG_DRM_NOUVEAU_DEBUG=y \ + CONFIG_DRM_I2C_CH7006=m \ + CONFIG_DRM_TDFX=n \ + CONFIG_DRM_R128=n \ + CONFIG_DRM_RADEON=n \ + CONFIG_DRM_MGA=n \ + CONFIG_DRM_I810=n \ + CONFIG_DRM_I830=n \ + CONFIG_DRM_I915=n \ + CONFIG_DRM_SIS=n \ + CONFIG_DRM_SAVAGE=n \ + CONFIG_DRM_VIA=n + +EXTRA_CFLAGS := +MYEXTRA_CFLAGS := +MYEXTRA_CFLAGS += -DCONFIG_DRM_NOUVEAU_BACKLIGHT +MYEXTRA_CFLAGS += -DCONFIG_DRM_NOUVEAU_DEBUG + +ifneq ($(GIT_REVISION),) +MYEXTRA_CFLAGS += '-DGIT_REVISION=\"$(GIT_REVISION)\"' +endif + +MYPARMS := -C $(LINUXDIR) KCPPFLAGS="$(DRMINC)" SUBDIRS="$(DRMDIR)" $(DRMCFG) + +MYEXTRA_CFLAGS += $(EXTRA_CFLAGS) +ifneq ($(MYEXTRA_CFLAGS),) +MYPARMS += EXTRA_CFLAGS="$(MYEXTRA_CFLAGS)" +endif + +.PHONY: all modules install clean archive FORCE + +all: modules +FORCE: + +modules: + $(MAKE) $(MYPARMS) modules + +install: + $(MAKE) $(MYPARMS) modules_install + +clean: + $(MAKE) $(MYPARMS) clean + +archive: newttm-devel-compat.tar.gz newttm-devel.tar.gz master.tar.gz + +newttm-devel-compat.tar.gz: EXTRAS=nouveau README-nouveau + +%.tar: FORCE + GIT_DIR=$(NOUVEAUROOTDIR)/.git \ + git archive --format=tar --prefix=$*/ $(NOUVEAUGITREMOTE)/$* \ + drivers/gpu/drm include/drm $(EXTRAS) > $@ + +%.tar.gz: %.tar + gzip -9 -c $< > $@ + +# The commit id of the archive can be read with +# $ zcat foo.tar.gz | git get-tar-commit-id diff --git a/x11-base/nouveau-drm/files/nouveau-drm-20121015-Makefile b/x11-base/nouveau-drm/files/nouveau-drm-20121015-Makefile new file mode 100644 index 000000000000..98736f8ccd26 --- /dev/null +++ b/x11-base/nouveau-drm/files/nouveau-drm-20121015-Makefile @@ -0,0 +1,104 @@ +# This Makefile is loosely based on the drm.git/linux-core/Makefile and +# the preliminary work by Christopher James Halse Rogers. +# Edited by Pekka Paalanen + +# By default, the build is done against the running linux kernel source. +# To build against a different kernel source tree, set LINUXDIR: +# +# make LINUXDIR=/path/to/kernel/source + +# By default, it is assumed the Nouveau kernel tree is found in $PWD/../. +# To use a different path to the Nouveau kernel tree, set NOUVEAUROOTDIR: +# +# make NOUVEAUROOTDIR=/path/to/nouveau/linux-2.6 + + +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 + +NOUVEAUGITREMOTE ?= origin +NOUVEAUROOTDIR ?= $(CURDIR)/.. +override NOUVEAUROOTDIR := $(abspath $(NOUVEAUROOTDIR)) + +TESTFILE := include/drm/nouveau_drm.h +ifeq ($(wildcard $(NOUVEAUROOTDIR)/$(TESTFILE)),) +$(error $(NOUVEAUROOTDIR) does not look like the right kernel tree, \ + please set NOUVEAUROOTDIR) +endif + +GIT_REVISION := $(shell GIT_DIR=$(NOUVEAUROOTDIR)/.git \ + git describe --always --abbrev=17 2> /dev/null) + +DRMINC := -I$(NOUVEAUROOTDIR)/include/drm +DRMDIR := $(NOUVEAUROOTDIR)/drivers/gpu/drm +DRMCFG := \ + CONFIG_DRM=m \ + CONFIG_DRM_KMS_HELPER=m \ + CONFIG_DRM_TTM=m \ + CONFIG_DRM_NOUVEAU=m \ + CONFIG_DRM_NOUVEAU_KMS=n \ + CONFIG_DRM_NOUVEAU_BACKLIGHT=y \ + CONFIG_DRM_NOUVEAU_DEBUG=y \ + CONFIG_DRM_I2C_CH7006=m \ + CONFIG_DRM_TDFX=n \ + CONFIG_DRM_R128=n \ + CONFIG_DRM_RADEON=n \ + CONFIG_DRM_MGA=n \ + CONFIG_DRM_I810=n \ + CONFIG_DRM_I830=n \ + CONFIG_DRM_I915=n \ + CONFIG_DRM_SIS=n \ + CONFIG_DRM_SAVAGE=n \ + CONFIG_DRM_VIA=n + +EXTRA_CFLAGS := +MYEXTRA_CFLAGS := +MYEXTRA_CFLAGS += -DCONFIG_DRM_NOUVEAU_BACKLIGHT +MYEXTRA_CFLAGS += -DCONFIG_DRM_NOUVEAU_DEBUG +MYEXTRA_CFLAGS += -DCONFIG_NOUVEAU_DEBUG +MYEXTRA_CFLAGS += -DCONFIG_NOUVEAU_DEBUG_DEFAULT + +ifneq ($(GIT_REVISION),) +MYEXTRA_CFLAGS += '-DGIT_REVISION=\"$(GIT_REVISION)\"' +endif + +MYPARMS := -C $(LINUXDIR) KCPPFLAGS="$(DRMINC)" SUBDIRS="$(DRMDIR)" $(DRMCFG) + +MYEXTRA_CFLAGS += $(EXTRA_CFLAGS) +ifneq ($(MYEXTRA_CFLAGS),) +MYPARMS += EXTRA_CFLAGS="$(MYEXTRA_CFLAGS)" +endif + +.PHONY: all modules install clean archive FORCE + +all: modules +FORCE: + +modules: + $(MAKE) $(MYPARMS) modules + +install: + $(MAKE) $(MYPARMS) modules_install + +clean: + $(MAKE) $(MYPARMS) clean + +archive: newttm-devel-compat.tar.gz newttm-devel.tar.gz master.tar.gz + +newttm-devel-compat.tar.gz: EXTRAS=nouveau README-nouveau + +%.tar: FORCE + GIT_DIR=$(NOUVEAUROOTDIR)/.git \ + git archive --format=tar --prefix=$*/ $(NOUVEAUGITREMOTE)/$* \ + drivers/gpu/drm include/drm $(EXTRAS) > $@ + +%.tar.gz: %.tar + gzip -9 -c $< > $@ + +# The commit id of the archive can be read with +# $ zcat foo.tar.gz | git get-tar-commit-id diff --git a/x11-base/nouveau-drm/metadata.xml b/x11-base/nouveau-drm/metadata.xml new file mode 100644 index 000000000000..40a4ce953dab --- /dev/null +++ b/x11-base/nouveau-drm/metadata.xml @@ -0,0 +1,9 @@ + + + + + chithanh@gentoo.org + Chí-Thanh Christopher Nguyễn + +x11 + diff --git a/x11-base/nouveau-drm/nouveau-drm-20120728.ebuild b/x11-base/nouveau-drm/nouveau-drm-20120728.ebuild new file mode 100644 index 000000000000..a97939f93f6d --- /dev/null +++ b/x11-base/nouveau-drm/nouveau-drm-20120728.ebuild @@ -0,0 +1,48 @@ +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=2 + +inherit linux-info linux-mod + +DESCRIPTION="Nouveau DRM Kernel Modules for X11" +HOMEPAGE="http://nouveau.freedesktop.org/" +SRC_URI="mirror://gentoo/${P}.tar.gz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64 ~x86" + +IUSE="" + +DEPEND="" +RDEPEND="${DEPEND}" + +S=${WORKDIR}/master + +CONFIG_CHECK="~ACPI_VIDEO ~BACKLIGHT_CLASS_DEVICE ~DEBUG_FS !DRM ~FB_CFB_FILLRECT ~FB_CFB_COPYAREA ~FB_CFB_IMAGEBLIT ~FRAMEBUFFER_CONSOLE ~!FB_NVIDIA ~!FB_RIVA ~!FB_UVESA ~!FB_VGA16 ~I2C_ALGOBIT ~MXM_WMI ~VGA_ARB" + +pkg_setup() { + linux-mod_pkg_setup + if kernel_is lt 3 5; then + eerror "You need kernel 3.5 for this version of nouveau-drm" + die "Incompatible kernel version" + fi + elog "For newer kernels newer than 2.6.32 there is integrated nouveau DRM." + elog "Use that if you experience build issues." +} + +src_compile() { + set_arch_to_kernel + emake \ + LINUXDIR="${KERNEL_DIR}" \ + NOUVEAUROOTDIR="${PWD}" \ + -f "${FILESDIR}"/${PN}-20100212-Makefile \ + || die "Compiling kernel modules failed" +} + +src_install() { + insinto /lib/modules/${KV_FULL}/${PN} + doins drivers/gpu/drm/{*/,}*.ko || die "doins failed" +} diff --git a/x11-base/nouveau-drm/nouveau-drm-20121015.ebuild b/x11-base/nouveau-drm/nouveau-drm-20121015.ebuild new file mode 100644 index 000000000000..427d281a5c93 --- /dev/null +++ b/x11-base/nouveau-drm/nouveau-drm-20121015.ebuild @@ -0,0 +1,48 @@ +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=2 + +inherit linux-info linux-mod + +DESCRIPTION="Nouveau DRM Kernel Modules for X11" +HOMEPAGE="http://nouveau.freedesktop.org/" +SRC_URI="mirror://gentoo/${P}.tar.gz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64 ~x86" + +IUSE="" + +DEPEND="" +RDEPEND="${DEPEND}" + +S=${WORKDIR}/master + +CONFIG_CHECK="~ACPI_VIDEO ~BACKLIGHT_CLASS_DEVICE ~DEBUG_FS !DRM ~FB_CFB_FILLRECT ~FB_CFB_COPYAREA ~FB_CFB_IMAGEBLIT ~FRAMEBUFFER_CONSOLE ~!FB_NVIDIA ~!FB_RIVA ~!FB_UVESA ~!FB_VGA16 ~I2C_ALGOBIT ~MXM_WMI ~VGA_ARB" + +pkg_setup() { + linux-mod_pkg_setup + if kernel_is lt 3 6; then + eerror "You need kernel 3.6 for this version of nouveau-drm" + die "Incompatible kernel version" + fi + elog "For newer kernels newer than 2.6.32 there is integrated nouveau DRM." + elog "Use that if you experience build issues." +} + +src_compile() { + set_arch_to_kernel + emake \ + LINUXDIR="${KERNEL_DIR}" \ + NOUVEAUROOTDIR="${PWD}" \ + -f "${FILESDIR}"/${PN}-20100212-Makefile \ + || die "Compiling kernel modules failed" +} + +src_install() { + insinto /lib/modules/${KV_FULL}/${PN} + doins drivers/gpu/drm/{*/,}*.ko || die "doins failed" +} -- cgit v1.2.3-65-gdbad