summaryrefslogtreecommitdiff
path: root/meta-ibm/recipes-phosphor/network/phosphor-network_%.bbappend
blob: a79dae669a175f3f49f37e766625e8c4ecda9517 (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
FILESEXTRAPATHS_prepend := "${THISDIR}/network:"

SRC_URI += " file://ncsi-netlink.service"
SYSTEMD_SERVICE_${PN} += " ncsi-netlink.service"
FILES_${PN} += "${datadir}/network/*.json"

PACKAGECONFIG_append = " sync-mac"

install_network_configuration(){
    install -d ${D}${systemd_system_unitdir}
    install -m 0644 ${WORKDIR}/ncsi-netlink.service ${D}${systemd_system_unitdir}
    install -d ${D}${datadir}/network/
    install -m 0644 ${WORKDIR}/inventory-object-map.json ${D}${datadir}/network/config.json
}

SRC_URI_append_p10bmc = " file://inventory-object-map.json"
do_install_append_p10bmc(){
    install_network_configuration
}

SRC_URI_append_ibm-ac-server = " file://inventory-object-map.json"
do_install_append_ibm-ac-server() {
    install_network_configuration
}

SRC_URI_append_mihawk = " file://inventory-object-map.json"
do_install_append_mihawk() {
    install_network_configuration
}

SRC_URI_append_witherspoon-tacoma = " file://inventory-object-map.json"
do_install_append_witherspoon-tacoma(){
    install_network_configuration
}