aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard Purdie <rpurdie@linux.intel.com>2010-08-01 20:45:54 +0100
committerRichard Purdie <rpurdie@linux.intel.com>2010-08-01 20:45:54 +0100
commitd7ef8bba2b380bc3f878be1387f9773163d0d717 (patch)
treea48971fe335e431d0c6161541be273b19a60d4e8
parent4ea1697116002cca5aaea737e88d3f4018c01ade (diff)
downloadopenembedded-d7ef8bba2b380bc3f878be1387f9773163d0d717.tar.gz
openembedded-d7ef8bba2b380bc3f878be1387f9773163d0d717.tar.bz2
openembedded-d7ef8bba2b380bc3f878be1387f9773163d0d717.zip
shasum: Convert do_stage -> do_install (from Poky)
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
-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}/
}