blob: eec7b2dad9af6a7bfcc1d137794444b300194317 [file] [log] [blame]
Andrew Geissler84ad7c52020-06-27 00:00:16 -05001SUMMARY = "Building and installing flash strip utility"
2DESCRIPTION = "Building and installing flash strip utility"
3
4LICENSE = "MIT"
5LIC_FILES_CHKSUM = "file://../flash_stripe.c;beginline=1;endline=23;md5=abb859d98b7c4eede655e1b71824125a"
6
7B = "${WORKDIR}/build"
8
9SRC_URI += "file://flash_stripe.c"
10
11TARGET_CC_ARCH += "${LDFLAGS}"
12
13do_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
20do_install() {
21 install -d ${D}${bindir}
22 install -Dm 0755 ${B}/* ${D}${bindir}/
23}
24
25FILES_${PN} = "${bindir}/*"