#!/bin/bash
# Copyright (C) 2018 Luxoft Sweden AB
#
# Permission to use, copy, modify, and/or distribute this software for
# any purpose with or without fee is hereby granted, provided that the
# above copyright notice and this permission notice appear in all copies.
#
# THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
# WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
# WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR
# BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES
# OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
# WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
# ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
# SOFTWARE.
#
# For further information see LICENSE
#
# Usage: run-yocto-check-layer.sh <yoctodir>
#
# This checks yocto compatibility of the layer.
# This script depends on bitbake initialization and image built.
#


YOCTO_DIR="$1"


echo "Running yocto compatibility checks in $YOCTO_DIR"

# Set up bitbake environment
cd "$YOCTO_DIR/sources/poky/"
source oe-init-build-env ../../build


#Run the compatibility checks
yocto-check-layer $YOCTO_DIR/sources/meta-pelux $YOCTO_DIR/sources/meta-bistro

Add script to run yocto compatibility check
Add script to run yocto compatibility check

Signed-off-by: Tariq Ansari <dad672abc2e4079f76b3a3bd368bb45008914527@luxoft.com>
