summaryrefslogtreecommitdiffstats
path: root/meta-xilinx-core/recipes-devtools/qemu/flashstrip_1.0.bb
blob: 9f08a1f4207437b2595c4e5f72d4e5ae209eb9e5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
SUMMARY = "Building and installing flash strip utility"
DESCRIPTION = "Building and installing flash strip utility"

LICENSE = "MIT"
LIC_FILES_CHKSUM = "file://../flash_stripe.c;beginline=1;endline=23;md5=abb859d98b7c4eede655e1b71824125a"

S = "${UNPACKDIR}"
B = "${WORKDIR}/build"

SRC_URI += "file://flash_stripe.c"

TARGET_CC_ARCH += "${LDFLAGS}"

do_compile() {
    ${CC} ${S}/flash_stripe.c -o flash_strip
    ${CC} ${S}/flash_stripe.c -o flash_unstrip
    ${CC} ${S}/flash_stripe.c -o flash_strip_bw -DFLASH_STRIPE_BW
    ${CC} ${S}/flash_stripe.c -o flash_unstrip_bw -DUNSTRIP -DFLASH_STRIPE_BW
}

do_install() {
    install -d ${D}${bindir}
    install -Dm 0755 ${B}/* ${D}${bindir}/
}

FILES:${PN} = "${bindir}/*"

BBCLASSEXTEND = "native nativesdk"