Entire recipe is:

FILESEXTRAPATHS_prepend := "${THISDIR}/files:"
DESCRIPTION = "Wirepas gateway transport service that connects the local
dbus to a remote MQTT broker"
LICENSE = "Apache-2.0"
LIC_FILES_CHKSUM = "file://LICENSE;md5=cb6bb17b0d0cca188339074207e9f4d8"

SRC_URI = "file://wirepasTransport.service \
           file://settings.yml \
"

PYPI_PACKAGE = "wirepas_gateway"
PV = "1.4.3"
inherit pypi pkgconfig setuptools3

SRC_URI[md5sum] = "941a4407513445c64f16b57a1474fc43"

DEPENDS += "systemd python3 python3-pkgconfig-native python3-pip"

SYSTEMD_SERVICE_${PN} = "wirepasTransport.service"
SYSTEMD_AUTO_ENABLE_${PN} = "enable"

do_install() {
      install -m 0755 -d ${D}${sysconfdir}/systemd/system
      install -m 0755 ${WORKDIR}/wirepasTransport.service
${D}${sysconfdir}/systemd/system

      install -m 0755 -d ${D}/usr/share
      install -m 0644 ${WORKDIR}/settings.yml ${D}/usr/share

#      install -m 0755 -d ${D}/usr/share/wirepas_gateway
#      install -m 0644 ${WORKDIR}/wirepas_gateway-1.4.3
${D}/usr/share/wirepas_gateway
}

FILES_${PN} += "usr/share/wirepas_gateway"
#FILES_${PN} += "/usr/share/wirepas_gateway/wirepas_gateway-1.4.3"
FILES_${PN} += "${sysconfdir}/systemd/system/wirepasTransport.service"
FILES_${PN} += "/usr/share/settings.yml"

Error was basically because of commented code wherein I was trying to
export the entire directory. I have commented out that for now.. I found
that by creating rpm or opkg package we can export the package to target.
Need help around that, if that is the correct way and how to use this
method in yocto recipe. If not, what can be the other way using which we
can ship or install the package in target.

On Thu, Mar 21, 2024 at 1:26 PM Alexander Kanavin <[email protected]>
wrote:

> Please share your complete recipe and all of the error message, otherwise
> it’s impossible to tell what is happening.
>
> Alex
>
> On Thu 21. Mar 2024 at 8.29, Ashu Joshi <[email protected]> wrote:
>
>> Hello,
>> I am trying to install wirpas_gateway package from pypi using yocto
>> recipe.. Once service is build completely and  I flash image to target, i
>> don't see any of the installed packages. Does anyone has nay reference how
>> to install these packages in target as well. I dont see any generated
>> binary which i can ship tp target. However, source code of the package can
>> be seen in work directory. Currently I am trying to do something like below:
>>
>> do_install() {
>>       install -m 0755 -d ${D}${sysconfdir}/systemd/system
>>       install -m 0755 ${WORKDIR}/wirepasTransport.service
>> ${D}${sysconfdir}/systemd/system
>>
>>       install -m 0755 -d ${D}/usr/share
>>       install -m 0644 ${WORKDIR}/settings.yml ${D}/usr/share
>>
>>       install -m 0755 -d ${D}/usr/share/wirepas_gateway
>>       install -m 0644 ${WORKDIR}/wirepas_gateway-1.4.3
>> ${D}/usr/share/wirepas_gateway
>> }
>>
>> FILES_${PN} += "usr/share/wirepas_gateway"
>> FILES_${PN} += "/usr/share/wirepas_gateway/wirepas_gateway-1.4.3"
>> FILES_${PN} += "${sysconfdir}/systemd/system/wirepasTransport.service"
>> FILES_${PN} += "/usr/share/settings.yml"
>>
>> wirepas_gateway-1.4.3 is directory which contains setup and other files.
>> Getting error while trying to ship this to target.
>>
>>
>> 
>>
>>
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#62811): https://lists.yoctoproject.org/g/yocto/message/62811
Mute This Topic: https://lists.yoctoproject.org/mt/105061124/21656
Group Owner: [email protected]
Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub 
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to