diff options
author | Stew Benedict <stewb@mandriva.org> | 2001-03-30 16:26:19 +0000 |
---|---|---|
committer | Stew Benedict <stewb@mandriva.org> | 2001-03-30 16:26:19 +0000 |
commit | d2c8c8655054e0be05b38fbdbfee11847204c46e (patch) | |
tree | 5295c00612a13179cb2d14cac41168693c889477 /make_boot_img | |
parent | 6329fe13171f5c39ea63c1e42020d854f7af199e (diff) | |
download | drakx-d2c8c8655054e0be05b38fbdbfee11847204c46e.tar drakx-d2c8c8655054e0be05b38fbdbfee11847204c46e.tar.gz drakx-d2c8c8655054e0be05b38fbdbfee11847204c46e.tar.bz2 drakx-d2c8c8655054e0be05b38fbdbfee11847204c46e.tar.xz drakx-d2c8c8655054e0be05b38fbdbfee11847204c46e.zip |
updated for PPC
Diffstat (limited to 'make_boot_img')
-rwxr-xr-x | make_boot_img | 17 |
1 files changed, 11 insertions, 6 deletions
diff --git a/make_boot_img b/make_boot_img index f18bed11b..5993ac0ce 100755 --- a/make_boot_img +++ b/make_boot_img @@ -53,7 +53,11 @@ if ($img =~ /rdz$/) { foreach (glob('all.kernels/*')) { $_ =~ 'cardmgr' and next; my ($kern) = $_ =~ /all.kernels\/([^\/]+)/; - _ "$sudo cp -f all.kernels/$kern/boot/vmlinuz* all.kernels/$kern/vmlinuz"; + if ($arch !~ /ppc/) { + _ "$sudo cp -f all.kernels/$kern/boot/vmlinuz* all.kernels/$kern/vmlinuz"; + } else { + _ "$sudo cp -f all.kernels/$kern/boot/vmlinux* all.kernels/$kern/vmlinux"; + } $::{"boot_img_$arch"}->($mnt, $img, "all.kernels/$kern/", "all.modules/$kern"); } } @@ -344,13 +348,14 @@ image=/vmlinux$I.gz } sub boot_img_ppc { - my ($mnt, $img) = @_; + my ($mnt, $img, $kern, $modz) = @_; my $dir = "/export"; - my $boot = "boot"; #- non-absolute pathname only! + my $boot = "boot"; #- non-absolute pathname only! + my ($extension) = $modz =~ /.*\/([^\/]+)/; _ "mkdir -p $dir/$boot"; - _ "cp -f vmlinux $dir/$boot/vmlinux"; - _ "cp -f all.rdz $dir/boot/all.gz"; - _ "cp -f tools/ppc/yaboot $dir/boot/yaboot"; + _ "cp -f $kern/vmlinux $dir/$boot/vmlinux"; + _ "cp -f all.rdz$extension $dir/boot/all.gz"; + _ "cp -f tools/ppc/yaboot $dir/boot/yaboot"; output("$dir/$boot/yaboot.conf", " init-message = \"\\nWelcome to Mandrake Linux PPC!\\nHit <TAB> for boot options.\\n\\n\" |