shasum: Convert do_stage -> do_install (from Poky)
authorRichard Purdie <rpurdie@linux.intel.com>
Sun, 1 Aug 2010 19:45:54 +0000 (20:45 +0100)
committerKhem Raj <raj.khem@gmail.com>
Sat, 7 Aug 2010 06:45:27 +0000 (23:45 -0700)
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
recipes/shasum/shasum-native.bb
recipes/shasum/shasum.inc

index fab6244..d39a6c3 100644 (file)
@@ -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}
-}
index 343a2d2..a02b9ff 100644 (file)
@@ -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}/
 }