summaryrefslogtreecommitdiff
path: root/target/image/x86
diff options
context:
space:
mode:
authorTim Yardley <lst@openwrt.org>2006-10-24 22:33:23 +0000
committerTim Yardley <lst@openwrt.org>2006-10-24 22:33:23 +0000
commit2f78952da8a9be5ca46dc3b705aa517072c9cec6 (patch)
tree69e93ce795f9d2d6cbf46861c259a66e6177342d /target/image/x86
parentc8e451be736221518f731226915d7f518aa79b66 (diff)
downloadmtk-20170518-2f78952da8a9be5ca46dc3b705aa517072c9cec6.zip
mtk-20170518-2f78952da8a9be5ca46dc3b705aa517072c9cec6.tar.gz
mtk-20170518-2f78952da8a9be5ca46dc3b705aa517072c9cec6.tar.bz2
code to bring in the following for x86: X86_GRUB_ROOTPART: configureable root partition for kernel options X86_GRUB_BOOTOPTS: configureable parameters to be added to the boot line
SVN-Revision: 5289
Diffstat (limited to 'target/image/x86')
-rw-r--r--target/image/x86/Config.in13
-rw-r--r--target/image/x86/Makefile2
2 files changed, 14 insertions, 1 deletions
diff --git a/target/image/x86/Config.in b/target/image/x86/Config.in
index 88d8d37..2c3e884 100644
--- a/target/image/x86/Config.in
+++ b/target/image/x86/Config.in
@@ -14,4 +14,17 @@ config X86_GRUB_KERNELPART
depends X86_GRUB_IMAGES
default 4
+config X86_GRUB_ROOTPART
+ string
+ prompt "Root partition on target device" if X86_GRUB_IMAGES
+ default "/dev/hda2"
+ help
+ The root partition on the final device. If you don't know,
+ you probably want the default (/dev/hda2).
+config X86_GRUB_BOOTOPTS
+ string
+ prompt "Extra kernel boot options" if X86_GRUB_IMAGES
+ default ""
+ help
+ If you don't know leave it blank
diff --git a/target/image/x86/Makefile b/target/image/x86/Makefile
index 0860245..8c0cde4 100644
--- a/target/image/x86/Makefile
+++ b/target/image/x86/Makefile
@@ -25,7 +25,7 @@ ifeq ($(CONFIG_X86_GRUB_IMAGES),y)
endef
define Image/cmdline/ext2
- root=/dev/hda2 rootfstype=ext2
+ root=$(CONFIG_X86_GRUB_ROOTPART) rootfstype=ext2 $(CONFIG_X86_GRUB_BOOTOPTS)
endef
define Image/Build/grub