Andrew Geissler | 84ad7c5 | 2020-06-27 00:00:16 -0500 | [diff] [blame] | 1 | SUMMARY = "Building and installing flash strip utility" |
| 2 | DESCRIPTION = "Building and installing flash strip utility" |
| 3 | |
| 4 | LICENSE = "MIT" |
| 5 | LIC_FILES_CHKSUM = "file://../flash_stripe.c;beginline=1;endline=23;md5=abb859d98b7c4eede655e1b71824125a" |
| 6 | |
| 7 | B = "${WORKDIR}/build" |
| 8 | |
| 9 | SRC_URI += "file://flash_stripe.c" |
| 10 | |
| 11 | TARGET_CC_ARCH += "${LDFLAGS}" |
| 12 | |
| 13 | do_compile() { |
| 14 | ${CC} ${WORKDIR}/flash_stripe.c -o flash_strip |
| 15 | ${CC} ${WORKDIR}/flash_stripe.c -o flash_unstrip |
| 16 | ${CC} ${WORKDIR}/flash_stripe.c -o flash_strip_bw -DFLASH_STRIPE_BW |
| 17 | ${CC} ${WORKDIR}/flash_stripe.c -o flash_unstrip_bw -DUNSTRIP -DFLASH_STRIPE_BW |
| 18 | } |
| 19 | |
| 20 | do_install() { |
| 21 | install -d ${D}${bindir} |
| 22 | install -Dm 0755 ${B}/* ${D}${bindir}/ |
| 23 | } |
| 24 | |
| 25 | FILES_${PN} = "${bindir}/*" |