4 echo -e "Usage: source envsetup.sh <board/device> [build dir]"
9 echo "MACHINE=$MACHINE"
13 # setup proprietary gfx drivers and multimedia packages
14 COPY_MM_SCRIPT=meta-renesas/meta-rcar-gen2/scripts/setup_mm_packages.sh
15 if [ -f $COPY_MM_SCRIPT ]; then
19 echo "Copying gfx drivers and multimedia packages for '$1' failed."
24 if [ ! -d "$TEMPLATECONF" ]; then
25 # set template conf for R-Car2 M2 Porter board
26 TEMPLATECONF="$PWD/meta-renesas/meta-rcar-gen2/conf"
31 if [ ! -d "$TEMPLATECONF" ]; then
32 # set template conf for R-Car2 M2 Porter board
33 TEMPLATECONF="$PWD/meta-renesas/meta-rcar-gen2/conf"
39 # alias for minnowboardmax
40 MACHINE="intel-corei7-64"
49 # nickname for dra7xx-evm
56 echo "WARN: '$MACHINE' is not tested by AGL Distro"
60 echo "TEMPALTECONF=$TEMPLATECONF"
61 # set template conf for each <board/device>
62 if [ -z "$TEMPLATECONF" ]; then
63 # lookup meta-agl-demo first
64 if [ -d "$PWD/meta-agl-demo/templates/$MACHINE/conf" ]; then
65 TEMPLATECONF="$PWD/meta-agl-demo/templates/$MACHINE/conf"
67 elif [ -d "$PWD/meta-agl/templates/$MACHINE/conf" ]; then
68 TEMPLATECONF="$PWD/meta-agl/templates/$MACHINE/conf"
71 echo "TEMPLATECONF=$TEMPLATECONF"
73 echo "envsetup: Set '$1' as MACHINE."
77 if [ ! -d "$TEMPLATECONF" ]; then
78 # Allow to use templates at meta-agl-demo/conf
79 TEMPLATECONF="$PWD/meta-agl-demo/conf"
82 echo "envsetup: Using templates for local.conf & bblayers.conf from :"
83 echo " '$TEMPLATECONF'"
92 echo "envsetup: Setup build environment for poky/oe."
95 source poky/oe-init-build-env $BUILD_DIR
97 if [ -n "$DL_DIR" ]; then
98 BB_ENV_EXTRAWHITE="$BB_ENV_EXTRAWHITE DL_DIR"
101 if [ -n "$SSTATE_DIR" ]; then
102 BB_ENV_EXTRAWHITE="$BB_ENV_EXTRAWHITE SSTATE_DIR"
105 export BB_ENV_EXTRAWHITE