[oe-commits] : dreambox-image: automatically create image .nfo file after image build
OE GIT Trial
gittrial at amethyst.openembedded.net
Sun Oct 12 20:47:24 UTC 2008
Module: org.openembedded.dev.git
Branch: org.openembedded.dreambox
Commit: a5e043bba9f9e1e5030e97787e2e324ce4a8da30
URL: http://gitweb.openembedded.net/?p=org.openembedded.dev.git&a=commit;h=a5e043bba9f9e1e5030e97787e2e324ce4a8da30
Author: <tmbinc at openembedded.org>
Date: Sun Oct 12 20:44:07 2008 +0000
dreambox-image: automatically create image .nfo file after image build
---
packages/images/dreambox-image.bb | 15 +++++++++++++++
1 files changed, 15 insertions(+), 0 deletions(-)
diff --git a/packages/images/dreambox-image.bb b/packages/images/dreambox-image.bb
index 0c9f49a..b541d01 100644
--- a/packages/images/dreambox-image.bb
+++ b/packages/images/dreambox-image.bb
@@ -147,3 +147,18 @@ IMAGE_LINGUAS = " "
export IPKG_INSTALL = '${RDEPENDS}'
inherit image_ipk
+export NFO = '${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}.nfo'
+addtask nfo after do_rootfs before do_build
+
+do_nfo() {
+ e2vers=`grep -i version "${IMAGE_ROOTFS}/usr/lib/ipkg/info/enigma2.control"`
+ echo -e "Enigma2:\tExperimental Release ${e2vers:9:3}" > ${NFO}
+ echo -e "Machine:\tDreambox ${MACHINE}" >> ${NFO}
+ echo -e "Date:\t$(date +%Y-%m-%d' '%H':'%M)" >> ${NFO}
+ echo -e "Issuer:\tDream Multimedia TV" >> ${NFO}
+ distrover=${DISTRO_VERSION}
+ echo -e "Link:\thttp://dreamboxupdate.com/${DISTRO}/${distrover:0:3}/${MACHINE}/experimental" >> ${NFO}
+ echo -ne "md5sum:\t" >> ${NFO}
+ cd ${DEPLOY_DIR_IMAGE}
+ md5sum ${IMAGE_NAME}.nfi >> ${NFO}
+}
More information about the Openembedded-commits
mailing list