| Patrick Williams | e94080b | 2014-06-17 20:09:31 -0500 | [diff] [blame] | 1 | #!/bin/bash | 
|  | 2 | __PWD=`pwd` | 
|  | 3 |  | 
| Stephen Cprek | e7254c7 | 2015-02-19 14:33:38 -0600 | [diff] [blame] | 4 | if [ -e ./customrc ]; then | 
|  | 5 | source ./customrc | 
|  | 6 | fi | 
|  | 7 |  | 
| Joel Stanley | 345c74d | 2017-02-13 11:31:50 +1030 | [diff] [blame] | 8 | if [ ! -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 | 
|  | 12 | fi | 
|  | 13 |  | 
| Patrick Williams | e94080b | 2014-06-17 20:09:31 -0500 | [diff] [blame] | 14 | export BR2_EXTERNAL=${__PWD}/openpower | 
| Klaus Heinrich Kiwi | 7c8cba3 | 2020-04-20 17:22:47 -0300 | [diff] [blame] | 15 | if [ -z "${BR2_DL_DIR-}" ]; then export BR2_DL_DIR=${__PWD}/dl; fi | 
| Patrick Williams | e94080b | 2014-06-17 20:09:31 -0500 | [diff] [blame] | 16 |  | 
| Dan HorĂ¡k | e8dbeaf | 2019-12-19 16:06:56 +0100 | [diff] [blame] | 17 | export LANG=en_US.UTF-8 | 
|  | 18 |  | 
| KennethWilke | 369158a | 2016-03-03 15:00:37 -0600 | [diff] [blame] | 19 | op-build () { | 
|  | 20 | make --directory=${__PWD}/buildroot O=${__PWD}/output $@ | 
|  | 21 | } |