LICENSE = "CLOSED" SUMMARY = "Luxshare eeprom" inherit meson systemd pkgconfig require ${BPN}.inc SRC_URI += " \ file://overlap.py \ file://eeprom.json \ " DEPENDS = " \ sdbusplus \ nlohmann-json \ ${PYTHON_PN}-native \ " RDEPENDS:${PN} += "bash" SYSTEMD_SERVICE:${PN} = "eeprom-manager.service" do_install:append() { install -d ${D}/usr/share/luxshare-eeprom install -m 0644 ${WORKDIR}/eeprom.json ${D}/usr/share/luxshare-eeprom } # add a new task to check if the eeprom is valid # after do_install do_check_eeprom() { python3 ${WORKDIR}/overlap.py ${D}/usr/share/luxshare-eeprom/eeprom.json } addtask check_eeprom after do_install before do_package