summaryrefslogtreecommitdiff
path: root/packages/progear
diff options
context:
space:
mode:
authorMarcin Juszkiewicz <hrw@openembedded.org>2007-01-06 08:47:34 +0000
committerMarcin Juszkiewicz <hrw@openembedded.org>2007-01-06 08:47:34 +0000
commit8e3eb306b9d9cecbc666fd8008d15c749fc12e38 (patch)
tree3bdb388a6d74777f5def0c1ec3cf3748ac109599 /packages/progear
parentf2a8bfcef647a757bdc86cdff43888714d3f3b0d (diff)
progear: added modules for AC detection and Battery status
Diffstat (limited to 'packages/progear')
-rw-r--r--packages/progear/.mtn2git_empty0
-rw-r--r--packages/progear/progear-ac/.mtn2git_empty0
-rw-r--r--packages/progear/progear-ac/paths.patch20
-rw-r--r--packages/progear/progear-ac_0.1.bb3
-rw-r--r--packages/progear/progear-battery/.mtn2git_empty0
-rw-r--r--packages/progear/progear-battery/kernel-update.patch13
-rw-r--r--packages/progear/progear-battery/paths.patch20
-rw-r--r--packages/progear/progear-battery_0.3.bb5
-rw-r--r--packages/progear/progear.inc19
9 files changed, 80 insertions, 0 deletions
diff --git a/packages/progear/.mtn2git_empty b/packages/progear/.mtn2git_empty
new file mode 100644
index 0000000000..e69de29bb2
--- /dev/null
+++ b/packages/progear/.mtn2git_empty
diff --git a/packages/progear/progear-ac/.mtn2git_empty b/packages/progear/progear-ac/.mtn2git_empty
new file mode 100644
index 0000000000..e69de29bb2
--- /dev/null
+++ b/packages/progear/progear-ac/.mtn2git_empty
diff --git a/packages/progear/progear-ac/paths.patch b/packages/progear/progear-ac/paths.patch
new file mode 100644
index 0000000000..f5ccfbae0d
--- /dev/null
+++ b/packages/progear/progear-ac/paths.patch
@@ -0,0 +1,20 @@
+Index: progear-ac-0.1/Makefile
+===================================================================
+--- progear-ac-0.1.orig/Makefile 2007-01-04 21:58:28.000000000 +0100
++++ progear-ac-0.1/Makefile 2007-01-04 21:58:39.000000000 +0100
+@@ -2,12 +2,12 @@
+ KERNELDIR := /lib/modules/$(shell uname -r)
+
+ all :
+- $(MAKE) -C $(KERNELDIR)/build M=$(PWD) modules
++ $(MAKE) -C $(KERNELDIR) M=$(PWD) modules
+
+ clean :
+- $(MAKE) -C $(KERNELDIR)/build M=$(PWD) clean
++ $(MAKE) -C $(KERNELDIR) M=$(PWD) clean
+
+ install :
+- $(MAKE) INSTALL_MOD_DIR=kernel/drivers/acpi -C $(KERNELDIR)/build M=$(PWD) modules_install
++ $(MAKE) INSTALL_MOD_DIR=kernel/drivers/acpi -C $(KERNELDIR) M=$(PWD) modules_install
+ depmod -a
+
diff --git a/packages/progear/progear-ac_0.1.bb b/packages/progear/progear-ac_0.1.bb
new file mode 100644
index 0000000000..8a2c608746
--- /dev/null
+++ b/packages/progear/progear-ac_0.1.bb
@@ -0,0 +1,3 @@
+require progear.inc
+
+DESCRIPTION += "AC detection support"
diff --git a/packages/progear/progear-battery/.mtn2git_empty b/packages/progear/progear-battery/.mtn2git_empty
new file mode 100644
index 0000000000..e69de29bb2
--- /dev/null
+++ b/packages/progear/progear-battery/.mtn2git_empty
diff --git a/packages/progear/progear-battery/kernel-update.patch b/packages/progear/progear-battery/kernel-update.patch
new file mode 100644
index 0000000000..89e83aa6ef
--- /dev/null
+++ b/packages/progear/progear-battery/kernel-update.patch
@@ -0,0 +1,13 @@
+Index: progear-battery-0.3/progear-sbs.c
+===================================================================
+--- progear-battery-0.3.orig/progear-sbs.c 2007-01-04 22:11:19.000000000 +0100
++++ progear-battery-0.3/progear-sbs.c 2007-01-04 22:11:30.000000000 +0100
+@@ -129,8 +129,6 @@
+
+ static struct i2c_driver sbs_driver =
+ {
+- .name ="Progear ACPI-SBS Interface",
+- .flags =I2C_DF_NOTIFY,
+ .attach_adapter =&sbs_attach_adapter,
+ .detach_client =&sbs_detach_client
+ };
diff --git a/packages/progear/progear-battery/paths.patch b/packages/progear/progear-battery/paths.patch
new file mode 100644
index 0000000000..850db7fbab
--- /dev/null
+++ b/packages/progear/progear-battery/paths.patch
@@ -0,0 +1,20 @@
+Index: progear-battery-0.3/Makefile
+===================================================================
+--- progear-battery-0.3.orig/Makefile 2007-01-04 22:10:23.000000000 +0100
++++ progear-battery-0.3/Makefile 2007-01-04 22:10:31.000000000 +0100
+@@ -2,12 +2,12 @@
+ KERNELDIR := /lib/modules/$(shell uname -r)
+
+ all :
+- $(MAKE) -C $(KERNELDIR)/build M=$(PWD) modules
++ $(MAKE) -C $(KERNELDIR) M=$(PWD) modules
+
+ clean :
+- $(MAKE) -C $(KERNELDIR)/build M=$(PWD) clean
++ $(MAKE) -C $(KERNELDIR) M=$(PWD) clean
+
+ install :
+- $(MAKE) INSTALL_MOD_DIR=kernel/drivers/acpi -C $(KERNELDIR)/build M=$(PWD) modules_install
++ $(MAKE) INSTALL_MOD_DIR=kernel/drivers/acpi -C $(KERNELDIR) M=$(PWD) modules_install
+ depmod -a
+
diff --git a/packages/progear/progear-battery_0.3.bb b/packages/progear/progear-battery_0.3.bb
new file mode 100644
index 0000000000..65d682e43c
--- /dev/null
+++ b/packages/progear/progear-battery_0.3.bb
@@ -0,0 +1,5 @@
+require progear.inc
+
+DESCRIPTION += "Battery support"
+
+SRC_URI += "file://kernel-update.patch;patch=1"
diff --git a/packages/progear/progear.inc b/packages/progear/progear.inc
new file mode 100644
index 0000000000..2dbfcdafbe
--- /dev/null
+++ b/packages/progear/progear.inc
@@ -0,0 +1,19 @@
+DESCRIPTION = "Progear support module:"
+LICENSE = "GPL"
+SECTION = "kernel/modules"
+HOMEPAGE = "http://spe.midco.net/mschacht/LinuxOnProgear/"
+AUTHOR = "Mike Schacht <mschacht at alumni dot washington dot edu>"
+
+COMPATIBLE_MACHINE = "progear"
+
+SRC_URI = "${SOURCEFORGE_MIRROR}/progear/${PN}-${PV}.tar.gz \
+ file://paths.patch;patch=1"
+
+inherit module
+
+EXTRA_OEMAKE += "KERNELDIR=${STAGING_KERNEL_DIR}"
+
+do_install() {
+ install -d ${D}${base_libdir}/modules/${KERNEL_VERSION}/progear/
+ install -m 0644 *${KERNEL_OBJECT_SUFFIX} ${D}${base_libdir}/modules/${KERNEL_VERSION}/progear/
+}