summaryrefslogtreecommitdiff
path: root/recipes-devtools
diff options
context:
space:
mode:
authorJohn Klug <john.klug@multitech.com>2019-02-21 14:38:38 -0600
committerJohn Klug <john.klug@multitech.com>2019-02-21 14:38:38 -0600
commit59814d1881b807948ca03c13a90e6a5e07020e38 (patch)
tree3fe798fb5714d155c3acdd9021ca92d90a647bb5 /recipes-devtools
parente0afce25430d5feab3fb64817ad7441de72bf11f (diff)
downloadmeta-multitech-59814d1881b807948ca03c13a90e6a5e07020e38.tar.gz
meta-multitech-59814d1881b807948ca03c13a90e6a5e07020e38.tar.bz2
meta-multitech-59814d1881b807948ca03c13a90e6a5e07020e38.zip
Recipe for dtc, and fix dtoverlay recipe to use the libfdt library.
Diffstat (limited to 'recipes-devtools')
-rw-r--r--recipes-devtools/dtc/dtc_1.4.7.bb28
-rw-r--r--recipes-devtools/dtoverlay/dtoverlay_1.0.0.bb20
2 files changed, 36 insertions, 12 deletions
diff --git a/recipes-devtools/dtc/dtc_1.4.7.bb b/recipes-devtools/dtc/dtc_1.4.7.bb
new file mode 100644
index 0000000..80b505f
--- /dev/null
+++ b/recipes-devtools/dtc/dtc_1.4.7.bb
@@ -0,0 +1,28 @@
+SUMMARY = "Device Tree Compiler and its library"
+HOMEPAGE = "https://git.kernel.org/pub/scm/utils/dtc/dtc.git/about/"
+LICENSE = "BSD & GPLv2+"
+LIC_FILES_CHKSUM = "file://README.license;md5=89fd4e63f2aea733216e660f81b3c118"
+
+SRC_URI = "git://git.kernel.org/pub/scm/utils/dtc/dtc.git"
+SRCREV = "78e113e81c9d33d0f33704b187a46399d5a75419"
+INC_PR = "r1"
+PR = "${INC_PR}.0"
+DEPENDS = "flex bison swig"
+RDEPENDS_dtc = "libfdt"
+S = "${WORKDIR}/git"
+PACKAGES =+ "libfdt"
+FILES_libfdt = "${libdir}/libfdt.so.[0-9] ${libdir}/libfdt-*.so"
+RPROVIDES_libfdt = "libfdt"
+
+FILES_${PN}-dev += "${libdir}/libfdt.so.[0-9].*"
+
+do_compile() {
+ oe_runmake
+}
+
+do_install() {
+ echo "DESTDIR is ${D}"
+ oe_runmake install-lib DESTDIR=${D} HOME="/" LIBDIR="${libdir}"
+ install -d ${D}/${includedir}/libfdt
+ install ${S}/libfdt/*.h ${D}/${includedir}/libfdt
+}
diff --git a/recipes-devtools/dtoverlay/dtoverlay_1.0.0.bb b/recipes-devtools/dtoverlay/dtoverlay_1.0.0.bb
index aaabccc..67ba6e5 100644
--- a/recipes-devtools/dtoverlay/dtoverlay_1.0.0.bb
+++ b/recipes-devtools/dtoverlay/dtoverlay_1.0.0.bb
@@ -1,5 +1,4 @@
-# Device tree overlay program
-# Needs libfdt recipe to work.
+SUMMARY = "Device tree overlay program to update device tree after boot"
LICENSE = "BSD-3-Clause"
INC_PR = "r1"
@@ -11,9 +10,13 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=0448d6488ef8cc380632b1569ee6d196"
SRCREV = "${PV}"
SRC_URI = " \
git://git@gitlab.multitech.net/focus/dtoverlay.git;protocol=ssh \
- file://missing_types.patch \
"
-DEPENDS = "kernel-devsrc"
+
+# Needs libfdt recipe to work.
+# libfdt is part of dtc (Device Tree Compiler)
+DEPENDS = "kernel-devsrc dtc"
+
+
# Need libfdt recipe
# DEPENDS = "kernel-devsrc libfdt"
@@ -24,14 +27,7 @@ inherit autotools
S = "${WORKDIR}/git"
-# -I. -I../git
-
EXTRA_OEMAKE_append = " \
- INCLUDES='-idirafter ${STAGING_KERNEL_DIR}/include/linux -idirafter ${STAGING_KERNEL_DIR}/include' \
+ INCLUDES='-I ${STAGING_DIR_TARGET}/usr/include/libfdt' \
"
-# -I${STAGING_KERNEL_DIR}/include -I${STAGING_KERNEL_DIR}/include/linux'
-
-# CC="${CC} --sysroot=${STAGING_DIR_HOST}"
-# LD="${LD} --sysroot=${STAGING_DIR_HOST}"
-# oe_runmake CC="${CC}" LD="${LD}" INCLUDES="-I${STAGING_INCDIR} -I. -I${STAGING_KERNEL_DIR}/include/linux -I${STAGING_KERNEL_DIR}/include" AM_CFLAGS="-Wall -Wformat=0 -H"