Changeset 10


Ignore:
Timestamp:
Jun 8, 2010, 2:31:31 PM (15 years ago)
Author:
dmik
Message:

make: More support for the OS/2 platform.

Location:
trunk/openjdk/jdk/make/common
Files:
4 edited

Legend:

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

    r7 r10  
    5656endif
    5757
    58 # for backwards compatability, the old "win32" is used here instead of
    59 # the more proper "windows"
     58# platform specific include files
    6059PLATFORM_INCLUDE_NAME = os2
    6160PLATFORM_INCLUDE      = $(INCLUDEDIR)/$(PLATFORM_INCLUDE_NAME)
  • trunk/openjdk/jdk/make/common/shared/Defs-os2.gmk

    r7 r10  
    6262endef
    6363
     64# System drive
     65ifdef SYSTEM_INI
     66  _system_drive :=$(firstword $(subst :, ,$(SYSTEM_INI))):
     67endif
     68_system_drive:=$(call CheckValue,_system_drive,C:)
     69
     70# Location on system where jdk installs might be
     71ifndef PROGRAMS
     72  USRJDKINSTANCES_PATH :="$(subst \,/,$(PROGRAMS))"
     73else
     74  USRJDKINSTANCES_PATH :=$(_system_drive)/
     75endif
     76USRJDKINSTANCES_PATH := $(call FullPath,$(USRJDKINSTANCES_PATH))
     77
     78# UNIXCOMMAND_PATH: path to where the most common Unix commands are.
     79#  NOTE: Must end with / so that it could be empty, allowing PATH usage.
     80ifdef ALT_UNIXCOMMAND_PATH
     81  xALT_UNIXCOMMAND_PATH  :="$(subst \,/,$(ALT_UNIXCOMMAND_PATH))"
     82  fxALT_UNIXCOMMAND_PATH :=$(call FullPath,$(xALT_UNIXCOMMAND_PATH))
     83  UNIXCOMMAND_PATH       :=$(call PrefixPath,$(fxALT_UNIXCOMMAND_PATH))
     84else
     85  # assume commands are in PATH
     86  UNIXCOMMAND_PATH :=
     87endif
     88UNIXCOMMAND_PATH:=$(call AltCheckSpaces,UNIXCOMMAND_PATH)
     89
     90# DEVTOOLS_PATH: for other tools required for building (such as zip, etc.)
     91#  NOTE: Must end with / so that it could be empty, allowing PATH usage.
     92ifdef ALT_DEVTOOLS_PATH
     93  xALT_DEVTOOLS_PATH  :="$(subst \,/,$(ALT_DEVTOOLS_PATH))"
     94  fxALT_DEVTOOLS_PATH :=$(call FullPath,$(xALT_DEVTOOLS_PATH))
     95  DEVTOOLS_PATH       :=$(call PrefixPath,$(fxALT_DEVTOOLS_PATH))
     96else
     97  DEVTOOLS_PATH :=$(UNIXCOMMAND_PATH)
     98endif
     99DEVTOOLS_PATH:=$(call AltCheckSpaces,DEVTOOLS_PATH)
     100
     101# _BOOTDIR1: First choice for a Bootstrap JDK, previous released JDK.
     102# _BOOTDIR2: Second choice
     103ifndef ALT_BOOTDIR
     104  _BOOTDIR1  =$(_system_drive)/jdk$(PREVIOUS_JDK_VERSION)
     105  _BOOTDIR2  =$(USRJDKINSTANCES_PATH)/jdk$(PREVIOUS_JDK_VERSION)
     106endif
     107
  • trunk/openjdk/jdk/make/common/shared/Defs-utils.gmk

    r2 r10  
    3232#         Unix Commands: Normally /bin/, /usr/bin/. or C:/mksnt/mksnt/
    3333#            UTILS_COMMAND_PATH
    34 #         /usr/bin/ 
     34#         /usr/bin/
    3535#            UTILS_USR_BIN_PATH
    3636#         /usr/ccs/bin/ (sccs, m4, lex, yacc, as, ar, strip, mcs)
     
    6161endif
    6262
    63 ifeq ($(PLATFORM),windows)
     63ifeq ($(filter-out windows os2,$(PLATFORM)),)
    6464  UTILS_COMMAND_PATH=$(UNIXCOMMAND_PATH)
    6565  UTILS_USR_BIN_PATH=$(UNIXCOMMAND_PATH)
     
    172172endif
    173173
     174# OS/2 specific
     175ifeq ($(PLATFORM),os2)
     176  ECHO   = $(UNIXCOMMAND_PATH)echo -e
     177  NAWK   = $(UNIXCOMMAND_PATH)awk
     178endif
     179
    174180# Linux specific
    175181ifeq ($(PLATFORM),linux)
  • trunk/openjdk/jdk/make/common/shared/Sanity.gmk

    r2 r10  
    9595  DXSDK_VER := $(shell $(EGREP) DIRECTDRAW_VERSION $(DXSDK_INCLUDE_PATH)/ddraw.h 2>&1 | \
    9696    $(EGREP) "\#define" | $(NAWK) '{print $$3}')
     97endif
     98
     99ifeq ($(PLATFORM), os2)
     100  FREE_SPACE := $(shell $(DF) -kP $(OUTPUTDIR) | $(TAIL) -1 | $(NAWK) '{print $$4;}')
     101  TEMP_FREE_SPACE := $(shell $(DF) -kP $(TEMP_DISK) | $(TAIL) -1 | $(NAWK) '{print $$4;}')
    97102endif
    98103
     
    217222# Check the BUILD_NUMBER to make sure it contains bNN
    218223######################################################
    219 sane-build_number: 
     224sane-build_number:
    220225        @if [ "`$(ECHO) $(BUILD_NUMBER) | $(SED) 's@.*b[0-9][0-9]*.*@bNN@'`" != "bNN" ] ; then \
    221226            $(ECHO) "WARNING: The BUILD_NUMBER needs to contain b[0-9][0-9]*. Currently BUILD_NUMBER=$(BUILD_NUMBER). \n" \
     
    290295######################################################
    291296sane-locale:
    292 ifneq ($(PLATFORM), windows)
     297ifneq ($(filter-out windows os2,$(PLATFORM)),)
    293298        @if [ "$(LC_ALL)" != "" -a "$(LC_ALL)" != "C" ]; then \
    294299          $(ECHO) "WARNING: LC_ALL has been set to $(LC_ALL), this can cause build failures. \n" \
     
    662667            "" >> $(ERROR_FILE) ; \
    663668        fi
    664   ifeq ($(PLATFORM), windows)
     669  ifeq ($(filter-out windows os2,$(PLATFORM)),)
    665670        @if [ `$(ECHO) $(subst \,/,$(ALT_OUTPUTDIR)) | $(EGREP) -ci '^([a-z]:)'` -ne 1 ]; then \
    666           $(ECHO) "ERROR: On windows, ALT_OUTPUTDIR must contain the drive letter. \n" \
     671          $(ECHO) "ERROR: On Windows and OS/2, ALT_OUTPUTDIR must contain the drive letter. \n" \
    667672            "" >> $(ERROR_FILE) ; \
    668673        fi
     
    778783MOTIF_CHECK_FILE=$(MOTIF_INCLUDE)/Xm/AtomMgr.h
    779784sane-motif:
    780 ifneq ($(PLATFORM), windows)
     785ifneq ($(filter-out windows os2,$(PLATFORM)),)
    781786  ifeq ($(MOTIF_REQUIRED), true)
    782787    ifeq ($(PLATFORM), solaris)
     
    788793            "" >> $(ERROR_FILE) ; \
    789794        fi
    790     endif 
     795    endif
    791796    ifeq ($(PLATFORM), linux)
    792797        @if [ ! -r $(MOTIF_LIB)/libXm.a ]; then \
     
    797802            "" >> $(ERROR_FILE) ; \
    798803        fi
    799     endif 
    800   endif 
     804    endif
     805  endif
    801806        @if [ ! -r $(MOTIF_CHECK_FILE) ]; then \
    802807          $(ECHO) "ERROR: You do not have access to valid Motif 2.1 header files. \n" \
     
    833838else
    834839#do nothing  (not OpenJDK)
    835 sane-freetype: 
     840sane-freetype:
    836841endif
    837842
     
    10801085            "" >> $(WARNING_FILE) ; \
    10811086        fi
    1082 endif   
     1087endif
    10831088
    10841089
     
    11061111
    11071112# Compare an interface file (Rule creates 2 temp files: %.h and %.h.IMPORT)
    1108 #    Files jvm.h, jvm_md.h and jmm.h are special in that they are not publicly 
     1113#    Files jvm.h, jvm_md.h and jmm.h are special in that they are not publicly
    11091114#    exported but do represent VM interfaces used by the rest of the jdk.
    11101115#    So these 3 will not be found in a promoted build and can only
     
    12181223
    12191224ifeq ($(INCLUDE_SA), true)
    1220 # Verify that hotspot Serviceability Agent files are present.  To keep 
    1221 # it simple, we will just check for one of them.  The others have arch 
     1225# Verify that hotspot Serviceability Agent files are present.  To keep
     1226# it simple, we will just check for one of them.  The others have arch
    12221227# dependent paths.
    12231228
     
    13271332          "      and/or check your value of ALT_UNICOWS_LIB_PATH \n" \
    13281333          "" >> $(ERROR_FILE) ; \
    1329         fi 
     1334        fi
    13301335        @if [ ! -r "$(UNICOWS_DLL_PATH)/unicows.dll" ]; then \
    13311336        $(ECHO) "ERROR: You do not have access to the Microsoft Layer for Unicode (MSLU) runtime files.\n" \
     
    13341339          "      and/or check your value of ALT_UNICOWS_DLL_PATH \n" \
    13351340          "" >> $(ERROR_FILE) ; \
    1336         fi 
     1341        fi
    13371342  endif
    13381343endif
     
    14031408
    14041409######################################################
    1405 # Check that ALSA headers and libs are installed and 
     1410# Check that ALSA headers and libs are installed and
    14061411# that the header has the right version. We only
    14071412# need /usr/include/alsa/*.h and /usr/lib/libasound.so
Note: See TracChangeset for help on using the changeset viewer.