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"
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"
50 echo "WARN: '$MACHINE' is not tested by AGL Distro"
54 # set template conf for each <board/device>
55 if [ -z "$TEMPLATECONF" ]; then
56 if [ -d "$PWD/meta-agl-demo/templates/$MACHINE/conf" ]; then
57 TEMPLATECONF="$PWD/meta-agl-demo/templates/$MACHINE/conf"
61 echo "envsetup: Set '$1 as MACHINE."
65 if [ ! -d "$TEMPLATECONF" ]; then
66 # Allow to use templates at meta-agl-demo/conf
67 TEMPLATECONF="$PWD/meta-agl-demo/conf"
70 echo "envsetup: Using templates for local.conf & bblayers.conf from :"
71 echo " '$TEMPLATECONF'"
80 if [ -n "$DL_DIR" ]; then
81 BB_ENV_EXTRAWHITE="$BB_ENV_EXTRAWHITE DL_DIR"
84 if [ -n "$SSTATE_DIR" ]; then
85 BB_ENV_EXTRAWHITE="$BB_ENV_EXTRAWHITE SSTATE_DIR"
88 export BB_ENV_EXTRAWHITE
90 echo "envsetup: Setup build environment for poky/oe."
93 source poky/oe-init-build-env $BUILD_DIR