blob: 8db36bb7c93b8b3c83702f9783ea89e4c5b45433 [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
Klaus Heinrich Kiwi7c8cba32020-04-20 17:22:47 -030015if [ -z "${BR2_DL_DIR-}" ]; then export BR2_DL_DIR=${__PWD}/dl; fi
Patrick Williamse94080b2014-06-17 20:09:31 -050016
Dan HorĂ¡ke8dbeaf2019-12-19 16:06:56 +010017export LANG=en_US.UTF-8
18
KennethWilke369158a2016-03-03 15:00:37 -060019op-build () {
20 make --directory=${__PWD}/buildroot O=${__PWD}/output $@
21}