diff options
Diffstat (limited to 'recipes/pad/pad-native.bb')
-rw-r--r-- | recipes/pad/pad-native.bb | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/recipes/pad/pad-native.bb b/recipes/pad/pad-native.bb new file mode 100644 index 0000000000..e8c2b6d579 --- /dev/null +++ b/recipes/pad/pad-native.bb @@ -0,0 +1,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}/ +} |