meta-netmodule-bsp/recipes-core/board-descriptor/board-descriptor.bb

44 lines
1.0 KiB
BlitzBasic

SUMMARY = "Boarddescriptor Tool"
DESCRIPTION = "Read and write from/to the boarddescriptor"
AUTHOR = "Stefan Eichenberger (stefan.eichenberger@netmodule.com)"
FILESEXTRAPATHS:prepend := "${THISDIR}/${PN}/${MACHINE}:"
SECTION = "core"
LICENSE = "GPL-2.0-only"
include ${LAYERSERIES_CORENAMES}/licenses.inc
LIC_FILES_CHKSUM ?= "file://${COMMON_LICENSE_DIR}/GPL-2.0-only;md5=801f80980d171dd6425610833a22dbe6"
PR = "r0"
inherit python3-dir
RDEPENDS:${PN} = "python3-core python3-json"
SRC_URI = " \
file://bd.py \
file://descriptor.py \
file://config.json \
file://bd.json \
"
S = "${WORKDIR}"
FILES:${PN} = " \
${bindir}/* \
${libdir}/* \
${sysconfdir}/* \
"
do_install () {
install -d ${D}${bindir}
install -m 0755 bd.py ${D}${bindir}/bd
install -d ${D}${PYTHON_SITEPACKAGES_DIR}
install -m 0644 descriptor.py ${D}${PYTHON_SITEPACKAGES_DIR}/
install -d ${D}${sysconfdir}/bd
install -m 0644 *.json ${D}${sysconfdir}/bd/
}