Changeset 443 for trunk/openjdk/jdk


Ignore:
Timestamp:
Aug 25, 2016, 4:54:34 PM (9 years ago)
Author:
dmik
Message:

Adjust the makefiles to RPM/YUM UNIXROOT toolchain.

It should still be possible to build OpenJDK w/o RPM/YUM or
UNIXROOT by having manual configuration variable assigments
and binary tools installation but this setup is no longer
supported by us (and therefore all binary tools are
removed from SVN). Note that the RPM environment usually
contains much more recent versions of all utilities needed
for the build.

Location:
trunk/openjdk/jdk/make/common/shared
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/openjdk/jdk/make/common/shared/Defs-os2.gmk

    r310 r443  
    8484  UNIXCOMMAND_PATH       :=$(call PrefixPath,$(fxALT_UNIXCOMMAND_PATH))
    8585else
    86   # assume commands are in PATH
    87   UNIXCOMMAND_PATH :=
     86  ifdef UNIXROOT
     87    # assume UNIXROOT is properly set (note: /bin is not used on OS/2)
     88    UNIXCOMMAND_PATH := $(subst \,/,$(UNIXROOT)/usr/bin/)
     89  else
     90    # assume commands are in PATH
     91    UNIXCOMMAND_PATH :=
     92  endif
    8893endif
    8994UNIXCOMMAND_PATH:=$(call AltCheckSpaces,UNIXCOMMAND_PATH)
     95
     96# USRBIN_PATH: path to where the most common Unix commands are.
     97#  NOTE: Must end with / so that it could be empty, allowing PATH usage.
     98ifdef ALT_USRBIN_PATH
     99  xALT_USRBIN_PATH  :="$(subst \,/,$(ALT_USRBIN_PATH))"
     100  fxALT_USRBIN_PATH :=$(call FullPath,$(xALT_USRBIN_PATH))
     101  USRBIN_PATH       :=$(call PrefixPath,$(fxALT_USRBIN_PATH))
     102else
     103  ifdef UNIXROOT
     104    # assume UNIXROOT is properly set
     105    USRBIN_PATH := $(subst \,/,$(UNIXROOT)/usr/bin/)
     106  else
     107    # assume commands are in PATH
     108    USRBIN_PATH :=
     109  endif
     110endif
     111USRBIN_PATH:=$(call AltCheckSpaces,USRBIN_PATH)
    90112
    91113# SLASH_JAVA: location of all network accessable files
  • trunk/openjdk/jdk/make/common/shared/Defs-utils.gmk

    r278 r443  
    6161endif
    6262
    63 ifeq ($(filter-out windows os2,$(PLATFORM)),)
     63ifeq ($(PLATFORM),windows)
    6464  UTILS_COMMAND_PATH=$(UNIXCOMMAND_PATH)
    6565  UTILS_USR_BIN_PATH=$(UNIXCOMMAND_PATH)
    6666  UTILS_CCS_BIN_PATH=$(UNIXCOMMAND_PATH)
     67  UTILS_DEVTOOL_PATH=$(DEVTOOLS_PATH)
     68endif
     69
     70ifeq ($(PLATFORM),os2)
     71  UTILS_COMMAND_PATH=$(UNIXCOMMAND_PATH)
     72  UTILS_USR_BIN_PATH=$(USRBIN_PATH)
     73  UTILS_CCS_BIN_PATH=$(USRBIN_PATH)
    6774  UTILS_DEVTOOL_PATH=$(DEVTOOLS_PATH)
    6875endif
     
    182189# OS/2 specific
    183190ifeq ($(PLATFORM),os2)
    184   ECHO   = $(UNIXCOMMAND_PATH)echo -e
    185   NAWK   = $(UNIXCOMMAND_PATH)awk
     191  ECHO   = $(UTILS_COMMAND_PATH)echo -e
     192  NAWK   = $(UTILS_COMMAND_PATH)awk
    186193endif
    187194
Note: See TracChangeset for help on using the changeset viewer.