#!/bin/bash set -e test_fast() { PLATFORM="$1" make mrproper ../make.cross allmodconfig ARCH=$PLATFORM ../make.cross olddefconfig ARCH=$PLATFORM ../make.cross ARCH=$PLATFORM modules_prepare } test_compile() { PLATFORM="$1" make mrproper make defconfig ARCH=$PLATFORM echo "modules first" ../make.cross ARCH=$PLATFORM if [ "$PLATFORM" = "x86_64" ]; then ../make.cross bindeb-pkg ARCH=$PLATFORM fi echo "all yes second" perl -pi.bak -e 's/=m/=y/g' .config ../make.cross olddefconfig ARCH=$PLATFORM ../make.cross ARCH=$PLATFORM if [ "$PLATFORM" = "x86_64" ]; then ../make.cross bindeb-pkg ARCH=$PLATFORM fi } test_platform() { PLATFORM="$1" test_fast $PLATFORM # test_compile $PLATFORM } test_platform x86_64 test_platform i386 test_platform ia64 test_platform arm test_platform arm64 test_platform sh test_platform mips test_platform s390 test_platform openrisc test_platform sparc test_platform sparc64 test_platform m68k echo "X-compilation check PASS"