Initial commit
This commit is contained in:
@@ -0,0 +1,35 @@
|
||||
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
|
||||
Reference in New Issue
Block a user