diff options
-rw-r--r-- | meta/conf/bitbake.conf | 54 |
1 files changed, 31 insertions, 23 deletions
diff --git a/meta/conf/bitbake.conf b/meta/conf/bitbake.conf index 840d88c58f..4292395bf6 100644 --- a/meta/conf/bitbake.conf +++ b/meta/conf/bitbake.conf | |||
@@ -167,18 +167,26 @@ S = "${WORKDIR}/${P}" | |||
167 | B = "${S}" | 167 | B = "${S}" |
168 | 168 | ||
169 | STAGING_DIR = "${TMPDIR}/staging" | 169 | STAGING_DIR = "${TMPDIR}/staging" |
170 | STAGING_BINDIR = "${STAGING_DIR}/${HOST_SYS}/bin" | 170 | |
171 | STAGING_BINDIR_CROSS = "${STAGING_DIR}/${BUILD_SYS}/bin/${HOST_SYS}" | 171 | STAGING_DIR_NATIVE = "${STAGING_DIR}/${BUILD_SYS}" |
172 | STAGING_BINDIR_NATIVE = "${STAGING_DIR}/${BUILD_SYS}/bin" | 172 | STAGING_BINDIR_NATIVE = "${STAGING_DIR_NATIVE}/bin" |
173 | STAGING_LIBDIR = "${STAGING_DIR}/${HOST_SYS}/lib" | 173 | STAGING_BINDIR_CROSS = "${STAGING_DIR_NATIVE}/bin/${HOST_SYS}" |
174 | STAGING_LIBDIR_NATIVE = "${STAGING_DIR}/${BUILD_SYS}/lib" | 174 | STAGING_LIBDIR_NATIVE = "${STAGING_DIR_NATIVE}/lib" |
175 | STAGING_ETCDIR_NATIVE = "${STAGING_DIR}/${BUILD_SYS}/etc" | 175 | STAGING_INCDIR_NATIVE = "${STAGING_DIR_NATIVE}/include" |
176 | STAGING_INCDIR = "${STAGING_DIR}/${HOST_SYS}/include" | 176 | STAGING_ETCDIR_NATIVE = "${STAGING_DIR_NATIVE}/etc" |
177 | STAGING_DATADIR = "${STAGING_DIR}/${HOST_SYS}/share" | 177 | STAGING_DATADIR_NATIVE = "${STAGING_DIR_NATIVE}/share" |
178 | STAGING_LOADER_DIR = "${STAGING_DIR}/${HOST_SYS}/loader" | 178 | |
179 | STAGING_FIRMWARE_DIR = "${STAGING_DIR}/${HOST_SYS}/firmware" | 179 | STAGING_DIR_HOST = "${STAGING_DIR}/${HOST_SYS}" |
180 | STAGING_BINDIR = "${STAGING_DIR_HOST}/bin" | ||
181 | STAGING_LIBDIR = "${STAGING_DIR_HOST}/lib" | ||
182 | STAGING_INCDIR = "${STAGING_DIR_HOST}/include" | ||
183 | STAGING_DATADIR = "${STAGING_DIR_HOST}/share" | ||
184 | STAGING_LOADER_DIR = "${STAGING_DIR_HOST}/loader" | ||
185 | STAGING_FIRMWARE_DIR = "${STAGING_DIR_HOST}/firmware" | ||
180 | STAGING_PYDIR = "${STAGING_DIR}/lib/python2.4" | 186 | STAGING_PYDIR = "${STAGING_DIR}/lib/python2.4" |
181 | 187 | ||
188 | STAGING_DIR_TARGET = "${STAGING_DIR}/${TARGET_SYS}" | ||
189 | |||
182 | DEPLOY_DIR = "${TMPDIR}/deploy" | 190 | DEPLOY_DIR = "${TMPDIR}/deploy" |
183 | DEPLOY_DIR_TAR = "${DEPLOY_DIR}/tar" | 191 | DEPLOY_DIR_TAR = "${DEPLOY_DIR}/tar" |
184 | DEPLOY_DIR_IPK = "${DEPLOY_DIR}/ipk" | 192 | DEPLOY_DIR_IPK = "${DEPLOY_DIR}/ipk" |
@@ -197,7 +205,7 @@ SDK_PREFIX = "/usr/local/${SDK_NAME}" | |||
197 | ################################################################## | 205 | ################################################################## |
198 | 206 | ||
199 | OLDEST_KERNEL = "2.4.0" | 207 | OLDEST_KERNEL = "2.4.0" |
200 | STAGING_KERNEL_DIR = "${STAGING_DIR}/${HOST_SYS}/kernel" | 208 | STAGING_KERNEL_DIR = "${STAGING_DIR_HOST}/kernel" |
201 | 209 | ||
202 | ################################################################## | 210 | ################################################################## |
203 | # Specific image creation and rootfs population info. | 211 | # Specific image creation and rootfs population info. |
@@ -290,9 +298,9 @@ PATCHRESOLVE = 'user' | |||
290 | # Build flags and options. | 298 | # Build flags and options. |
291 | ################################################################## | 299 | ################################################################## |
292 | 300 | ||
293 | export BUILD_CPPFLAGS = "-isystem${STAGING_DIR}/${BUILD_SYS}/include" | 301 | export BUILD_CPPFLAGS = "-isystem${STAGING_INCDIR_NATIVE}" |
294 | export CPPFLAGS = "${TARGET_CPPFLAGS}" | 302 | export CPPFLAGS = "${TARGET_CPPFLAGS}" |
295 | export TARGET_CPPFLAGS = "-isystem${STAGING_DIR}/${TARGET_SYS}/include" | 303 | export TARGET_CPPFLAGS = "-isystem${STAGING_DIR_TARGET}/include" |
296 | 304 | ||
297 | export BUILD_CFLAGS = "${BUILD_CPPFLAGS} ${BUILD_OPTIMIZATION}" | 305 | export BUILD_CFLAGS = "${BUILD_CPPFLAGS} ${BUILD_OPTIMIZATION}" |
298 | export CFLAGS = "${TARGET_CFLAGS}" | 306 | export CFLAGS = "${TARGET_CFLAGS}" |
@@ -302,12 +310,12 @@ export BUILD_CXXFLAGS = "${BUILD_CFLAGS} -fpermissive" | |||
302 | export CXXFLAGS = "${TARGET_CXXFLAGS}" | 310 | export CXXFLAGS = "${TARGET_CXXFLAGS}" |
303 | export TARGET_CXXFLAGS = "${TARGET_CFLAGS} -fpermissive" | 311 | export TARGET_CXXFLAGS = "${TARGET_CFLAGS} -fpermissive" |
304 | 312 | ||
305 | export BUILD_LDFLAGS = "-L${STAGING_DIR}/${BUILD_SYS}/lib \ | 313 | export BUILD_LDFLAGS = "-L${STAGING_LIBDIR_NATIVE} \ |
306 | -Wl,-rpath-link,${STAGING_DIR}/${BUILD_SYS}/lib \ | 314 | -Wl,-rpath-link,${STAGING_LIBDIR_NATIVE} \ |
307 | -Wl,-rpath,${STAGING_DIR}/${BUILD_SYS}/lib -Wl,-O1" | 315 | -Wl,-rpath,${STAGING_LIBDIR_NATIVE} -Wl,-O1" |
308 | export LDFLAGS = "${TARGET_LDFLAGS}" | 316 | export LDFLAGS = "${TARGET_LDFLAGS}" |
309 | export TARGET_LDFLAGS = "-L${STAGING_DIR}/${TARGET_SYS}/lib \ | 317 | export TARGET_LDFLAGS = "-L${STAGING_DIR_TARGET}/lib \ |
310 | -Wl,-rpath-link,${STAGING_DIR}/${TARGET_SYS}/lib \ | 318 | -Wl,-rpath-link,${STAGING_DIR_TARGET}/lib \ |
311 | -Wl,-O1" | 319 | -Wl,-O1" |
312 | 320 | ||
313 | # Which flags to leave by strip-flags() in bin/build/oebuild.sh ? | 321 | # Which flags to leave by strip-flags() in bin/build/oebuild.sh ? |
@@ -336,9 +344,9 @@ BOOTSTRAP_EXTRA_RRECOMMENDS = "" | |||
336 | # Palmtop stuff. | 344 | # Palmtop stuff. |
337 | ################################################################## | 345 | ################################################################## |
338 | 346 | ||
339 | export QTDIR = "${STAGING_DIR}/${HOST_SYS}/qt2" | 347 | export QTDIR = "${STAGING_DIR_HOST}/qt2" |
340 | export QPEDIR = "${STAGING_DIR}/${HOST_SYS}" | 348 | export QPEDIR = "${STAGING_DIR_HOST}" |
341 | export OPIEDIR = "${STAGING_DIR}/${HOST_SYS}" | 349 | export OPIEDIR = "${STAGING_DIR_HOST}" |
342 | export palmtopdir = "${libdir}/opie" | 350 | export palmtopdir = "${libdir}/opie" |
343 | export palmqtdir = "${palmtopdir}" | 351 | export palmqtdir = "${palmtopdir}" |
344 | 352 | ||
@@ -440,8 +448,8 @@ export PKG_CONFIG_DIR = "${STAGING_LIBDIR}/pkgconfig" | |||
440 | export PKG_CONFIG_PATH = "${PKG_CONFIG_DIR}:${STAGING_DATADIR}/pkgconfig" | 448 | export PKG_CONFIG_PATH = "${PKG_CONFIG_DIR}:${STAGING_DATADIR}/pkgconfig" |
441 | export PKG_CONFIG_DISABLE_UNINSTALLED = "yes" | 449 | export PKG_CONFIG_DISABLE_UNINSTALLED = "yes" |
442 | 450 | ||
443 | export QMAKE_MKSPEC_PATH = "${STAGING_DIR}/${BUILD_SYS}/share/qmake" | 451 | export QMAKE_MKSPEC_PATH = "${STAGING_DATADIR_NATIVE}/qmake" |
444 | export STAGING_SIPDIR = "${STAGING_DIR}/${BUILD_SYS}/share/sip" | 452 | export STAGING_SIPDIR = "${STAGING_DATADIR_NATIVE}/sip" |
445 | export STAGING_IDLDIR = "${STAGING_DATADIR}/idl" | 453 | export STAGING_IDLDIR = "${STAGING_DATADIR}/idl" |
446 | 454 | ||
447 | # library package naming | 455 | # library package naming |