# Copyright 2002-2008 Gentoo Foundation; 2008 Chris Gianelloni, Andrew Gaffney
# Distributed under the GPL v2
+ 07 Dec 2008; Andrew Gaffney <agaffney@gentoo.org>
+ examples/netboot2_template.spec, targets/support/kmerge.sh:
+ Automatically append --netboot to GK_ARGS for netboot2 target Remove
+ explicit --initramfs-overlay=/tmp/image from netboot2 example spec
+
07 Dec 2008; Andrew Gaffney <agaffney@gentoo.org>
targets/support/pre-kmerge.sh:
Remove evil hacks that copy gk files around for netboot2
boot/kernel/ip30r10k/use: -doc ip30
boot/kernel/ip32r5k/use: -doc
-boot/kernel/ip22r4k/gk_kernargs: --kernel-cross-compile=mips-unknown-linux-gnu- --makeopts=-j2 --initramfs-overlay=/tmp/image
-boot/kernel/ip22r5k/gk_kernargs: --kernel-cross-compile=mips-unknown-linux-gnu- --makeopts=-j2 --initramfs-overlay=/tmp/image
-boot/kernel/ip27r10k/gk_kernargs: --kernel-cross-compile=mips64-unknown-linux-gnu- --makeopts=-j2 --initramfs-overlay=/tmp/image
-boot/kernel/ip28r10k/gk_kernargs: --kernel-cross-compile=mips64-unknown-linux-gnu- --makeopts=-j2 --initramfs-overlay=/tmp/image
-boot/kernel/ip30r10k/gk_kernargs: --kernel-cross-compile=mips64-unknown-linux-gnu- --makeopts=-j2 --initramfs-overlay=/tmp/image
-boot/kernel/ip32r5k/gk_kernargs: --kernel-cross-compile=mips64-unknown-linux-gnu- --makeopts=-j2 --initramfs-overlay=/tmp/image
+boot/kernel/ip22r4k/gk_kernargs: --kernel-cross-compile=mips-unknown-linux-gnu- --makeopts=-j2
+boot/kernel/ip22r5k/gk_kernargs: --kernel-cross-compile=mips-unknown-linux-gnu- --makeopts=-j2
+boot/kernel/ip27r10k/gk_kernargs: --kernel-cross-compile=mips64-unknown-linux-gnu- --makeopts=-j2
+boot/kernel/ip28r10k/gk_kernargs: --kernel-cross-compile=mips64-unknown-linux-gnu- --makeopts=-j2
+boot/kernel/ip30r10k/gk_kernargs: --kernel-cross-compile=mips64-unknown-linux-gnu- --makeopts=-j2
+boot/kernel/ip32r5k/gk_kernargs: --kernel-cross-compile=mips64-unknown-linux-gnu- --makeopts=-j2
netboot2/builddate: 20060107
netboot2/busybox_config: /usr/share/genkernel/mips/nb-busybox.cf
GK_ARGS="${GK_ARGS} --linuxrc=/tmp/linuxrc"
fi
- if [ "${clst_target}" == "netboot2" -a -n "${clst_merge_path}" ]
+ if [ "${clst_target}" == "netboot2" ]
then
- GK_ARGS="${GK_ARGS} --initramfs-overlay=\"${clst_merge_path}\""
+ GK_ARGS="${GK_ARGS} --netboot"
+
+ if [ -n "${clst_merge_path}" ]
+ then
+ GK_ARGS="${GK_ARGS} --initramfs-overlay=\"${clst_merge_path}\""
+ fi
fi
}