DESCRIPTION = "Installs /etc/op-version file." LICENSE = "Public Domain" # a reminder: update the changelog! PR = "r39" SRC_URI = " \ file://changelog \ " do_install() { OLD_PWD=$PWD cd `dirname "${FILE_DIRNAME}"` tag=`git describe --abbrev=0` commits=`git log --oneline ${tag}..HEAD | wc -l` updv="" test "$commits" = "0" || updv=" update $commits" install -d ${D}${sysconfdir}/ opvf=${D}/${sysconfdir}/op-version echo "Tag Name: `git describe`" > ${opvf} echo "GIT-VERSION: `git log -n1 --pretty=oneline|awk '{print $1}'`" >> ${opvf} echo "Branch: `git branch | awk '/*/{print $2}'`" >> ${opvf} echo "Version: 1.9.7.6 - R1.76 Codename Super Zaxxon" >> ${opvf} echo "Display Ver: SuperZaxxon 1.76${updv}" >> ${opvf} echo "Image Builder: ${LOGNAME}@`cat /etc/hostname`" >> ${opvf} echo "Time Stamp: `date -R`" >> ${opvf} install -d ${D}${prefix}/pandora/ install -m 0644 ${WORKDIR}/changelog ${D}${prefix}/pandora/ } FILES_${PN} += "${sysconfdir}/op-version ${prefix}/pandora" COMPATIBLE_MACHINE = "omap3-pandora"