OpenSprinkler Forums OpenSprinkler Unified Firmware Yocto 5.1 (styhead) bitbake recipe

Tagged: 

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #83795

    DKL
    Spectator

    I have created a Yocto meta-opensprinkler layer to build the firmare. Is this of interest to anyone?

    One caveat: You must add this to your local.conf: PREFERRED_VERSION_libgpiod = “1.6.5”

    Add meta-opensprinkler to our bblayers.conf

    #83820

    DKL
    Spectator

    I forgot to upload the systemd service file earlier.

    Install this using a systemd_%.bbappend:

    FILESEXTRAPATHS:prepend := "${THISDIR}/${PN}:"
    
    SRC_URI:append = " \
        file://opensprinkler.service \
    "
    
    FILES:${PN}:append = " \
        ${systemd_unitdir}/system/opensprinkler.service \
    "
    
    do_install:append() {
        # Install opensprinkler
        install -m 0644 ${UNPACKDIR}/opensprinkler.service ${D}/${systemd_unitdir}/system
        ln --relative --symbolic ${D}${systemd_unitdir}/system/opensprinkler.service ${D}${systemd_unitdir}/system/multi-user.target.wants/opensprinkler.service
    }
    #83903

    DKL
    Spectator

    When I uploaded the Yocto files, I didn’t know that OpenSprinkler-Firmware creates a logs directory beneath the running directory and also at least 6 data files. So, /usr/bin isn’t the proper place to install OpenSprinkler. I’ve modified the meta-opensprinkler to install to /opt/OpenSprinkler.
    Attached are updated files.

    #83906

    DKL
    Spectator

    Can’t upload more than one attachment per posting.

    Here is meta-opensprinkler

    #83908

    DKL
    Spectator

    And here’s the systemd service file.

Viewing 5 posts - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.

OpenSprinkler Forums OpenSprinkler Unified Firmware Yocto 5.1 (styhead) bitbake recipe