LogoopenSUSE Build Service > Projects
Sign Up | Log In

View File 0007-makefile-Add-a-makefile-for-the-oot-build.patch of Package drm (Project home:tiwai:bnc1050256)

From 0980e47f2aa6d3b1a7fa013bd8bafdbf4dfa366c Mon Sep 17 00:00:00 2001
From: Patrik Jakobsson <patrik.r.jakobsson@gmail.com>
Date: Wed, 29 Mar 2017 11:53:02 +0200
Subject: [PATCH 07/12] makefile: Add a makefile for the oot build

Signed-off-by: Patrik Jakobsson <pjakobsson@suse.de>
---
 Makefile | 11 +++++++++++
 1 file changed, 11 insertions(+)
 create mode 100644 Makefile

diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..5604262
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,11 @@
+ifneq ($(KERNELRELEASE),)
+	obj-m  += drivers/gpu/drm/
+else
+	KDIR ?= /lib/modules/`uname -r`/build
+
+default:
+	$(MAKE) -C $(KDIR) M=$$PWD
+
+clean:
+	$(MAKE) -C $(KDIR) M=$$PWD clean
+endif
-- 
2.12.0