aboutsummaryrefslogtreecommitdiffstats
path: root/templates/feature/agl-hmi-framework/50_local.conf.inc
blob: d251e183da10f5a5a007e73a6a5550a0301da9ce (plain)
1
2
3
4
# In order to enable the hmi-framework features ,
# enables the following line:
#
DISTRO_FEATURES_append = " agl-hmi-framework"
defining lxc.start.auto. The default value is "0", so recipes # need to assign the variable to "1" to have the associated # container start automatically. python __anonymous() { bpn = d.getVar('BPN') if not bpn.startswith('lxc-config-'): bb.error('Recipe name does not start with \'lxc-config-\'') config = bpn[11:] d.setVar('LXC_CONFIG_NAME', config) src_uri = 'file://basic.in' \ + ' file://mount.in' \ + ' file://network.in' \ + ' file://environment.in' \ + ' file://misc.in' \ + ' file://system.conf.' + config + '.in' d.setVar('SRC_URI', src_uri) } S = "${WORKDIR}" inherit allarch DRM_LEASE_DEVICE ??= "card0-HDMI-A-1" DRM_LEASE_DEVICE:qemuall ?= "card0-Virtual-1" LXC_AUTO_START ??= "0" do_configure[noexec] = "1" do_compile[noexec] = "1" do_install () { rm -f ${WORKDIR}/config.${LXC_CONFIG_NAME}.in files="basic.in mount.in network.in environment.in misc.in" for f in ${files}; do cat ${WORKDIR}/$f >> ${WORKDIR}/config.${LXC_CONFIG_NAME}.in done install -m 0755 -d ${D}/var/lib/lxc/${LXC_CONFIG_NAME} for f in config.${LXC_CONFIG_NAME}.in system.conf.${LXC_CONFIG_NAME}.in; do sed -e 's|@DRM_LEASE_DEVICE@|${DRM_LEASE_DEVICE}|g' \ -e 's|@LXC_AUTO_START@|${LXC_AUTO_START}|g' \ ${WORKDIR}/$f > ${D}${localstatedir}/lib/lxc/${LXC_CONFIG_NAME}/${f%.${LXC_CONFIG_NAME}.in} done } FILES:${PN} = "${localstatedir}/lib/lxc/"