summaryrefslogtreecommitdiff
path: root/recipes/shasum
diff options
context:
space:
mode:
Diffstat (limited to 'recipes/shasum')
-rw-r--r--recipes/shasum/shasum-native.bb4
-rw-r--r--recipes/shasum/shasum.inc13
2 files changed, 8 insertions, 9 deletions
diff --git a/recipes/shasum/shasum-native.bb b/recipes/shasum/shasum-native.bb
index fab6244f71..d39a6c3865 100644
--- a/recipes/shasum/shasum-native.bb
+++ b/recipes/shasum/shasum-native.bb
@@ -6,7 +6,3 @@ INHIBIT_DEFAULT_DEPS = "1"
PATCHTOOL = "patch"
do_fetch[depends] = ""
-do_stage() {
- install -d ${STAGING_BINDIR}
- install -m 0755 ${S}/oe_sha256sum ${STAGING_BINDIR}
-}
diff --git a/recipes/shasum/shasum.inc b/recipes/shasum/shasum.inc
index 343a2d288e..a02b9ffb5f 100644
--- a/recipes/shasum/shasum.inc
+++ b/recipes/shasum/shasum.inc
@@ -1,20 +1,23 @@
SUMMARY = "A simple tool to create sha256 hashes from a file"
LICENSE = "LGPL"
-PR = "r1"
+PR = "r1"
S = "${WORKDIR}"
-
SRC_URI = "file://main.c \
file://mhash_sha256.h \
file://sha256.c "
-
do_configure() {
- :
+ :
}
do_compile() {
- $CC $CFLAGS $CPPFLAGS -o oe_sha256sum main.c sha256.c
+ $CC $CFLAGS $CPPFLAGS -o oe_sha256sum main.c sha256.c
+}
+
+do_install() {
+ install -d ${D}${bindir}/
+ install -m 0755 ${S}/oe_sha256sum ${D}${bindir}/
}