3 source ${clst_shdir}/support/functions.sh
4 source ${clst_shdir}/support/filesystem-functions.sh
7 extract_kernels ${clst_target_path}boot
9 # Move kernel binaries to ${clst_target_path}kernels, and
10 # move everything else to ${clst_target_path}kernels/misc
11 mkdir ${clst_target_path}kernels
12 mkdir ${clst_target_path}kernels/misc
14 for x in ${clst_boot_kernel}; do
15 mv ${clst_target_path}boot/${x} ${clst_target_path}kernels
16 mv ${clst_target_path}boot/${x}.igz ${clst_target_path}kernels/misc
17 mv ${clst_target_path}boot/System.map* ${clst_target_path}kernels/misc/System.map-${x}
20 rmdir ${clst_target_path}boot
22 # Any post-processing necessary for each architecture can be done here. This
23 # may include things like sparc's elftoaout, x86's PXE boot, etc.
24 case ${clst_hostarch} in
32 # Only one kernel should be there
33 kname=${clst_boot_kernel[0]}
34 rm -f ${clst_target_path}/${kname}-hppa.lif
37 -k ${clst_target_path}/kernels/${kname} \
38 -r ${clst_target_path}/kernels/misc/${kname}.igz \
39 -s ${clst_target_path}/${kname}-hppa.lif \
41 -b /usr/share/palo/iplboot \
42 -c "0/vmlinux initrd=0/ramdisk root=/dev/ram0" \
47 if [ "${clst_subarch}" == "sparc" ]; then
52 for x in ${clst_boot_kernel}; do
53 elftoaout ${clst_target_path}/kernels/${x} -o ${clst_target_path}${x}-a.out
54 ${piggyback} ${clst_target_path}/${x}-a.out ${clst_target_path}kernels/misc/System.map-${x} ${clst_target_path}kernels/misc/${x}.igz