blob: f36b898c48c7faf0eb75c528dea26ead02a3e6ca (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
|
SUMMARY = "Device Tree Lopper"
DESCRIPTION = "Tool for manipulation of system device tree files"
LICENSE = "BSD-3-Clause"
SECTION = "bootloader"
SRC_URI = "git://github.com/devicetree-org/lopper.git;branch=master-next;protocol=https"
SRCREV = "3e6aa522d2469ba7563fc6691802cf4aae3d2fd7"
S = "${WORKDIR}/git"
LIC_FILES_CHKSUM = "file://LICENSE.md;md5=8e5f5f691f01c9fdfa7a7f2d535be619"
RDEPENDS:${PN} = " \
python3-core \
python3-dtc \
python3-humanfriendly \
"
do_install() {
install -d "${D}/${bindir}"
install -d "${D}/${datadir}/${BPN}"
install -m 0644 "${S}/README.md" "${D}/${datadir}/${BPN}"
install -m 0644 "${S}/README-architecture.md" "${D}/${datadir}/${BPN}"
install -m 0644 "${S}/README.pydoc" "${D}/${datadir}/${BPN}"
install -m 0644 "${S}/LICENSE.md" "${D}/${datadir}/${BPN}"
install -d "${D}/${datadir}/${BPN}/lopper/assists"
cp -r "${S}/lopper/assists/"* "${D}/${datadir}/${BPN}/lopper/assists/"
install -d "${D}/${datadir}/${BPN}/lopper/lops"
install -m 0644 "${S}/lopper/lops/"* "${D}/${datadir}/${BPN}/lopper/lops/"
install -d "${D}/${datadir}/${BPN}/device-trees"
install -m 0644 "${S}/device-trees/"* "${D}/${datadir}/${BPN}/device-trees/"
install -m 0755 "${S}/"lopper*.py "${D}/${datadir}/${BPN}/"
datadir_relpath=${@os.path.relpath(d.getVar('datadir'), d.getVar('bindir'))}
ln -s "${datadir_relpath}/${BPN}/lopper.py" "${D}/${bindir}/"
}
do_configure[noexec] = "1"
do_compile[noexec] = "1"
BBCLASSEXTEND = "native nativesdk"
|