summaryrefslogtreecommitdiffstats
path: root/op-build-env
blob: e6ca40eff36f450590843c0651c3c4b97ea4ac43 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/bin/bash
__PWD=`pwd`

if [ -e ./customrc ]; then
    source ./customrc
fi

if [ ! -e buildroot/Makefile ]; then
	echo "Please make sure you've checked out the buildroot submodule"
	echo "  git submodule init && git submodule update"
	return -1
fi

export BR2_EXTERNAL=${__PWD}/openpower
export BR2_DL_DIR=${__PWD}/dl

op-build () {
    make --directory=${__PWD}/buildroot O=${__PWD}/output $@
}
OpenPOWER on IntegriCloud