diff options
Diffstat (limited to 'openembedded/classes')
| -rw-r--r-- | openembedded/classes/autotools.bbclass | 2 | ||||
| -rw-r--r-- | openembedded/classes/base.bbclass | 14 | ||||
| -rw-r--r-- | openembedded/classes/package_ipk.bbclass | 1 | ||||
| -rw-r--r-- | openembedded/classes/qt3x11.bbclass | 1 | ||||
| -rw-r--r-- | openembedded/classes/qt4x11.bbclass | 1 | ||||
| -rw-r--r-- | openembedded/classes/sourcepkg.bbclass | 2 |
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 @@ | |||
| 1 | DEPENDS += "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 @@ | |||
| 1 | DEPENDS += "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 | ||
| 49 | sourcepkg_do_archive_bb() { | 49 | sourcepkg_do_archive_bb() { |
