Initial commit
This commit is contained in:
@@ -0,0 +1,32 @@
|
||||
FILESEXTRAPATHS:prepend := "${THISDIR}/${PN}:"
|
||||
|
||||
SRC_URI += " \
|
||||
file://obmc-flash-cpld@.service \
|
||||
file://obmc-flash-host-bios@.service \
|
||||
file://flashbios \
|
||||
file://flashcpld "
|
||||
|
||||
SRC_URI += " \
|
||||
file://0001-Add-CPLD-Update-for-SoftWare-Manager.patch \
|
||||
file://0003-add-shell-script-for-generate-cpld-image-tar.patch \
|
||||
file://0001-Detect-boot-image-source.patch \
|
||||
"
|
||||
|
||||
PACKAGECONFIG[cpld_update] = "-Dcpld-upgrade=enabled, -Dcpld-upgrade=disabled"
|
||||
PACKAGECONFIG += " cpld_update flash_bios static-dual-image"
|
||||
DEPENDS += "${@bb.utils.contains('PACKAGECONFIG', 'cpld_update', 'svf', '', d)}"
|
||||
|
||||
do_install:append() {
|
||||
install -d ${D}${bindir}
|
||||
install -d ${D}${systemd_system_unitdir}
|
||||
install -m 0755 ${WORKDIR}/flashbios ${D}${bindir}
|
||||
install -m 0755 ${WORKDIR}/flashcpld ${D}${bindir}
|
||||
install -m 0644 ${WORKDIR}/obmc-flash-cpld@.service ${D}${systemd_system_unitdir}
|
||||
install -m 0644 ${WORKDIR}/obmc-flash-host-bios@.service ${D}${systemd_system_unitdir}
|
||||
}
|
||||
|
||||
FILES:${PN}-updater += "\
|
||||
${systemd_system_unitdir}/obmc-flash-cpld@.service \
|
||||
${systemd_system_unitdir}/obmc-flash-host-bios@.service \
|
||||
${bindir}/flashbios \
|
||||
${bindir}/flashcpld "
|
||||
Reference in New Issue
Block a user