4 SCRIPTPATH="$( cd $(dirname $0) >/dev/null 2>&1 ; pwd -P )"
6 AGLROOT="$SCRIPTPATH/../../.."
7 POKYDIR="$AGLROOT/external/poky"
10 rm -rf ${TMPROOT}/testbuild-ycl || true
11 mkdir -p ${TMPROOT}/testbuild-ycl
12 cd ${TMPROOT}/testbuild-ycl
14 source $POKYDIR/oe-init-build-env .
16 cat << EOF >> conf/local.conf
17 # just define defaults
19 AGL_EXTRA_IMAGE_FSTYPES ?= ""
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
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"
33 yocto-check-layer --no-auto-dependency \
35 $AGLROOT/meta-agl/meta-agl-core \
36 $AGLROOT/external/meta-openembedded/meta-oe \
38 $AGLROOT/meta-agl/meta-app-framework
41 [ $? = 0 ] && rm -rf ${TMPROOT}/testbuild-ycl