summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Kunze <thommycheck@gmx.de>2008-07-31 23:18:29 +0000
committerThomas Kunze <thommycheck@gmx.de>2008-07-31 23:18:29 +0000
commit2468ff4de7ed55b204fd7ce700fddece2ace4fbd (patch)
treef7a56eee329dbb2341fdba0d756e6b9c693681c4
parentdd802fd2aa4238db6f39b760930660118f996392 (diff)
parenta931d98e8a8af3f71a69d88d2970fb47ea41bad3 (diff)
merge of '250b98d355e1a4b79caaec9ef041f42db95a2b7f'
and '597f2d2c1d1ea251c244da83e5677a24b328d3f4'
-rw-r--r--packages/linux/linux-rp.inc18
1 files changed, 18 insertions, 0 deletions
diff --git a/packages/linux/linux-rp.inc b/packages/linux/linux-rp.inc
index e6dee572f6..5d32113848 100644
--- a/packages/linux/linux-rp.inc
+++ b/packages/linux/linux-rp.inc
@@ -65,6 +65,24 @@ module_autoload_collie-ts_collie = "collie-ts"
module_autoload_leds-locomo_collie = "leds-locomo"
module_autoload_power_collie = "power"
+
+#package kernel cmdline
+PACKAGES_append += "kernel-cmdline"
+FILES_kernel-cmdline = "/boot/kernel-cmdline*"
+PKG_kernel-cmdline = "kernel-cmdline-${KERNEL_VERSION}"
+RRECOMMENDS_kernel-base += "kernel-cmdline"
+
+pkg_postinst_kernel-cmdline () {
+ cd /boot; update-alternatives --install /boot/kernel-cmdline kernel-cmdline kernel-cmdline-${KERNEL_VERSION} ${KERNEL_PRIORITY} || true
+}
+
+pkg_postrm_kernel-cmdline () {
+ cd /boot; update-alternatives --remove kernel-cmdline kernel-cmdline-${KERNEL_VERSION} || true
+}
+do_install_append () {
+ echo "${CMDLINE_CON} ${CMDLINE_MEM} ${CMDLINE_ROTATE} ${CMDLINE_OTHER} ${CMDLINE_DEBUG}"> "${D}/boot/kernel-cmdline-${KERNEL_VERSION}"
+}
+
do_configure() {
rm -f ${S}/.config