1 |
commit: 4a0499ea2a49536f13e9f1a40c6571ec86e3f707 |
2 |
Author: Guy Martin <gmsoft <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Feb 5 10:40:02 2014 +0000 |
4 |
Commit: Brian Dolbec <brian.dolbec <AT> gmail <DOT> com> |
5 |
CommitDate: Mon Mar 24 16:07:07 2014 +0000 |
6 |
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/catalyst.git;a=commit;h=4a0499ea |
7 |
|
8 |
Make use of _kernelopts for hppa. |
9 |
|
10 |
Since hppa only support one command line for both 32 and 64bit kernel, |
11 |
we merge both kernelopts in the same line. |
12 |
This is useful for adding extra arguments like 'panic=30' directly in |
13 |
the spec file. |
14 |
Brian Dolbec: fix whitepace error. |
15 |
|
16 |
--- |
17 |
targets/support/bootloader-setup.sh | 9 ++++++++- |
18 |
1 file changed, 8 insertions(+), 1 deletion(-) |
19 |
|
20 |
diff --git a/targets/support/bootloader-setup.sh b/targets/support/bootloader-setup.sh |
21 |
index a0bc5f5..a9c9e53 100644 |
22 |
--- a/targets/support/bootloader-setup.sh |
23 |
+++ b/targets/support/bootloader-setup.sh |
24 |
@@ -47,7 +47,14 @@ case ${clst_hostarch} in |
25 |
# Make sure we strip the extension to the kernel to allow palo to choose |
26 |
boot_kernel_common_name=${first/%32/} |
27 |
boot_kernel_common_name=${boot_kernel_common_name/%64/} |
28 |
- echo "--commandline=0/${boot_kernel_common_name} initrd=${first}.igz root=/dev/ram0 init=/linuxrc cdroot ${cmdline_opts}" >> ${icfg} |
29 |
+ |
30 |
+ for x in ${clst_boot_kernel} |
31 |
+ do |
32 |
+ eval kopts=\$clst_boot_kernel_${x}_kernelopts |
33 |
+ my_kopts="${my_kopts} ${kopts}" |
34 |
+ done |
35 |
+ |
36 |
+ echo "--commandline=0/${boot_kernel_common_name} initrd=${first}.igz ${default_append_line} ${my_kopts}" >> ${icfg} |
37 |
echo "--bootloader=boot/iplboot" >> ${icfg} |
38 |
echo "--ramdisk=boot/${first}.igz" >> ${icfg} |
39 |
for x in ${clst_boot_kernel} |