Changeset 100474 in vbox for trunk/tools
- Timestamp:
- Jul 10, 2023 3:58:55 PM (17 months ago)
- Location:
- trunk/tools/kBuildTools
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tools/kBuildTools/VBoxXGccArm64Elf.kmk
r100472 r100474 134 134 TOOL_VBoxXGccArm64Elf_COMPILE_C_USES_KOBJCACHE = $(if-expr "$(use_objcache)" != "",1,) 135 135 define TOOL_VBoxXGccArm64Elf_COMPILE_C_CMDS 136 if "$(use_objcache)" != ""136 if "$(use_objcache)" != "" 137 137 $(QUIET)$(KOBJCACHE) -f $(outbase).koc -d $(PATH_OBJCACHE) -t $(bld_trg).$(bld_trg_arch) -p\ 138 138 --kObjCache-cpp $(outbase).i\ … … 146 146 -o $(obj)\ 147 147 - 148 else148 else 149 149 $(QUIET)$(TOOL_VBoxXGccArm64Elf_CC) -c\ 150 150 $(flags) $(qaddprefix sh,-I, $(incs)) $(qaddprefix sh,-D, $(defs))\ … … 152 152 -o $(obj)\ 153 153 $(abspath $(source)) 154 endif154 endif 155 155 $(QUIET)$(APPEND) -n "$(dep)" "" "$(source):" "" 156 156 endef … … 174 174 TOOL_VBoxXGccArm64Elf_COMPILE_CXX_USES_KOBJCACHE = $(if-expr "$(use_objcache)" != "",1,) 175 175 define TOOL_VBoxXGccArm64Elf_COMPILE_CXX_CMDS 176 if "$(use_objcache)" != ""176 if "$(use_objcache)" != "" 177 177 $(QUIET)$(KOBJCACHE) -f $(outbase).koc -d $(PATH_OBJCACHE) -t $(bld_trg).$(bld_trg_arch) -p\ 178 178 --kObjCache-cpp $(outbase).ii\ … … 187 187 -o $(obj)\ 188 188 - 189 else189 else 190 190 $(QUIET)$(TOOL_VBoxXGccArm64Elf_CXX) -c\ 191 191 $(flags) $(qaddprefix sh,-I, $($(target)_1_GCC_PCH_DIR) $(incs)) $(qaddprefix sh,-D, $(defs))\ … … 194 194 ,-Winvalid-pch -include $(basename $($(target)_1_GCC_PCH_FILE)),) \ 195 195 $(abspath $(source)) 196 endif196 endif 197 197 $(QUIET)$(APPEND) -n "$(dep)" "" "$(source):" "" 198 198 endef … … 295 295 TOOL_VBoxXGccArm64Elf_LINK_PROGRAM_OUTPUT_DEBUG = $(outbase).debug 296 296 TOOL_VBoxXGccArm64Elf_LINK_PROGRAM_DEBUG_INSTALL_FN = $(2).debug=>$(basename $(3)).debug 297 TOOL_VBoxXGccArm64Elf_LINK_PROGRAM_DEPEND = $(foreach lib,$(libs),$(if $(findstring $(lib),$(subst /,x,$(lib))),, $(lib))) \298 297 TOOL_VBoxXGccArm64Elf_LINK_PROGRAM_DEPEND = $(foreach lib,$(libs),$(if $(findstring $(lib),$(subst /,x,$(lib))),, $(lib))) \ 298 $(filter %.def, $(othersrc)) 299 299 TOOL_VBoxXGccArm64Elf_LINK_PROGRAM_DEPORD = 300 300 define TOOL_VBoxXGccArm64Elf_LINK_PROGRAM_CMDS … … 302 302 $(filter %.def, $(othersrc))\ 303 303 $(foreach p,$(libpath), -L$(p))\ 304 $(foreach lib,$(libs), $(if $(findstring $(lib),$(subst /,x,$(lib))), -l$(patsubst lib%,%,$(lib)), $(lib))) \304 $(foreach lib,$(libs), $(if $(findstring $(lib),$(subst /,x,$(lib))), -l$(patsubst lib%,%,$(lib)), $(lib))) \ 305 305 $(call TOOL_VBoxXGccArm64Elf_LD_MAP,$(outbase).map) 306 306 ifeq ($(ld_debug),split) … … 329 329 TOOL_VBoxXGccArm64Elf_LINK_DLL_OUTPUT_DEBUG = $(outbase).debug 330 330 TOOL_VBoxXGccArm64Elf_LINK_DLL_DEBUG_INSTALL_FN = $(2).debug=>$(basename $(3)).debug 331 TOOL_VBoxXGccArm64Elf_LINK_DLL_DEPEND = $(foreach lib,$(libs),$(if $(findstring $(lib),$(subst /,x,$(lib))),, $(lib))) \332 331 TOOL_VBoxXGccArm64Elf_LINK_DLL_DEPEND = $(foreach lib,$(libs),$(if $(findstring $(lib),$(subst /,x,$(lib))),, $(lib))) \ 332 $(filter %.def, $(othersrc)) 333 333 TOOL_VBoxXGccArm64Elf_LINK_DLL_DEPORD = 334 334 define TOOL_VBoxXGccArm64Elf_LINK_DLL_CMDS … … 338 338 $(filter %.def, $(othersrc))\ 339 339 $(foreach p,$(libpath), -L$(p))\ 340 $(foreach lib,$(libs), $(if $(findstring $(lib),$(subst /,x,$(lib))), -l$(patsubst lib%,%,$(lib)), $(lib))) \340 $(foreach lib,$(libs), $(if $(findstring $(lib),$(subst /,x,$(lib))), -l$(patsubst lib%,%,$(lib)), $(lib))) \ 341 341 $(call TOOL_VBoxXGccArm64Elf_LD_MAP,$(outbase).map) 342 342 ifeq ($(ld_debug),split) … … 365 365 TOOL_VBoxXGccArm64Elf_LINK_SYSMOD_OUTPUT_DEBUG = $(outbase).debug 366 366 TOOL_VBoxXGccArm64Elf_LINK_SYSMOD_DEBUG_INSTALL_FN = $(2).debug=>$(basename $(3)).debug 367 TOOL_VBoxXGccArm64Elf_LINK_SYSMOD_DEPEND = $(foreach lib,$(libs),$(if $(findstring $(lib),$(subst /,x,$(lib))),, $(lib))) \368 367 TOOL_VBoxXGccArm64Elf_LINK_SYSMOD_DEPEND = $(foreach lib,$(libs),$(if $(findstring $(lib),$(subst /,x,$(lib))),, $(lib))) \ 368 $(filter %.def, $(othersrc)) 369 369 TOOL_VBoxXGccArm64Elf_LINK_SYSMOD_DEPORD = 370 370 define TOOL_VBoxXGccArm64Elf_LINK_SYSMOD_CMDS 371 $(QUIET)$(TOOL_VBoxXGccArm64Elf_LD_SYSMOD) $(TOOL_VBoxXGccArm64Elf_LDFLAGS.sysmod) $(flags) -o $(out) $(filter-out %.h.gch,$(objs)) \371 $(QUIET)$(TOOL_VBoxXGccArm64Elf_LD_SYSMOD) $(TOOL_VBoxXGccArm64Elf_LDFLAGS.sysmod) $(flags) -o $(out) $(filter-out %.h.gch,$(objs)) \ 372 372 $(filter %.def, $(othersrc))\ 373 373 $(foreach p,$(libpath), -L$(p))\ -
trunk/tools/kBuildTools/VBoxXGccArmNoneEabi.kmk
r100472 r100474 134 134 TOOL_VBoxXGccArmNoneEabi_COMPILE_C_USES_KOBJCACHE = $(if-expr "$(use_objcache)" != "",1,) 135 135 define TOOL_VBoxXGccArmNoneEabi_COMPILE_C_CMDS 136 if "$(use_objcache)" != ""136 if "$(use_objcache)" != "" 137 137 $(QUIET)$(KOBJCACHE) -f $(outbase).koc -d $(PATH_OBJCACHE) -t $(bld_trg).$(bld_trg_arch) -p\ 138 138 --kObjCache-cpp $(outbase).i\ … … 146 146 -o $(obj)\ 147 147 - 148 else148 else 149 149 $(QUIET)$(TOOL_VBoxXGccArmNoneEabi_CC) -c\ 150 150 $(flags) $(qaddprefix sh,-I, $(incs)) $(qaddprefix sh,-D, $(defs))\ … … 152 152 -o $(obj)\ 153 153 $(abspath $(source)) 154 endif154 endif 155 155 $(QUIET)$(APPEND) -n "$(dep)" "" "$(source):" "" 156 156 endef … … 174 174 TOOL_VBoxXGccArmNoneEabi_COMPILE_CXX_USES_KOBJCACHE = $(if-expr "$(use_objcache)" != "",1,) 175 175 define TOOL_VBoxXGccArmNoneEabi_COMPILE_CXX_CMDS 176 if "$(use_objcache)" != ""176 if "$(use_objcache)" != "" 177 177 $(QUIET)$(KOBJCACHE) -f $(outbase).koc -d $(PATH_OBJCACHE) -t $(bld_trg).$(bld_trg_arch) -p\ 178 178 --kObjCache-cpp $(outbase).ii\ … … 187 187 -o $(obj)\ 188 188 - 189 else189 else 190 190 $(QUIET)$(TOOL_VBoxXGccArmNoneEabi_CXX) -c\ 191 191 $(flags) $(qaddprefix sh,-I, $($(target)_1_GCC_PCH_DIR) $(incs)) $(qaddprefix sh,-D, $(defs))\ … … 194 194 ,-Winvalid-pch -include $(basename $($(target)_1_GCC_PCH_FILE)),) \ 195 195 $(abspath $(source)) 196 endif196 endif 197 197 $(QUIET)$(APPEND) -n "$(dep)" "" "$(source):" "" 198 198 endef … … 270 270 $(foreach o,$(filter-out %.def %.imp %.dll,$(othersrc)), 'ADDLIB $(o)') 271 271 $(if $(filter %.def %.imp %.dll,$(othersrc))\ 272 ,$(TOOL_VBoxXGccArmNoneEabi_AR_IMP) -o $(outbase).imp.a $(filter %.def %.imp %.dll,$(othersrc)) \272 ,$(TOOL_VBoxXGccArmNoneEabi_AR_IMP) -o $(outbase).imp.a $(filter %.def %.imp %.dll,$(othersrc)) \ 273 273 $(NL)$(TAB)$(QUIET)$(APPEND) $(out).ar-script 'ADDLIB $(outbase).imp.a') 274 274 $(QUIET)$(APPEND) $(out).ar-script 'SAVE' … … 295 295 TOOL_VBoxXGccArmNoneEabi_LINK_PROGRAM_OUTPUT_DEBUG = $(outbase).debug 296 296 TOOL_VBoxXGccArmNoneEabi_LINK_PROGRAM_DEBUG_INSTALL_FN = $(2).debug=>$(basename $(3)).debug 297 TOOL_VBoxXGccArmNoneEabi_LINK_PROGRAM_DEPEND = $(foreach lib,$(libs),$(if $(findstring $(lib),$(subst /,x,$(lib))),, $(lib))) \298 297 TOOL_VBoxXGccArmNoneEabi_LINK_PROGRAM_DEPEND = $(foreach lib,$(libs),$(if $(findstring $(lib),$(subst /,x,$(lib))),, $(lib))) \ 298 $(filter %.def, $(othersrc)) 299 299 TOOL_VBoxXGccArmNoneEabi_LINK_PROGRAM_DEPORD = 300 300 define TOOL_VBoxXGccArmNoneEabi_LINK_PROGRAM_CMDS … … 302 302 $(filter %.def, $(othersrc))\ 303 303 $(foreach p,$(libpath), -L$(p))\ 304 $(foreach lib,$(libs), $(if $(findstring $(lib),$(subst /,x,$(lib))), -l$(patsubst lib%,%,$(lib)), $(lib))) \304 $(foreach lib,$(libs), $(if $(findstring $(lib),$(subst /,x,$(lib))), -l$(patsubst lib%,%,$(lib)), $(lib))) \ 305 305 $(call TOOL_VBoxXGccArmNoneEabi_LD_MAP,$(outbase).map) 306 306 ifeq ($(ld_debug),split) … … 329 329 TOOL_VBoxXGccArmNoneEabi_LINK_DLL_OUTPUT_DEBUG = $(outbase).debug 330 330 TOOL_VBoxXGccArmNoneEabi_LINK_DLL_DEBUG_INSTALL_FN = $(2).debug=>$(basename $(3)).debug 331 TOOL_VBoxXGccArmNoneEabi_LINK_DLL_DEPEND = $(foreach lib,$(libs),$(if $(findstring $(lib),$(subst /,x,$(lib))),, $(lib))) \332 331 TOOL_VBoxXGccArmNoneEabi_LINK_DLL_DEPEND = $(foreach lib,$(libs),$(if $(findstring $(lib),$(subst /,x,$(lib))),, $(lib))) \ 332 $(filter %.def, $(othersrc)) 333 333 TOOL_VBoxXGccArmNoneEabi_LINK_DLL_DEPORD = 334 334 define TOOL_VBoxXGccArmNoneEabi_LINK_DLL_CMDS 335 335 $(QUIET)$(TOOL_VBoxXGccArmNoneEabi_LD) $(TOOL_VBoxXGccArmNoneEabi_LDFLAGS.dll) $(flags) -o $(out)\ 336 $(if $(filter-out win os2, $(KBUILD_TARGET)),$(call TOOL_VBoxXGccArmNoneEabi_LD_SONAME,$(target),$(out))) \336 $(if $(filter-out win os2, $(KBUILD_TARGET)),$(call TOOL_VBoxXGccArmNoneEabi_LD_SONAME,$(target),$(out))) \ 337 337 $(filter-out %.h.gch,$(objs))\ 338 338 $(filter %.def, $(othersrc))\ 339 339 $(foreach p,$(libpath), -L$(p))\ 340 $(foreach lib,$(libs), $(if $(findstring $(lib),$(subst /,x,$(lib))), -l$(patsubst lib%,%,$(lib)), $(lib))) \340 $(foreach lib,$(libs), $(if $(findstring $(lib),$(subst /,x,$(lib))), -l$(patsubst lib%,%,$(lib)), $(lib))) \ 341 341 $(call TOOL_VBoxXGccArmNoneEabi_LD_MAP,$(outbase).map) 342 342 ifeq ($(ld_debug),split) … … 365 365 TOOL_VBoxXGccArmNoneEabi_LINK_SYSMOD_OUTPUT_DEBUG = $(outbase).debug 366 366 TOOL_VBoxXGccArmNoneEabi_LINK_SYSMOD_DEBUG_INSTALL_FN = $(2).debug=>$(basename $(3)).debug 367 TOOL_VBoxXGccArmNoneEabi_LINK_SYSMOD_DEPEND = $(foreach lib,$(libs),$(if $(findstring $(lib),$(subst /,x,$(lib))),, $(lib))) \368 367 TOOL_VBoxXGccArmNoneEabi_LINK_SYSMOD_DEPEND = $(foreach lib,$(libs),$(if $(findstring $(lib),$(subst /,x,$(lib))),, $(lib))) \ 368 $(filter %.def, $(othersrc)) 369 369 TOOL_VBoxXGccArmNoneEabi_LINK_SYSMOD_DEPORD = 370 370 define TOOL_VBoxXGccArmNoneEabi_LINK_SYSMOD_CMDS 371 $(QUIET)$(TOOL_VBoxXGccArmNoneEabi_LD_SYSMOD) $(TOOL_VBoxXGccArmNoneEabi_LDFLAGS.sysmod) $(flags) -o $(out) $(filter-out %.h.gch,$(objs)) \371 $(QUIET)$(TOOL_VBoxXGccArmNoneEabi_LD_SYSMOD) $(TOOL_VBoxXGccArmNoneEabi_LDFLAGS.sysmod) $(flags) -o $(out) $(filter-out %.h.gch,$(objs)) \ 372 372 $(filter %.def, $(othersrc))\ 373 373 $(foreach p,$(libpath), -L$(p))\ 374 $(foreach lib,$(libs), $(if $(findstring $(lib),$(subst /,x,$(lib))), -l$(patsubst lib%,%,$(lib)), $(lib))) \374 $(foreach lib,$(libs), $(if $(findstring $(lib),$(subst /,x,$(lib))), -l$(patsubst lib%,%,$(lib)), $(lib))) \ 375 375 $(call TOOL_VBoxXGccArmNoneEabi_LD_SYSMOD_MAP,$(outbase).map) 376 376 ifeq ($(ld_debug),split)
Note:
See TracChangeset
for help on using the changeset viewer.