More work towards hybrid support

* All packaging architecture dependent variables do now have a
  respective suffix and are set up for each configured packaging
  architecture, save for the kernel and boot loader variables, which
  are still only set up for the primary architecture.
  For convenience TARGET_PACKAGING_ARCH, TARGET_ARCH, TARGET_LIBSUPC++,
  and TARGET_LIBSTDC++ are set to the respective values for the primary
  packaging architecture by default.
* Introduce a set of MultiArch* rules to help with building targets for
  multiple packaging architectures. Generally the respective targets are
  (additionally) gristed with the packaging architecture. For libraries
  the additional grist is usually omitted for the primary architecture
  (e.g. libroot.so and <x86>libroot.so for x86_gcc2/x86 hybrid), so that
  Jamfiles for targets built only for the primary architecture don't
  need to be changed.
* Add multi-arch build support for all targets needed for the stage 1
  cross devel package as well as for libbe (untested).
This commit is contained in:
Ingo Weinhold
2013-08-01 08:54:06 +02:00
parent 159663ceba
commit b0944c78b0
338 changed files with 4208 additions and 3303 deletions
+26 -15
View File
@@ -6,23 +6,34 @@ UsePrivateHeaders kernel ;
UsePrivateHeaders libroot ;
UsePrivateHeaders runtime_loader ;
UsePrivateHeaders shared ;
UsePrivateSystemHeaders ;
SubDirHdrs [ FDirName $(SUBDIR) arch ] ;
SEARCH_SOURCE += [ FDirName $(SUBDIR) arch $(TARGET_ARCH) ] ;
local architectureObject ;
for architectureObject in [ MultiArchSubDirSetup ] {
on $(architectureObject) {
local architecture = $(TARGET_PACKAGING_ARCH) ;
SharedLibrary libdebug.so :
debug_support.cpp
DebugContext.cpp
DebugEventStream.cpp
DebugLooper.cpp
DebugMessageHandler.cpp
Image.cpp
SymbolLookup.cpp
TeamDebugger.cpp
UsePrivateSystemHeaders ;
# architecture specific
arch_debug_support.cpp
SEARCH_SOURCE += [ FDirName $(SUBDIR) arch $(TARGET_ARCH) ] ;
: be $(TARGET_LIBSUPC++)
;
local libroot = [ MultiArchConditionalGristFiles libdebug.so
: : $(architecture) ] ;
SharedLibrary [ MultiArchDefaultGristFiles libdebug.so ] :
debug_support.cpp
DebugContext.cpp
DebugEventStream.cpp
DebugLooper.cpp
DebugMessageHandler.cpp
Image.cpp
SymbolLookup.cpp
TeamDebugger.cpp
# architecture specific
arch_debug_support.cpp
: be $(TARGET_LIBSUPC++)
;
}
}