summaryrefslogtreecommitdiff
path: root/recipes-devtools/dtoverlay/dtoverlay_1.0.0.bb
blob: aaabccc8266eefeb3be0045a306212c61b5efb68 (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
# 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"