blob: 844709b91a23de299b278ad28a01f49117b58cf2 [file] [log] [blame]
Thang Q. Nguyen25254b72021-01-07 07:16:50 +00001
2SUMMARY = "Ampere Computing LLC Flashing Utilities"
3DESCRIPTION = "Application to support flashing utilities on Ampere platforms"
4PR = "r0"
5LICENSE = "Apache-2.0"
6LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/Apache-2.0;md5=89aea4e17d99a7cacdbeed46a0096b10"
7
Thang Q. Nguyenfa1aa4d2021-08-07 05:09:50 +00008RDEPENDS:${PN} = "bash"
Thang Q. Nguyen25254b72021-01-07 07:16:50 +00009DEPENDS = "zlib"
10
11SRC_URI += "\
Thang Q. Nguyene96820d2021-12-17 02:24:24 +000012 file://ampere_firmware_upgrade.sh \
Thang Q. Nguyen25254b72021-01-07 07:16:50 +000013 file://ampere_flash_bios.sh \
14 "
15
16S = "${WORKDIR}"
17ROOT = "${STAGING_DIR_TARGET}"
18
19LDFLAGS += "-L ${ROOT}/usr/lib/ -lz "
20
Thang Q. Nguyenfa1aa4d2021-08-07 05:09:50 +000021do_install:append() {
Thang Q. Nguyen25254b72021-01-07 07:16:50 +000022 install -d ${D}/usr/sbin
Thang Q. Nguyene96820d2021-12-17 02:24:24 +000023 install -m 0755 ${WORKDIR}/ampere_firmware_upgrade.sh ${D}/${sbindir}/ampere_firmware_upgrade.sh
Thang Q. Nguyen25254b72021-01-07 07:16:50 +000024 install -m 0755 ${S}/ampere_flash_bios.sh ${D}/${sbindir}/ampere_flash_bios.sh
25}