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"
43 # alias for minnowboardmax
44 MACHINE="intel-corei7-64"
53 # nickname for dra7xx-evm
60 echo "WARN: '$MACHINE' is not tested by AGL Distro"
64 echo "TEMPALTECONF=$TEMPLATECONF"
65 # set template conf for each <board/device>
66 if [ -z "$TEMPLATECONF" ]; then
67 # lookup meta-agl-demo first
68 if [ -d "$PWD/meta-agl-demo/templates/$MACHINE/conf" ]; then
69 TEMPLATECONF="$PWD/meta-agl-demo/templates/$MACHINE/conf"
71 elif [ -d "$PWD/meta-agl/templates/$MACHINE/conf" ]; then
72 TEMPLATECONF="$PWD/meta-agl/templates/$MACHINE/conf"
75 echo "TEMPLATECONF=$TEMPLATECONF"
77 echo "envsetup: Set '$1' as MACHINE."
81 if [ ! -d "$TEMPLATECONF" ]; then
82 # Allow to use templates at meta-agl-demo/conf
83 TEMPLATECONF="$PWD/meta-agl-demo/conf"
86 echo "envsetup: Using templates for local.conf & bblayers.conf from :"
87 echo " '$TEMPLATECONF'"
96 echo "envsetup: Setup build environment for poky/oe."
99 source poky/oe-init-build-env $BUILD_DIR
101 if [ -n "$DL_DIR" ]; then
102 BB_ENV_EXTRAWHITE="$BB_ENV_EXTRAWHITE DL_DIR"
105 if [ -n "$SSTATE_DIR" ]; then
106 BB_ENV_EXTRAWHITE="$BB_ENV_EXTRAWHITE SSTATE_DIR"
109 export BB_ENV_EXTRAWHITE