summaryrefslogtreecommitdiff
path: root/pad/pad-native.oe
blob: adf6d28f59af230ea3b7e458d7841b96e096e3b9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
DESCRIPTION = "Console utility for padding a file (filling with 0 to reach a specified length)"
FILESDIR = "${@os.path.dirname(oe.data.getVar('FILE',d,1))}/pad"

inherit native

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

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