VirtualBox

Changeset 2808 in kBuild


Ignore:
Timestamp:
Jan 30, 2016 3:13:32 PM (9 years ago)
Author:
bird
Message:

tools/NASM.kmk: Look for nasm in the alternative host tools directory too. Must change directory when generating dependencies so nasm doesn't skip the full path for files in the current directory. Also generate dummy dep lines to avoid rename issues.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/kBuild/tools/NASM.kmk

    r2803 r2808  
    3636# Tool Specific Properties
    3737ifndef PATH_TOOL_NASM
    38  PATH_TOOL_NASM := $(sort $(wildcard $(KBUILD_DEVTOOLS_HST)/nasm/v*.*))
    39  ifneq ($(PATH_TOOL_NASM),)
    40   PATH_TOOL_NASM := $(call lastword,$(PATH_TOOL_NASM))
     38 PATH_TOOL_NASM := $(firstword $(rsort $(wildcard $(KBUILD_DEVTOOLS_HST)/nasm/v*.*)))
     39 if "$(PATH_TOOL_NASM)" == "" && "$(KBUILD_DEVTOOLS_HST_ALT)" != ""
     40  PATH_TOOL_NASM := $(firstword $(rsort $(wildcard $(KBUILD_DEVTOOLS_HST_ALT)/nasm/v*.*)))
    4141 endif
    4242else
     
    7777                -o $(obj)\
    7878                $(abspath $(source))
    79         $(QUIET)$(REDIRECT) -wo $(dep) -- $(TOOL_NASM_AS) -DKBUILD_GENERATING_MAKEFILE_DEPENDENCIES\
     79        $(QUIET)$(REDIRECT) -C $(PATH_OUT_BASE) -wo $(dep) -- $(TOOL_NASM_AS) -DKBUILD_GENERATING_MAKEFILE_DEPENDENCIES\
    8080                $(flags) $(addsuffix /,$(addprefix -i, $(incs))) $(addprefix -D, $(defs))\
    8181                -l $(outbase).lst\
    8282                -o $(obj)\
    8383                $(abspath $(source)) \
    84                 -M
     84                -M -MP
    8585endef
    8686
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette