summaryrefslogtreecommitdiffstats
path: root/recipes-test/demo-network-config/primary-network-config.bb
blob: 544a5ec883e75a5e06383dd6d11d636e679253ff (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
DESCRIPTION = "Sample network configuration for an Uptane Primary"
LICENSE = "MPL-2.0"
LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/MPL-2.0;md5=815ca599c9df247a0c7f619bab123dad"

SRC_URI = "\
    file://27-dhcp-client-external.network \
    "

FILES_${PN} = "${libdir}/systemd/network"

PR = "1"

do_install() {
    install -d ${D}${libdir}/systemd/network
    install -m 0644 ${WORKDIR}/27-dhcp-client-external.network ${D}${libdir}/systemd/network/
}

PRIMARY_IP ?= "10.0.3.1"

IP_ADDR = "${PRIMARY_IP}"
CONF_TYPE ?= "${@ 'multihomed' if d.getVar('MACHINE') == 'raspberrypi3' and d.getVar('RPI_WIFI_ENABLE') != '1' else 'static'}"

require network-config.inc

# vim:set ts=4 sw=4 sts=4 expandtab: