#!/bin/bash set -e set -vx git clone --depth=1 -b powernv-2.12 git://github.com/legoater/qemu.git cd qemu git submodule update --init dtc export CC="ccache gcc" export CXX="ccache g++" ./configure --target-list=ppc64-softmmu --disable-werror make -j `grep -c processor /proc/cpuinfo`