summaryrefslogtreecommitdiff
path: root/recipes-devtools
diff options
context:
space:
mode:
authorJohn Klug <john.klug@multitech.com>2019-02-20 15:56:06 -0600
committerJohn Klug <john.klug@multitech.com>2019-02-20 15:56:06 -0600
commite0afce25430d5feab3fb64817ad7441de72bf11f (patch)
tree48c273ce9238d4b6f2608528ead92e2111fe7bf3 /recipes-devtools
parent3a7fd900019573c776e41640a99bba3bacf09f74 (diff)
downloadmeta-multitech-atmel-e0afce25430d5feab3fb64817ad7441de72bf11f.tar.gz
meta-multitech-atmel-e0afce25430d5feab3fb64817ad7441de72bf11f.tar.bz2
meta-multitech-atmel-e0afce25430d5feab3fb64817ad7441de72bf11f.zip
Add dtoverlay command -- libdft comes later
Diffstat (limited to 'recipes-devtools')
-rw-r--r--recipes-devtools/dtoverlay/dtoverlay/missing_types.patch24
-rw-r--r--recipes-devtools/dtoverlay/dtoverlay_1.0.0.bb37
2 files changed, 61 insertions, 0 deletions
diff --git a/recipes-devtools/dtoverlay/dtoverlay/missing_types.patch b/recipes-devtools/dtoverlay/dtoverlay/missing_types.patch
new file mode 100644
index 0000000..77b0ba4
--- /dev/null
+++ b/recipes-devtools/dtoverlay/dtoverlay/missing_types.patch
@@ -0,0 +1,24 @@
+diff --git a/dtoverlay.c b/dtoverlay.c
+index 597f867..1a0db2f 100644
+--- a/dtoverlay.c
++++ b/dtoverlay.c
+@@ -25,6 +25,7 @@ ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ */
+
++#include <stdint.h>
+ #include <stdio.h>
+ #include <stdlib.h>
+ #include <stdarg.h>
+diff --git a/dtoverlay_main.c b/dtoverlay_main.c
+index 4d71c35..9197e13 100755
+--- a/dtoverlay_main.c
++++ b/dtoverlay_main.c
+@@ -30,6 +30,7 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ #include <string.h>
+ #include <unistd.h>
+ #include <stdarg.h>
++#include <stdint.h>
+ #include <sys/stat.h>
+ #include <dirent.h>
+ #include <errno.h>
diff --git a/recipes-devtools/dtoverlay/dtoverlay_1.0.0.bb b/recipes-devtools/dtoverlay/dtoverlay_1.0.0.bb
new file mode 100644
index 0000000..aaabccc
--- /dev/null
+++ b/recipes-devtools/dtoverlay/dtoverlay_1.0.0.bb
@@ -0,0 +1,37 @@
+# Device tree overlay program
+# Needs libfdt recipe to work.
+
+LICENSE = "BSD-3-Clause"
+INC_PR = "r1"
+PR = "${INC_PR}.0"
+HOMEPAGE = "https://github.com/raspberrypi/userland/tree/master/host_applications/linux/apps/dtoverlay"
+SECTION = "console/utils"
+PRIORITY = "optional"
+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"
+
+# Need libfdt recipe
+# DEPENDS = "kernel-devsrc libfdt"
+
+inherit autotools
+
+# do_install[depends] += "virtual/kernel:do_shared_workdir"
+
+S = "${WORKDIR}/git"
+
+# -I. -I../git
+
+EXTRA_OEMAKE_append = " \
+ INCLUDES='-idirafter ${STAGING_KERNEL_DIR}/include/linux -idirafter ${STAGING_KERNEL_DIR}/include' \
+ "
+
+# -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"