summaryrefslogtreecommitdiffstats
path: root/openembedded/classes
diff options
context:
space:
mode:
authorRichard Purdie <richard@openedhand.com>2005-09-20 07:04:35 +0000
committerRichard Purdie <richard@openedhand.com>2005-09-20 07:04:35 +0000
commitb4a7122cacef647dbec3db5c9ebe1e504a7670df (patch)
tree006885a1f4e8032062632ee1a091e72c32dd2810 /openembedded/classes
parentf9e1d16bfa73a2df5254c63ae1abb6a4bbe0a062 (diff)
downloadpoky-b4a7122cacef647dbec3db5c9ebe1e504a7670df.tar.gz
Updates against mainline OE
git-svn-id: https://svn.o-hand.com/repos/poky@26 311d38ba-8fff-0310-9ca6-ca027cbcb966
Diffstat (limited to 'openembedded/classes')
-rw-r--r--openembedded/classes/autotools.bbclass2
-rw-r--r--openembedded/classes/base.bbclass14
-rw-r--r--openembedded/classes/package_ipk.bbclass1
-rw-r--r--openembedded/classes/qt3x11.bbclass1
-rw-r--r--openembedded/classes/qt4x11.bbclass1
-rw-r--r--openembedded/classes/sourcepkg.bbclass2
6 files changed, 16 insertions, 5 deletions
diff --git a/openembedded/classes/autotools.bbclass b/openembedded/classes/autotools.bbclass
index 8a387da5ca..ec1d4af1a4 100644
--- a/openembedded/classes/autotools.bbclass
+++ b/openembedded/classes/autotools.bbclass
@@ -145,7 +145,7 @@ autotools_stage_includes() {
145 rm -rf ${STAGE_TEMP} 145 rm -rf ${STAGE_TEMP}
146 mkdir -p ${STAGE_TEMP} 146 mkdir -p ${STAGE_TEMP}
147 make DESTDIR="${STAGE_TEMP}" install 147 make DESTDIR="${STAGE_TEMP}" install
148 cp -a ${STAGE_TEMP}/${includedir}/* ${STAGING_INCDIR} 148 cp -pPR ${STAGE_TEMP}/${includedir}/* ${STAGING_INCDIR}
149 rm -rf ${STAGE_TEMP} 149 rm -rf ${STAGE_TEMP}
150 fi 150 fi
151} 151}
diff --git a/openembedded/classes/base.bbclass b/openembedded/classes/base.bbclass
index 37254b94ba..18d51a02ed 100644
--- a/openembedded/classes/base.bbclass
+++ b/openembedded/classes/base.bbclass
@@ -371,7 +371,7 @@ def oe_unpack_file(file, data, url = None):
371 destdir = "." 371 destdir = "."
372 elif not os.access("%s/%s" % (os.getcwd(), destdir), os.F_OK): 372 elif not os.access("%s/%s" % (os.getcwd(), destdir), os.F_OK):
373 os.makedirs("%s/%s" % (os.getcwd(), destdir)) 373 os.makedirs("%s/%s" % (os.getcwd(), destdir))
374 cmd = 'cp -a %s %s/%s/' % (file, os.getcwd(), destdir) 374 cmd = 'cp -pPR %s %s/%s/' % (file, os.getcwd(), destdir)
375 else: 375 else:
376 (type, host, path, user, pswd, parm) = bb.decodeurl(url) 376 (type, host, path, user, pswd, parm) = bb.decodeurl(url)
377 if not 'patch' in parm: 377 if not 'patch' in parm:
@@ -496,8 +496,16 @@ python base_eventhandler() {
496 note(msg) 496 note(msg)
497 497
498 if name.startswith("BuildStarted"): 498 if name.startswith("BuildStarted"):
499 statusvars = ['TARGET_ARCH', 'TARGET_OS', 'MACHINE', 'DISTRO', 499 bb.data.setVar( 'BB_VERSION', bb.__version__, e.data )
500 'TARGET_FPU'] 500 path_to_bbfiles = bb.data.getVar( 'BBFILES', e.data, 1 )
501 path_to_packages = path_to_bbfiles[:path_to_bbfiles.index( "packages" )]
502 monotone_revision = "<unknown>"
503 try:
504 monotone_revision = file( "%s/MT/revision" % path_to_packages ).read().strip()
505 except IOError:
506 pass
507 bb.data.setVar( 'OE_REVISION', monotone_revision, e.data )
508 statusvars = ['BB_VERSION', 'OE_REVISION', 'TARGET_ARCH', 'TARGET_OS', 'MACHINE', 'DISTRO', 'TARGET_FPU']
501 statuslines = ["%-13s = \"%s\"" % (i, bb.data.getVar(i, e.data, 1) or '') for i in statusvars] 509 statuslines = ["%-13s = \"%s\"" % (i, bb.data.getVar(i, e.data, 1) or '') for i in statusvars]
502 statusmsg = "\nOE Build Configuration:\n%s\n" % '\n'.join(statuslines) 510 statusmsg = "\nOE Build Configuration:\n%s\n" % '\n'.join(statuslines)
503 print statusmsg 511 print statusmsg
diff --git a/openembedded/classes/package_ipk.bbclass b/openembedded/classes/package_ipk.bbclass
index 3c6125d9e3..6d3e1eb686 100644
--- a/openembedded/classes/package_ipk.bbclass
+++ b/openembedded/classes/package_ipk.bbclass
@@ -145,6 +145,7 @@ python do_package_ipk () {
145 fields.append(["Maintainer: %s\n", ['MAINTAINER']]) 145 fields.append(["Maintainer: %s\n", ['MAINTAINER']])
146 fields.append(["Architecture: %s\n", ['PACKAGE_ARCH']]) 146 fields.append(["Architecture: %s\n", ['PACKAGE_ARCH']])
147 fields.append(["OE: %s\n", ['P']]) 147 fields.append(["OE: %s\n", ['P']])
148 fields.append(["Homepage: %s\n", ['HOMEPAGE']])
148 149
149 def pullData(l, d): 150 def pullData(l, d):
150 l2 = [] 151 l2 = []
diff --git a/openembedded/classes/qt3x11.bbclass b/openembedded/classes/qt3x11.bbclass
index 09b9cbac96..1023a1f800 100644
--- a/openembedded/classes/qt3x11.bbclass
+++ b/openembedded/classes/qt3x11.bbclass
@@ -1,3 +1,4 @@
1DEPENDS += "qt3-x11"
1# 2#
2# override variables set by qmake-base to compile Qt/X11 apps 3# override variables set by qmake-base to compile Qt/X11 apps
3# 4#
diff --git a/openembedded/classes/qt4x11.bbclass b/openembedded/classes/qt4x11.bbclass
index d4ca0073df..92885aa7ee 100644
--- a/openembedded/classes/qt4x11.bbclass
+++ b/openembedded/classes/qt4x11.bbclass
@@ -1,3 +1,4 @@
1DEPENDS += "qt4-x11"
1# 2#
2# override variables set by qmake-base to compile Qt/X11 apps 3# override variables set by qmake-base to compile Qt/X11 apps
3# 4#
diff --git a/openembedded/classes/sourcepkg.bbclass b/openembedded/classes/sourcepkg.bbclass
index ee022c99d2..3eeff91333 100644
--- a/openembedded/classes/sourcepkg.bbclass
+++ b/openembedded/classes/sourcepkg.bbclass
@@ -43,7 +43,7 @@ sourcepkg_do_create_orig_tgz(){
43 echo $src_tree 43 echo $src_tree
44 oenote "Creating .orig.tar.gz in ${DEPLOY_DIR_SRC}/${P}.orig.tar.gz" 44 oenote "Creating .orig.tar.gz in ${DEPLOY_DIR_SRC}/${P}.orig.tar.gz"
45 tar cvzf ${DEPLOY_DIR_SRC}/${P}.orig.tar.gz $src_tree --exclude-from temp/exclude-from-file 45 tar cvzf ${DEPLOY_DIR_SRC}/${P}.orig.tar.gz $src_tree --exclude-from temp/exclude-from-file
46 cp -a $src_tree $src_tree.orig 46 cp -pPR $src_tree $src_tree.orig
47} 47}
48 48
49sourcepkg_do_archive_bb() { 49sourcepkg_do_archive_bb() {