cross devel hpkg: use suffix/subdir for secondary arch
* Libraries for a secondary architectures must be placed in a respective
subdir.
* Add a suffix to the package name when building for a secondary
architecture. Looks a bit weird
("haiku_cross_devel_sysroot_x86_gcc_x86.hpkg"), but is consistent.
This commit is contained in:
@@ -4,9 +4,16 @@
|
|||||||
# The main use of this package is to provide HaikuPorter with a development
|
# The main use of this package is to provide HaikuPorter with a development
|
||||||
# environment for a cross-build Haiku platform.
|
# environment for a cross-build Haiku platform.
|
||||||
|
|
||||||
|
local primaryArchitecture = $(HAIKU_PACKAGING_ARCHS[1]) ;
|
||||||
local architecture = $(TARGET_PACKAGING_ARCH) ;
|
local architecture = $(TARGET_PACKAGING_ARCH) ;
|
||||||
local isPrimaryArchitecture = [ MultiArchIfPrimary 1 : ] ;
|
local isPrimaryArchitecture = [ MultiArchIfPrimary 1 : ] ;
|
||||||
|
|
||||||
|
local packageNameSuffix = $(primaryArchitecture) ;
|
||||||
|
local architectureSubDir ;
|
||||||
|
if ! $(isPrimaryArchitecture) {
|
||||||
|
packageNameSuffix = $(primaryArchitecture)_$(architecture) ;
|
||||||
|
architectureSubDir = $(architecture) ;
|
||||||
|
}
|
||||||
|
|
||||||
local additionalLibraries_stage1 ;
|
local additionalLibraries_stage1 ;
|
||||||
local additionalLibraries
|
local additionalLibraries
|
||||||
@@ -17,10 +24,10 @@ for stage in _stage1 "" {
|
|||||||
# first create the actual cross development package
|
# first create the actual cross development package
|
||||||
|
|
||||||
local haikuCrossDevelSysrootPackage
|
local haikuCrossDevelSysrootPackage
|
||||||
= haiku_cross_devel_sysroot$(stage)_$(architecture).hpkg ;
|
= haiku_cross_devel_sysroot$(stage)_$(packageNameSuffix).hpkg ;
|
||||||
HaikuPackage $(haikuCrossDevelSysrootPackage) ;
|
HaikuPackage $(haikuCrossDevelSysrootPackage) ;
|
||||||
|
|
||||||
local developCrossLibDirTokens = develop lib ;
|
local developCrossLibDirTokens = develop lib $(architectureSubDir) ;
|
||||||
|
|
||||||
# glue code
|
# glue code
|
||||||
AddFilesToPackage $(developCrossLibDirTokens) :
|
AddFilesToPackage $(developCrossLibDirTokens) :
|
||||||
@@ -82,8 +89,8 @@ for stage in _stage1 "" {
|
|||||||
# system hierarchy of the target system, from where haikuporter will fetch
|
# system hierarchy of the target system, from where haikuporter will fetch
|
||||||
# it when needed.
|
# it when needed.
|
||||||
|
|
||||||
local haikuCrossDevelPackage
|
local haikuCrossDevelPackage
|
||||||
= haiku_cross_devel$(stage)_$(architecture).hpkg ;
|
= haiku_cross_devel$(stage)_$(packageNameSuffix).hpkg ;
|
||||||
HaikuPackage $(haikuCrossDevelPackage) ;
|
HaikuPackage $(haikuCrossDevelPackage) ;
|
||||||
|
|
||||||
# add the wrapped package
|
# add the wrapped package
|
||||||
|
|||||||
Reference in New Issue
Block a user