summaryrefslogtreecommitdiff
path: root/recipes-core/iotedge-daemon/iotedge-daemon_%.bbappend
blob: 228f6d97523f2072b121c7cb4955cb19b05c78cb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:"

SRC_URI += "file://config.yaml"

do_patch_append() {
    import subprocess, os
    # S gets modified which breaks gitsm
    sdir = os.path.join(d.getVar('WORKDIR'), 'git')
    output = subprocess.check_output(["git", "submodule", "update", "--init", "--recursive"], cwd=sdir, stderr=subprocess.STDOUT)
    # hack around some build errors
    import shutil
    shutil.rmtree(sdir + '/edgelet/hsm-sys/azure-iot-hsm-c/deps/c-shared/inc/azure_c_shared_utility/windowsce/', ignore_errors=True)
    shutil.rmtree(sdir + '/edgelet/hsm-sys/azure-iot-hsm-c/deps/utpm/deps/c-utility/inc/azure_c_shared_utility/windowsce/', ignore_errors=True)
}

do_install_append() {
    install -d ${D}${sysconfdir}/iotedge
    install -m 400 -o iotedge -g iotedge "${WORKDIR}/config.yaml" ${D}${sysconfdir}/iotedge/config.yaml
}