[oe-commits] pieterg : dm7020/dm600pvr/dm500plus: support kernel-image updates
GIT User account
git at amethyst.openembedded.net
Fri Nov 14 06:27:07 UTC 2008
Module: openembedded.git
Branch: org.openembedded.dreambox
Commit: 2e19182ab9ee6c1fa3aa7e0f23796534ffef447b
URL: http://gitweb.openembedded.net/?p=openembedded.git&a=commit;h=2e19182ab9ee6c1fa3aa7e0f23796534ffef447b
Author: pieterg <pieterg at gmx.com>
Date: Thu Nov 13 15:52:29 2008 +0100
dm7020/dm600pvr/dm500plus: support kernel-image updates
---
packages/linux/linux-dm500plus.bb | 17 ++++++++++++++---
packages/linux/linux-dm600pvr.bb | 17 ++++++++++++++---
packages/linux/linux-dm7020.bb | 17 ++++++++++++++---
3 files changed, 42 insertions(+), 9 deletions(-)
diff --git a/packages/linux/linux-dm500plus.bb b/packages/linux/linux-dm500plus.bb
index e0b419a..9e3a058 100644
--- a/packages/linux/linux-dm500plus.bb
+++ b/packages/linux/linux-dm500plus.bb
@@ -1,7 +1,7 @@
DESCRIPTION = "Linux kernel for Dreambox DM500PLUS"
LICENSE = "GPL"
PV = "2.6.12"
-PR = "r1"
+PR = "r2"
# -rX is the patch revision - it's not related to this package's PR
SRC_URI = "ftp://ftp.kernel.org/pub/linux/kernel/v2.6/linux-2.6.12.tar.bz2 \
@@ -30,11 +30,22 @@ do_install_append () {
echo "/flash/zImage.elf" >> ${D}/boot/autoexec.bat
}
-pkg_postinst_kernel () {
+pkg_preinst_kernel-image () {
+ [ -d /proc/stb ] && mount -o rw,remount /boot
true
}
-pkg_postrm_kernel () {
+pkg_postinst_kernel-image () {
+ [ -d /proc/stb ] && mount -o ro,remount /boot
true
}
+pkg_prerm_kernel-image () {
+ [ -d /proc/stb ] && mount -o rw,remount /boot
+ true
+}
+
+pkg_postrm_kernel-image () {
+ [ -d /proc/stb ] && mount -o ro,remount /boot
+ true
+}
diff --git a/packages/linux/linux-dm600pvr.bb b/packages/linux/linux-dm600pvr.bb
index a308b20..39ff19c 100644
--- a/packages/linux/linux-dm600pvr.bb
+++ b/packages/linux/linux-dm600pvr.bb
@@ -1,7 +1,7 @@
DESCRIPTION = "Linux kernel for Dreambox DM7020"
LICENSE = "GPL"
PV = "2.6.12"
-PR = "r4"
+PR = "r5"
# -rX is the patch revision - it's not related to this package's PR
SRC_URI = "ftp://ftp.kernel.org/pub/linux/kernel/v2.6/linux-2.6.12.tar.bz2 \
@@ -30,11 +30,22 @@ do_install_append () {
echo "/flash/zImage.elf" >> ${D}/boot/autoexec.bat
}
-pkg_postinst_kernel () {
+pkg_preinst_kernel-image () {
+ [ -d /proc/stb ] && mount -o rw,remount /boot
true
}
-pkg_postrm_kernel () {
+pkg_postinst_kernel-image () {
+ [ -d /proc/stb ] && mount -o ro,remount /boot
true
}
+pkg_prerm_kernel-image () {
+ [ -d /proc/stb ] && mount -o rw,remount /boot
+ true
+}
+
+pkg_postrm_kernel-image () {
+ [ -d /proc/stb ] && mount -o ro,remount /boot
+ true
+}
diff --git a/packages/linux/linux-dm7020.bb b/packages/linux/linux-dm7020.bb
index 978da2a..1e158e1 100644
--- a/packages/linux/linux-dm7020.bb
+++ b/packages/linux/linux-dm7020.bb
@@ -1,7 +1,7 @@
DESCRIPTION = "Linux kernel for Dreambox DM7020"
LICENSE = "GPL"
PV = "2.6.9"
-PR = "r4"
+PR = "r5"
# -r1 is the patch revision - it's not related to this package's PR
SRC_URI = "ftp://ftp.kernel.org/pub/linux/kernel/v2.6/linux-2.6.9.tar.bz2 \
@@ -31,11 +31,22 @@ do_install_append () {
echo "/flash/zImage.elf" >> ${D}/boot/autoexec.bat
}
-pkg_postinst_kernel () {
+pkg_preinst_kernel-image () {
+ [ -d /proc/stb ] && mount -o rw,remount /boot
true
}
-pkg_postrm_kernel () {
+pkg_postinst_kernel-image () {
+ [ -d /proc/stb ] && mount -o ro,remount /boot
true
}
+pkg_prerm_kernel-image () {
+ [ -d /proc/stb ] && mount -o rw,remount /boot
+ true
+}
+
+pkg_postrm_kernel-image () {
+ [ -d /proc/stb ] && mount -o ro,remount /boot
+ true
+}
More information about the Openembedded-commits
mailing list