summaryrefslogtreecommitdiff
path: root/packages/pad/pad-native.bb
diff options
context:
space:
mode:
Diffstat (limited to 'packages/pad/pad-native.bb')
-rw-r--r--packages/pad/pad-native.bb15
1 files changed, 15 insertions, 0 deletions
diff --git a/packages/pad/pad-native.bb b/packages/pad/pad-native.bb
index e69de29bb2..e8c2b6d579 100644
--- a/packages/pad/pad-native.bb
+++ b/packages/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}/
+}