aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard Purdie <rpurdie@linux.intel.com>2010-08-01 20:45:54 +0100
committerKhem Raj <raj.khem@gmail.com>2010-08-06 23:45:27 -0700
commit17b3239cdf80ed1739a7238879e4f90f7a110fe1 (patch)
tree35920ef30e9808d945191a901adddebd3ca16d2d
parent6b6933550f60098388ed77c964f223d8f919379c (diff)
downloadopenembedded-17b3239cdf80ed1739a7238879e4f90f7a110fe1.tar.gz
openembedded-17b3239cdf80ed1739a7238879e4f90f7a110fe1.tar.bz2
openembedded-17b3239cdf80ed1739a7238879e4f90f7a110fe1.zip
shasum: Convert do_stage -> do_install (from Poky)
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com> Signed-off-by: Khem Raj <raj.khem@gmail.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}/
}