cbe35ed8dd71ebc45c9c569a41944d1e1834534b
[AGL/meta-agl.git] / run-yocto-check-layer.sh
1 #!/bin/bash
2 #set -x
3
4 SCRIPTPATH="$( cd $(dirname $0) >/dev/null 2>&1 ; pwd -P )"
5 echo $SCRIPTPATH
6 AGLROOT="$SCRIPTPATH/../../.."
7 POKYDIR="$AGLROOT/external/poky"
8 TMPROOT=`mktemp -d`
9
10 rm -rf ${TMPROOT}/testbuild-ycl || true
11 mkdir -p ${TMPROOT}/testbuild-ycl
12 cd ${TMPROOT}/testbuild-ycl
13
14 source $POKYDIR/oe-init-build-env .
15
16 cat << EOF >> conf/local.conf
17 # just define defaults
18 AGL_FEATURES ?= ""
19 AGL_EXTRA_IMAGE_FSTYPES ?= ""
20
21 # important settings imported from poky-agl.conf
22 # we cannot import the distro config right away
23 # as the initial values are poky only till the layer
24 # is added in
25
26 AGL_DEFAULT_DISTRO_FEATURES := "usrmerge largefile opengl wayland pam bluetooth bluez5 3g polkit"
27 DISTRO_FEATURES:append := " systemd wayland pam \${AGL_DEFAULT_DISTRO_FEATURES}"
28 DISTRO_FEATURES_BACKFILL_CONSIDERED:append = " sysvinit"
29 VIRTUAL-RUNTIME_init_manager = "systemd"
30
31 EOF
32
33 yocto-check-layer --no-auto-dependency \
34         --dependency \
35         $AGLROOT/meta-agl/meta-agl-core \
36         $AGLROOT/external/meta-openembedded/meta-oe \
37         -- \
38         $AGLROOT/meta-agl/meta-app-framework
39
40
41 [ $? = 0 ] && rm -rf ${TMPROOT}/testbuild-ycl
42
43 exit 0