| echo "Using all the defconfigs for all the platforms" |
| DEFCONFIGS=`(cd openpower/configs; ls -1 *_defconfig)` |
| DEFCONFIGS+=($p$CONFIGTAG) |
| if [ -z "$1" or ! -d "$1" ]; then |
| echo "No output directory specified" |
| if [ -z "$CCACHE_DIR" ]; then |
| CCACHE_DIR=`pwd`/.op-build_ccache |
| for i in ${DEFCONFIGS[@]}; do |
| echo 'BR2_CCACHE=y' >> output/.config |
| echo "BR2_CCACHE_DIR=\"$CCACHE_DIR\"" >> output/.config |
| echo 'BR2_CCACHE_INITIAL_SETUP=""' >> output/.config |
| mv output/images/* $1/$i-images/ |
| mv output/.config $1/$i-images/.config |
| lsb_release -a > $1/$i-images/lsb_release |