summaryrefslogtreecommitdiff
path: root/recipes-devtools/nandflipbits/nandflipbits.bb
blob: a02e7b3e7033f71ead48cdd86197c72b62e2334f (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
# Copyright (C) 2016 PHYTEC Messtechnik GmbH,
# Author: Daniel Schultz <d.schultz@phytec.de>

DESCRIPTION = "This program flips one or more bits of a NAND partition"
LICENSE = "GPL-2.0"
SECTION = "devel"
LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/GPL-2.0;md5=801f80980d171dd6425610833a22dbe6"

SRC_URI = "file://nandflipbits.c \
	   file://nandflipbits_wrapper"

PR = "r0"
S = "${WORKDIR}"

DEPENDS = "mtd-utils"

do_compile() {
	${CC} ${CFLAGS} ${LDFLAGS} -o nandflipbits nandflipbits.c -lmtd
}

do_install() {
	install -d ${D}${bindir}
	install -m 0755 nandflipbits ${D}${bindir}
	install -m 0755 nandflipbits_wrapper ${D}${bindir}
}

FILES_${PN} = "${bindir}"