aboutsummaryrefslogtreecommitdiffstats
path: root/recipes/pad/pad-native.bb
blob: cc1f7aa40527b7b88b1bacfbf0953e18eb57b2d8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
SECTION = "console/utils"
DESCRIPTION = "Console utility for padding a file (filling with 0 to reach a specified length)"
FILESDIR = "${@os.path.dirname(bb.data.getVar('FILE',d,1))}/pad"
SRC_URI = "file://pad.c"
LICENSE = "PD"
PR = "r1"
inherit native

do_compile() {
	cp ${WORKDIR}/pad.c .
	${CC} -I. -o pad pad.c
}

do_install() {
	install -d ${D}${bindir}/
	install -m 0755 pad ${D}${bindir}/
}

NATIVE_INSTALL_WORKS = "1"