Ensure all layers do pass yocto-check-layer and run-yocto-check-layer.sh scripts
[AGL/meta-agl.git] / meta-netboot / scripts / 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/external/meta-openembedded/meta-oe \
36         $AGLROOT/external/meta-openembedded/meta-python \
37         $AGLROOT/external/meta-openembedded/meta-networking \
38         -- \
39         $AGLROOT/meta-agl/meta-netboot
40
41
42 [ $? = 0 ] && rm -rf ${TMPROOT}/testbuild-ycl
43
44 exit 0