LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 07-23-2014, 09:53 PM   #1
ghgemmer
LQ Newbie
 
Registered: Jul 2014
Posts: 1

Rep: Reputation: Disabled
what is exportvars.bbclass created by Montavista 6.1 devRocket for


Sometimes this bitbake class gets created and put in the ($TMPDIR}/classes directory by a project when the project is initially imported in Montavista DevRocket. The class appears to create a file for each .bb package with the same package name (but not .bb extension) with many of the typical variables the .bb file defines put in the created file in the format variable name = value. These created files are put in the ($TMPDIR}\export directory. It appears that a build works ok and produces the expected executable regardless of whether this exportvars.bbclass gets created or not. The project appears to be the top level project and when it is imported the bitbake files it references get parsed and if all these are available it produces this exportvars.bbclass. If not everything is available at that time it does not produce that .bbclass even when a refresh is done. My question is since the build appears to work either way, is this .bbclass for aid in debugging or why is is created. I'll try to post the exportvars.bbclass and a few of the files created in that export directory. Also I can't seem to find anything referencing that exportvars.bbclass but may not necessarily be looking in the right places. I attempted to gain access to Montavistas forum but received an e-mail from them to the effect I needed a support contract to get access (I'm doing some work many years after the initial dev completed so no longer have a support license)

the exportvars.bbclass contains the following

# This file is generated by DevRocket
# Do not modify or delete this file
EXPORTVARS ?= "PN PE PV PR SECTION PRIORITY HOMEPAGE SRC_URI LICENSE DESCRIPTION DEPENDS RDEPENDS FILE S B P WORKDIR PACKAGES PROVIDES RPROVIDES RRECOMMENDS"
EXPORTVARSDIR ?= "${TMPDIR}/export/"
EXPORTVARSFILE ?= "${EXPORTVARSDIR}/${PN}-${PV}"
EXPORTCOLLSFILE ?= "${EXPORTVARSDIR}/collections-mapping"


python () {

evrecpietype = set(bb.data.getVar("__inherit_cache",d,1))
evcollectioninfo = get_collection(d.getVar('FILE', 1), d)
bb.mkdirhier(bb.data.expand("${EXPORTVARSDIR}",d))

collfile = open(bb.data.expand("${EXPORTCOLLSFILE}",d), "a")
collfile.write('PN="%s",' % bb.data.getVar('PN', d, 1))
collfile.write('PE="%s",' % bb.data.getVar('PE', d, 1))
collfile.write('PV="%s",' % bb.data.getVar('PV', d, 1))
collfile.write('PR="%s",' % bb.data.getVar('PR', d, 1))
collfile.write('FILE="%s",' % bb.data.getVar('FILE', d, 1))
collfile.write('PACKAGES="%s",' % bb.data.getVar('PACKAGES', d, 1))
if evcollectioninfo:
collfile.write('COLLECTION="%s"\n' % evcollectioninfo["name"])
else:
collfile.write('COLLECTION="%s"\n' % "")
collfile.close()

evfile = open(bb.data.expand("${EXPORTVARSFILE}",d), "w")
if evcollectioninfo:
evfile.write('COLLECTION="%s"\n' % evcollectioninfo["name"])
else:
evfile.write('COLLECTION="%s"\n' % "")

for expvar in bb.data.getVar("EXPORTVARS",d,1).split(" "):
evfile.write('%s="%s"\n' % (expvar, bb.data.getVar(expvar,d,1)))
evfile.close()

}


and a file it created for one of the packages that it puts in the export directory is
cpio-2.5

COLLECTION="com.mvista.core"
PN="cpio"
PE="None"
PV="2.5"
PR="r4"
SECTION="console"
PRIORITY="optional"
HOMEPAGE="http://www.gnu.org/software/cpio/"
SRC_URI="ftp://ftp.gnu.org/gnu/cpio/cpio-2.5.tar.gz file://install.patch;patch=1"
LICENSE="GPL"
DESCRIPTION="GNU cpio is a program to manage archives of files."
DEPENDS="gnu-config-native libtool-cross autoconf-native automake-native libtool-native shasum-native coreutils-native virtual/i686-montavista-linux-gnu-gcc virtual/libc texinfo-native "
RDEPENDS=""
FILE="/export/share/DiuIntegrationPlatform/tmp/collections/core-1006170220/core/recipes/cpio/cpio_2.5.bb"
S="/export/share/DiuIntegrationPlatform/tmp/work/i686-mv-linux/cpio-2.5-r4/cpio-2.5"
B="/export/share/DiuIntegrationPlatform/tmp/work/i686-mv-linux/cpio-2.5-r4/cpio-2.5"
P="cpio-2.5"
WORKDIR="/export/share/DiuIntegrationPlatform/tmp/work/i686-mv-linux/cpio-2.5-r4"
PACKAGES="cpio-dbg cpio cpio-doc cpio-dev cpio-static cpio-locale"
PROVIDES="cpio-2.5 cpio-2.5-r4 cpio "
RPROVIDES=""
RRECOMMENDS="None"




Greg

Last edited by ghgemmer; 07-24-2014 at 10:09 AM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
compilation through montavista answerme Programming 7 11-29-2011 05:54 AM
How different form Montavista and MotoMAGX? BBC-FBI Linux - Mobile 0 01-05-2009 02:52 AM
Montavista Linux Configuration atif bhatti Linux - Newbie 3 04-18-2008 03:13 PM
Montavista Linux Configuration atif bhatti Linux - Embedded & Single-board computer 2 04-18-2008 06:21 AM
req montavista pudhiyavan Linux - Distributions 2 11-25-2003 03:11 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 09:51 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration