3 source ${clst_sharedir}/targets/support/functions.sh
4 source ${clst_sharedir}/targets/support/filesystem-functions.sh
8 echo ">>> Building packages ..."
13 ${clst_sharedir}/targets/${clst_target}/${clst_target}-pkg.sh
17 # Sets up the build environment before any kernels are compiled
18 exec_in_chroot ${clst_sharedir}/targets/support/pre-kmerge.sh
22 # Cleans up the build environment after the kernels are compiled
23 exec_in_chroot ${clst_sharedir}/targets/support/post-kmerge.sh
28 export clst_kname="$1"
30 # if we have our own linuxrc, copy it in
31 if [ -n "${clst_linuxrc}" ]
33 cp -pPR ${clst_linuxrc} ${clst_chroot_path}/tmp/linuxrc
35 if [ -n "${clst_busybox_config}" ]
37 cp ${clst_busybox_config} ${clst_chroot_path}/tmp/busy-config
40 exec_in_chroot ${clst_sharedir}/targets/support/kmerge.sh
42 delete_from_chroot tmp/linuxrc
43 delete_from_chroot tmp/busy-config
45 extract_modules ${clst_chroot_path} ${clst_kname}
46 #16:12 <@solar> kernel_name=foo
47 #16:13 <@solar> eval clst_boot_kernel_${kernel_name}_config=bar
48 #16:13 <@solar> eval echo \$clst_boot_kernel_${kernel_name}_config
52 # Creates the base initramfs image for the netboot
53 echo -e ">>> Preparing Image ..."
56 # Copy remaining files over to the initramfs target
59 ${clst_sharedir}/targets/${clst_target}/${clst_target}-copyfile.sh
63 # For each arch, fetch the kernel images and put them in builds/
64 echo -e ">>> Copying completed kernels to ${clst_target_path} ..."
65 ${clst_sharedir}/targets/support/netboot2-final.sh