[oe-commits] : dreambox-image: fix .nfo creation
OE GIT Trial
gittrial at amethyst.openembedded.net
Mon Oct 13 15:36:02 UTC 2008
Module: org.openembedded.dev.git
Branch: org.openembedded.dreambox
Commit: 9fba7245e181ff0fa8159875e9e01e5f94cac5e9
URL: http://gitweb.openembedded.net/?p=org.openembedded.dev.git&a=commit;h=9fba7245e181ff0fa8159875e9e01e5f94cac5e9
Author: <tmbinc at openembedded.org>
Date: Mon Oct 13 15:28:15 2008 +0000
dreambox-image: fix .nfo creation
---
packages/images/dreambox-image.bb | 30 +++++++++++++++++-------------
1 files changed, 17 insertions(+), 13 deletions(-)
diff --git a/packages/images/dreambox-image.bb b/packages/images/dreambox-image.bb
index b541d01..bb32523 100644
--- a/packages/images/dreambox-image.bb
+++ b/packages/images/dreambox-image.bb
@@ -147,18 +147,22 @@ 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}
+
+do_rootfs_append() {
+ e2vers=`grep -i version "${IMAGE_ROOTFS}/usr/lib/ipkg/info/enigma2.control"`
+ echo -e "Enigma2:\tExperimental ${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}
+ if [ "${DESC}" != "" ]; then
+ echo -e "Description:\t${DESC}" >> ${NFO}
+ echo -e ${DESC} >> ${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}.desc
+ fi
+ echo -e "md5sum:\t" >> ${NFO}
+ cd ${DEPLOY_DIR_IMAGE}
+ md5sum ${IMAGE_NAME}.nfi >> ${NFO}
}
More information about the Openembedded-commits
mailing list