4 echo -e "Usage: source envsetup.sh <board/device> [build dir]"
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"
32 # alias for minnowboardmax
33 MACHINE="intel-corei7-64"
43 echo "WARN: '$MACHINE' is not tested by AGL Distro"
47 # set template conf for each <board/device>
48 if [ -z "$TEMPLATECONF" ]; then
49 if [ -d "$PWD/meta-agl-demo/templates/$MACHINE/conf" ]; then
50 TEMPLATECONF="$PWD/meta-agl-demo/templates/$MACHINE/conf"
54 echo "envsetup: Set '$1 as MACHINE."
58 if [ ! -d "$TEMPLATECONF" ]; then
59 # Allow to use templates at meta-agl-demo/conf
60 TEMPLATECONF="$PWD/meta-agl-demo/conf"
63 echo "envsetup: Using templates for local.conf & bblayers.conf from :"
64 echo " '$TEMPLATECONF'"
73 if [ -n "$DL_DIR" ]; then
74 BB_ENV_EXTRAWHITE="$BB_ENV_EXTRAWHITE DL_DIR"
77 if [ -n "$SSTATE_DIR" ]; then
78 BB_ENV_EXTRAWHITE="$BB_ENV_EXTRAWHITE SSTATE_DIR"
81 export BB_ENV_EXTRAWHITE
83 echo "envsetup: Setup build environment for poky/oe."
86 source poky/oe-init-build-env $BUILD_DIR