diff options
| author | Richard Purdie <richard@openedhand.com> | 2005-10-10 10:41:35 +0000 |
|---|---|---|
| committer | Richard Purdie <richard@openedhand.com> | 2005-10-10 10:41:35 +0000 |
| commit | cbf3ef91305558fb8a59e19c5987a9e9ca22013a (patch) | |
| tree | f7142e57734a8b2fac92ff758a6617d4464a82f9 /openembedded/classes | |
| parent | 562d4d35878bb644cbe2b9f23ef407fd6e1e38e2 (diff) | |
| download | poky-cbf3ef91305558fb8a59e19c5987a9e9ca22013a.tar.gz | |
Merge changes from mainline OE to try and keep us in sync.
git-svn-id: https://svn.o-hand.com/repos/poky@127 311d38ba-8fff-0310-9ca6-ca027cbcb966
Diffstat (limited to 'openembedded/classes')
| -rw-r--r-- | openembedded/classes/autotools.bbclass | 12 | ||||
| -rw-r--r-- | openembedded/classes/binconfig.bbclass | 4 | ||||
| -rw-r--r-- | openembedded/classes/efl.bbclass | 4 | ||||
| -rw-r--r-- | openembedded/classes/kernel.bbclass | 4 | ||||
| -rw-r--r-- | openembedded/classes/qt3x11.bbclass | 1 | ||||
| -rw-r--r-- | openembedded/classes/qt4x11.bbclass | 1 | ||||
| -rw-r--r-- | openembedded/classes/sourcepkg.bbclass | 4 |
7 files changed, 24 insertions, 6 deletions
diff --git a/openembedded/classes/autotools.bbclass b/openembedded/classes/autotools.bbclass index ec1d4af1a4..8d448ce0d3 100644 --- a/openembedded/classes/autotools.bbclass +++ b/openembedded/classes/autotools.bbclass | |||
| @@ -150,4 +150,16 @@ autotools_stage_includes() { | |||
| 150 | fi | 150 | fi |
| 151 | } | 151 | } |
| 152 | 152 | ||
| 153 | autotools_stage_all() { | ||
| 154 | if [ "${INHIBIT_AUTO_STAGE}" != "1" ] | ||
| 155 | then | ||
| 156 | rm -rf ${STAGE_TEMP} | ||
| 157 | mkdir -p ${STAGE_TEMP} | ||
| 158 | oe_runmake DESTDIR="${STAGE_TEMP}" install | ||
| 159 | cp -pPR ${STAGE_TEMP}/${includedir}/* ${STAGING_INCDIR} | ||
| 160 | cp -pPR ${STAGE_TEMP}/${libdir}/* ${STAGING_LIBDIR} | ||
| 161 | rm -rf ${STAGE_TEMP} | ||
| 162 | fi | ||
| 163 | } | ||
| 164 | |||
| 153 | EXPORT_FUNCTIONS do_configure do_install | 165 | EXPORT_FUNCTIONS do_configure do_install |
diff --git a/openembedded/classes/binconfig.bbclass b/openembedded/classes/binconfig.bbclass index a599dec3f2..bf15ebcdf9 100644 --- a/openembedded/classes/binconfig.bbclass +++ b/openembedded/classes/binconfig.bbclass | |||
| @@ -24,8 +24,10 @@ def is_native(d): | |||
| 24 | import bb.data | 24 | import bb.data |
| 25 | return ["","-native"][bb.data.inherits_class('native', d)] | 25 | return ["","-native"][bb.data.inherits_class('native', d)] |
| 26 | 26 | ||
| 27 | BINCONFIG_GLOB ?= "*-config" | ||
| 28 | |||
| 27 | do_stage_append() { | 29 | do_stage_append() { |
| 28 | for config in `find ${S} -name '*-config'`; do | 30 | for config in `find ${S} -name '${BINCONFIG_GLOB}'`; do |
| 29 | configname=`basename $config`${@is_native(d)} | 31 | configname=`basename $config`${@is_native(d)} |
| 30 | install -d ${STAGING_BINDIR} | 32 | install -d ${STAGING_BINDIR} |
| 31 | cat $config | sed ${@get_binconfig_mangle(d)} > ${STAGING_BINDIR}/$configname | 33 | cat $config | sed ${@get_binconfig_mangle(d)} > ${STAGING_BINDIR}/$configname |
diff --git a/openembedded/classes/efl.bbclass b/openembedded/classes/efl.bbclass index 16c2dba0b8..964748e85c 100644 --- a/openembedded/classes/efl.bbclass +++ b/openembedded/classes/efl.bbclass | |||
| @@ -38,6 +38,10 @@ export ESMART_CONFIG = "${STAGING_BINDIR}/esmart-config${@binconfig_suffix(d)}" | |||
| 38 | export FREETYPE_CONFIG = "${STAGING_BINDIR}/freetype-config${@binconfig_suffix(d)}" | 38 | export FREETYPE_CONFIG = "${STAGING_BINDIR}/freetype-config${@binconfig_suffix(d)}" |
| 39 | export IMLIB2_CONFIG = "${STAGING_BINDIR}/imlib2-config${@binconfig_suffix(d)}" | 39 | export IMLIB2_CONFIG = "${STAGING_BINDIR}/imlib2-config${@binconfig_suffix(d)}" |
| 40 | 40 | ||
| 41 | do_compile_prepend() { | ||
| 42 | find ${S} -name Makefile | xargs sed -i 's:/usr/include:${STAGING_INCDIR}:' | ||
| 43 | } | ||
| 44 | |||
| 41 | do_stage_append () { | 45 | do_stage_append () { |
| 42 | for i in ${libraries} | 46 | for i in ${libraries} |
| 43 | do | 47 | do |
diff --git a/openembedded/classes/kernel.bbclass b/openembedded/classes/kernel.bbclass index ff9aeeab78..df676c5a8d 100644 --- a/openembedded/classes/kernel.bbclass +++ b/openembedded/classes/kernel.bbclass | |||
| @@ -60,7 +60,9 @@ PACKAGE_ARCH = "${MACHINE_ARCH}" | |||
| 60 | kernel_do_compile() { | 60 | kernel_do_compile() { |
| 61 | unset CFLAGS CPPFLAGS CXXFLAGS LDFLAGS | 61 | unset CFLAGS CPPFLAGS CXXFLAGS LDFLAGS |
| 62 | oe_runmake include/linux/version.h CC="${KERNEL_CC}" LD="${KERNEL_LD}" | 62 | oe_runmake include/linux/version.h CC="${KERNEL_CC}" LD="${KERNEL_LD}" |
| 63 | oe_runmake dep CC="${KERNEL_CC}" LD="${KERNEL_LD}" | 63 | if ${KERNEL_MAJOR_VERSION} != "2.6"; then |
| 64 | oe_runmake dep CC="${KERNEL_CC}" LD="${KERNEL_LD}" | ||
| 65 | fi | ||
| 64 | oe_runmake ${KERNEL_IMAGETYPE} CC="${KERNEL_CC}" LD="${KERNEL_LD}" | 66 | oe_runmake ${KERNEL_IMAGETYPE} CC="${KERNEL_CC}" LD="${KERNEL_LD}" |
| 65 | if (grep -q -i -e '^CONFIG_MODULES=y$' .config); then | 67 | if (grep -q -i -e '^CONFIG_MODULES=y$' .config); then |
| 66 | oe_runmake modules CC="${KERNEL_CC}" LD="${KERNEL_LD}" | 68 | oe_runmake modules CC="${KERNEL_CC}" LD="${KERNEL_LD}" |
diff --git a/openembedded/classes/qt3x11.bbclass b/openembedded/classes/qt3x11.bbclass index 1023a1f800..09b9cbac96 100644 --- a/openembedded/classes/qt3x11.bbclass +++ b/openembedded/classes/qt3x11.bbclass | |||
| @@ -1,4 +1,3 @@ | |||
| 1 | DEPENDS += "qt3-x11" | ||
| 2 | # | 1 | # |
| 3 | # override variables set by qmake-base to compile Qt/X11 apps | 2 | # override variables set by qmake-base to compile Qt/X11 apps |
| 4 | # | 3 | # |
diff --git a/openembedded/classes/qt4x11.bbclass b/openembedded/classes/qt4x11.bbclass index 92885aa7ee..d4ca0073df 100644 --- a/openembedded/classes/qt4x11.bbclass +++ b/openembedded/classes/qt4x11.bbclass | |||
| @@ -1,4 +1,3 @@ | |||
| 1 | DEPENDS += "qt4-x11" | ||
| 2 | # | 1 | # |
| 3 | # override variables set by qmake-base to compile Qt/X11 apps | 2 | # override variables set by qmake-base to compile Qt/X11 apps |
| 4 | # | 3 | # |
diff --git a/openembedded/classes/sourcepkg.bbclass b/openembedded/classes/sourcepkg.bbclass index 3eeff91333..390d3684d4 100644 --- a/openembedded/classes/sourcepkg.bbclass +++ b/openembedded/classes/sourcepkg.bbclass | |||
| @@ -1,5 +1,5 @@ | |||
| 1 | DEPLOY_DIR_SRC ?= "${DEPLOY_DIR}/source" | 1 | DEPLOY_DIR_SRC ?= "${DEPLOY_DIR}/source" |
| 2 | EXCLUDE_FROM ?= ".pc" | 2 | EXCLUDE_FROM ?= ".pc autom4te.cache" |
| 3 | 3 | ||
| 4 | # used as part of a path. make sure it's set | 4 | # used as part of a path. make sure it's set |
| 5 | DISTRO ?= "openembedded" | 5 | DISTRO ?= "openembedded" |
| @@ -42,7 +42,7 @@ sourcepkg_do_create_orig_tgz(){ | |||
| 42 | 42 | ||
| 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 --exclude-from temp/exclude-from-file $src_tree |
| 46 | cp -pPR $src_tree $src_tree.orig | 46 | cp -pPR $src_tree $src_tree.orig |
| 47 | } | 47 | } |
| 48 | 48 | ||
