DESCRIPTION = "Leahi manufacturing application" LICENSE = "CLOSED" # Leahi manufacturing repository including all needed binary and resources SRC_URI = "git://git@bitbucket.org/diality-cloud/leahi-manufacturing.git;protocol=ssh;branch=master" # always use the latest commit. SRCREV = "${AUTOREV}" # the cloned repo is located in the ${WORKDIR}/git S = "${WORKDIR}/git" # Optionally, you can specify a specific tag or branch to use # PV = "1.0+git${SRCPV}" # define the leahi service inherit systemd SYSTEMD_SERVICE:${PN} = "leahi.service" # TODO # 1 - get files from git repository do_install() { bbplain " ---------- Leahi: Install manufacturing" # build the required folders install -d ${D}/opt/leahi/manufacturing/ install -d ${D}/opt/leahi/manufacturing/scripts/ # installing the required files install -m 0644 ${S}/leahi ${D}/opt/leahi/manufacturing/ install -m 0644 ${S}/run.sh ${D}/opt/leahi/manufacturing/ install -m 0644 ${S}/eglfs.json ${D}/opt/leahi/eglfs.json install -m 0644 ${S}/scripts/*.sh ${D}/opt/leahi/manufacturing/scripts/ # give the execution permission to owner chmod 755 ${D}/opt/leahi/manufacturing/leahi chmod 755 ${D}/opt/leahi/manufacturing/run.sh chmod 755 ${D}/opt/leahi/manufacturing/scripts/*.sh # setting up the leahi service install -d ${D}${systemd_system_unitdir} install -m 644 ${WORKDIR}/leahi.service ${D}${systemd_system_unitdir} } FILES:${PN} += "/opt/leahi/*" RDEPENDS:${PN} += " \ qtbase \ qtconnectivity \ qtserialbus \ qtdeclarative \ qtquickcontrols \ "