summaryrefslogtreecommitdiff
path: root/meta
diff options
context:
space:
mode:
authorRichard Purdie <rpurdie@linux.intel.com>2009-11-16 21:53:21 +0000
committerRichard Purdie <rpurdie@linux.intel.com>2009-11-16 21:53:21 +0000
commitd89b641578a4b3ef3dbe168e59e47cf6d4f1cc5d (patch)
treed489de01f5166090c011dff9ed5dd67d6e1d8945 /meta
parent30445784030c59d2d0a8c9aa7801a6ffab55e360 (diff)
downloadopenembedded-core-d89b641578a4b3ef3dbe168e59e47cf6d4f1cc5d.tar.gz
openembedded-core-d89b641578a4b3ef3dbe168e59e47cf6d4f1cc5d.tar.bz2
openembedded-core-d89b641578a4b3ef3dbe168e59e47cf6d4f1cc5d.tar.xz
openembedded-core-d89b641578a4b3ef3dbe168e59e47cf6d4f1cc5d.zip
sha-native: Update staging function
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
Diffstat (limited to 'meta')
-rw-r--r--meta/packages/shasum/shasum-native.bb4
-rw-r--r--meta/packages/shasum/shasum.inc14
2 files changed, 9 insertions, 9 deletions
diff --git a/meta/packages/shasum/shasum-native.bb b/meta/packages/shasum/shasum-native.bb
index a28d5ac96..d39a6c386 100644
--- a/meta/packages/shasum/shasum-native.bb
+++ b/meta/packages/shasum/shasum-native.bb
@@ -6,7 +6,3 @@ INHIBIT_DEFAULT_DEPS = "1"
PATCHTOOL = "patch"
do_fetch[depends] = ""
-do_stage() {
- install -d ${STAGING_BINDIR}
- install ${S}/oe_sha256sum ${STAGING_BINDIR}
-}
diff --git a/meta/packages/shasum/shasum.inc b/meta/packages/shasum/shasum.inc
index 343a2d288..ad51bcc60 100644
--- a/meta/packages/shasum/shasum.inc
+++ b/meta/packages/shasum/shasum.inc
@@ -1,20 +1,24 @@
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
+}
+
+NATIVE_INSTALL_WORKS = "1"
+do_install() {
+ install -d ${D}${bindir}/
+ install ${S}/oe_sha256sum ${D}${bindir}/
}