aboutsummaryrefslogtreecommitdiffstats
path: root/recipes-kernel/dtc/python3-dtc_1.6.1.bb
blob: e9b84999e0b23e445233fbba1f9af6b3d8c74c66 (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
SUMMARY = "Python Library for the Device Tree Compiler"
HOMEPAGE = "https://devicetree.org/"
DESCRIPTION = "A python library for the Device Tree Compiler, a tool used to manipulate Device Tree files which contain a data structure for describing hardware."
SECTION = "bootloader"
LICENSE = "GPLv2 | BSD-2-Clause"

DEPENDS = "flex-native bison-native swig-native libyaml dtc"

SRC_URI = "git://git.kernel.org/pub/scm/utils/dtc/dtc.git;branch=master \
           file://ssize.patch"

UPSTREAM_CHECK_GITTAGREGEX = "v(?P<pver>\d+(\.\d+)+)"

LIC_FILES_CHKSUM = "file://pylibfdt/libfdt.i;beginline=1;endline=6;md5=afda088c974174a29108c8d80b5dce90"

SRCREV = "ecaeb97fec013973360e94888a7de645f084345c"

S = "${WORKDIR}/git"

inherit setuptools3-base pkgconfig

DISTUTILS_SETUP_PATH = "${S}/pylibfdt"

do_configure:prepend() {
    oe_runmake -C "${S}" version_gen.h
    mv "${S}/version_gen.h" "${DISTUTILS_SETUP_PATH}/"
}

BBCLASSEXTEND = "native nativesdk"