>From 516cd1c78db2dbdbefb1ae7feba2ca5b639c2f0b Mon Sep 17 00:00:00 2001
From: Stefan Bader <stefan.bader@canonical.com>
Date: Tue, 21 Apr 2009 16:58:00 +0200
Subject: [PATCH] UBUNTU: Add lenovo-sl-laptop in backport package

Bug: #351586

Make lenovo-sl-laptop as one of backport module

Signed-off-by: Ike Panhc <ike.pan@canonical.com>
Signed-off-by: Stefan Bader <stefan.bader@canonical.com>
Acked-by: Stefan Bader <stefan.bader@canonical.com>
Acked-by: Amit Kucheria <amit.kucheria@canonical.com>
---
 debian/config/amd64               |    1 +
 debian/config/i386                |    1 +
 updates/Makefile                  |    1 +
 updates/lenovo-sl-laptop/Makefile |   12 ++----------
 4 files changed, 5 insertions(+), 10 deletions(-)

diff --git a/debian/config/amd64 b/debian/config/amd64
index 6a167e8..83c721a 100644
--- a/debian/config/amd64
+++ b/debian/config/amd64
@@ -1,2 +1,3 @@
 # Ubuntu config
+CONFIG_LENOVO_SL_LAPTOP=m
 
diff --git a/debian/config/i386 b/debian/config/i386
index 6a167e8..83c721a 100644
--- a/debian/config/i386
+++ b/debian/config/i386
@@ -1,2 +1,3 @@
 # Ubuntu config
+CONFIG_LENOVO_SL_LAPTOP=m
 
diff --git a/updates/Makefile b/updates/Makefile
index 7bcbf7f..b3284bf 100644
--- a/updates/Makefile
+++ b/updates/Makefile
@@ -4,3 +4,4 @@
 
 include $(src)/.config
 
+obj-$(CONFIG_LENOVO_SL_LAPTOP)	+= lenovo-sl-laptop/
diff --git a/updates/lenovo-sl-laptop/Makefile b/updates/lenovo-sl-laptop/Makefile
index 921acb1..6d84c19 100644
--- a/updates/lenovo-sl-laptop/Makefile
+++ b/updates/lenovo-sl-laptop/Makefile
@@ -1,11 +1,3 @@
-obj-m := lenovo-sl-laptop.o
-KVERSION = $(shell uname -r)
+include $(src)/../.config
 
-all:
-	$(MAKE) -C /lib/modules/$(KVERSION)/build M=$(PWD) modules
-
-clean:
-	$(MAKE) -C /lib/modules/$(KVERSION)/build M=$(PWD) clean
-
-module:
-	$(MAKE) -C /usr/src/linux M=$(PWD) modules
+obj-$(CONFIG_LENOVO_SL_LAPTOP) += lenovo-sl-laptop.o
-- 
1.5.4.3

