blob: e6ca40eff36f450590843c0651c3c4b97ea4ac43 [file] [log] [blame]
Patrick Williamse94080b2014-06-17 20:09:31 -05001#!/bin/bash
2__PWD=`pwd`
3
Stephen Cpreke7254c72015-02-19 14:33:38 -06004if [ -e ./customrc ]; then
5 source ./customrc
6fi
7
Joel Stanley345c74d2017-02-13 11:31:50 +10308if [ ! -e buildroot/Makefile ]; then
9 echo "Please make sure you've checked out the buildroot submodule"
10 echo " git submodule init && git submodule update"
11 return -1
12fi
13
Patrick Williamse94080b2014-06-17 20:09:31 -050014export BR2_EXTERNAL=${__PWD}/openpower
15export BR2_DL_DIR=${__PWD}/dl
16
KennethWilke369158a2016-03-03 15:00:37 -060017op-build () {
18 make --directory=${__PWD}/buildroot O=${__PWD}/output $@
19}