aboutsummaryrefslogtreecommitdiffstats
path: root/recipes/pad/pad-native.bb
blob: e8c2b6d579a726894c7237a24a6ef5a648ffc3b2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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"
inherit native

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

do_stage() {
	install -m 0755 pad ${STAGING_BINDIR}/
}