summaryrefslogtreecommitdiff
path: root/packages
diff options
context:
space:
mode:
authorThomas Kunze <thommycheck@gmx.de>2008-07-31 23:16:03 +0000
committerThomas Kunze <thommycheck@gmx.de>2008-07-31 23:16:03 +0000
commita931d98e8a8af3f71a69d88d2970fb47ea41bad3 (patch)
treebc912902046904fd5ec0e81ca47db3f0c10ad88b /packages
parent179a14265794ca9f3883264dfe466db9ce4ebabe (diff)
linux-rp.inc: package command line for a kernel
Diffstat (limited to 'packages')
-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