revision_qemu=$REVISION_QEMU \
revision_qemuu=$REVISION_QEMU_UPSTREAM
- case "$arch" in
- armhf) continue;; # don't do any kernel builds
- esac
-
./cs-job-create $flight build-$arch-pvops build-kern \
arch=$arch kconfighow=xen-enable-xen-config \
tree_xen=$TREE_XEN \
tree_linuxfirmware=$TREE_LINUXFIRMWARE \
revision_linuxfirmware=$REVISION_LINUXFIRMWARE
+ case "$arch" in
+ armhf) continue;; # don't do any other kernel builds
+ esac
+
if [ "x$REVISION_LINUX_OLD" != xdisable ]; then
./cs-job-create $flight build-$arch-oldkern build \
my $makeflags= get_host_property($ho, 'build make flags', '-j4');
+my $archparms = {
+ 'armhf' => { DefConfig => 'multi_v7_defconfig', KernelImage => 'arch/arm/boot/zImage' },
+ 'i386' => { DefConfig => 'defconfig', KernelImage => 'arch/x86/boot/bzImage' },
+ 'amd64' => { DefConfig => 'defconfig', KernelImage => 'arch/x86/boot/bzImage' }
+};
+
sub checkout () {
target_cmd($ho, "rm -rf $builddir && mkdir $builddir", 600);
ed <$edscript enable-xen-config
chmod +x enable-xen-config
cd linux
- make defconfig
+ make $archparms->{ $r{arch} }->{DefConfig}
+ # ARM defconfig omits modules for some reason...
+ sed -e "s/^# CONFIG_MODULES is not set\$/CONFIG_MODULES=y/g" -i .config
../enable-xen-config .config
yes '' | make oldconfig
END
sub kinstall () {
my $kernfile= $r{kimagefile};
- $kernfile= 'arch/x86/boot/bzImage' if !defined $kernfile;
+ $kernfile= $archparms->{$r{arch}}->{KernelImage} if !defined $kernfile;
target_cmd_build($ho, 300, $builddir, <<END);
mkdir -p dist/boot dist/lib/modules