Thang Q. Nguyen | 25254b7 | 2021-01-07 07:16:50 +0000 | [diff] [blame] | 1 | |
| 2 | SUMMARY = "Ampere Computing LLC Flashing Utilities" |
| 3 | DESCRIPTION = "Application to support flashing utilities on Ampere platforms" |
| 4 | PR = "r0" |
| 5 | LICENSE = "Apache-2.0" |
| 6 | LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/Apache-2.0;md5=89aea4e17d99a7cacdbeed46a0096b10" |
| 7 | |
Thang Q. Nguyen | fa1aa4d | 2021-08-07 05:09:50 +0000 | [diff] [blame] | 8 | RDEPENDS:${PN} = "bash" |
Thang Q. Nguyen | 25254b7 | 2021-01-07 07:16:50 +0000 | [diff] [blame] | 9 | DEPENDS = "zlib" |
| 10 | |
| 11 | SRC_URI += "\ |
Thang Q. Nguyen | e96820d | 2021-12-17 02:24:24 +0000 | [diff] [blame] | 12 | file://ampere_firmware_upgrade.sh \ |
Thang Q. Nguyen | 25254b7 | 2021-01-07 07:16:50 +0000 | [diff] [blame] | 13 | file://ampere_flash_bios.sh \ |
| 14 | " |
| 15 | |
| 16 | S = "${WORKDIR}" |
| 17 | ROOT = "${STAGING_DIR_TARGET}" |
| 18 | |
| 19 | LDFLAGS += "-L ${ROOT}/usr/lib/ -lz " |
| 20 | |
Thang Q. Nguyen | fa1aa4d | 2021-08-07 05:09:50 +0000 | [diff] [blame] | 21 | do_install:append() { |
Thang Q. Nguyen | 25254b7 | 2021-01-07 07:16:50 +0000 | [diff] [blame] | 22 | install -d ${D}/usr/sbin |
Thang Q. Nguyen | e96820d | 2021-12-17 02:24:24 +0000 | [diff] [blame] | 23 | install -m 0755 ${WORKDIR}/ampere_firmware_upgrade.sh ${D}/${sbindir}/ampere_firmware_upgrade.sh |
Thang Q. Nguyen | 25254b7 | 2021-01-07 07:16:50 +0000 | [diff] [blame] | 24 | install -m 0755 ${S}/ampere_flash_bios.sh ${D}/${sbindir}/ampere_flash_bios.sh |
| 25 | } |