summaryrefslogtreecommitdiff
path: root/meta-amd/recipes-amd/amd-fpga/ip-to-fpga.bb
blob: 2dd76c93b7b6f8d190859171c827f5a87178b9e2 (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 = "Transfer BMC IP address to the FPGA"
PR = "r1"
LICENSE = "Apache-2.0"
LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/Apache-2.0;md5=89aea4e17d99a7cacdbeed46a0096b10"

inherit systemd

SRC_URI = " file://ip-to-fpga.sh \
            file://ip-to-fpga.service \
          "

S = "${WORKDIR}"

DEPENDS = "systemd"
RDEPENDS:${PN} = "bash"

SYSTEMD_SERVICE:${PN} = "ip-to-fpga.service"

do_install() {
    install -d ${D}${bindir}
    install -m 0755 ${S}/ip-to-fpga.sh ${D}${bindir}/

    install -d ${D}${systemd_system_unitdir}
    install -m 0644 ${S}/ip-to-fpga.service ${D}${systemd_system_unitdir}
}