JAVA_DEF.mak 32.3 KB
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866
Upper = $(subst z,Z,$(subst y,Y,$(subst x,X,$(subst w,W,$(subst v,V,$(subst u,U,$(subst t,T,$(subst s,S,$(subst r,R,$(subst q,Q,$(subst p,P,$(subst o,O,$(subst n,N,$(subst m,M,$(subst l,L,$(subst k,K,$(subst j,J,$(subst i,I,$(subst h,H,$(subst g,G,$(subst f,F,$(subst e,E,$(subst d,D,$(subst c,C,$(subst b,B,$(subst a,A,$(1)))))))))))))))))))))))))))

# *************************************************************************
# JAVA Value Check
# *************************************************************************
ifeq ($(strip $(J2ME_SLIM_MEMORY_SUPPORT)),TRUE)
  ifdef J2ME_SUPPORT
    ifeq ($(strip $(J2ME_SUPPORT)),NONE)
      $(warning ERROR: when J2ME_SUPPORT is not enabled,please turn off J2ME_SLIM_MEMORY_SUPPORT.)
      DEPENDENCY_CONFLICT = TRUE
    endif
  else
    $(warning ERROR: when J2ME_SUPPORT is not enabled,please turn off J2ME_SLIM_MEMORY_SUPPORT.)
    DEPENDENCY_CONFLICT = TRUE
  endif
endif

# *************************************************************************
# Java Feature Setting
# *************************************************************************
ifeq ($(strip $(J2ME_SLIM_MEMORY_SUPPORT)),FALSE)
  ifdef J2ME_SUPPORT
    ifneq ($(strip $(J2ME_SUPPORT)),NONE)
      COM_DEFS  += SUPPORT_JSR_135_VIDEO
    endif
  endif
endif

J2ME_FEATURE_SET = JTWI

ifdef J2ME_SUPPORT
    ifneq ($(strip $(J2ME_SUPPORT)),NONE)
        ifneq ($(filter MT6223%,$(PLATFORM)),)
            ifdef SUPPORT_JSR_82
                ifeq ($(strip $(call Upper,$(SUPPORT_JSR_82))),TRUE)
                    $(warning ERROR: Please turn off SUPPORT_JSR_82 when PLATFORM is $(strip $(PLATFORM)))
                    DEPENDENCY_CONFLICT = TRUE
                endif
            endif
        endif

        COM_DEFS += SUPPORT_HTTP_OVER_WSP
        
        ifdef J2ME_FEATURE_SET
            ifeq ($(strip $(call Upper,$(J2ME_FEATURE_SET))),BASIC)
                ifdef J2ME_SHARE_MED_EXT_MEM
                    ifeq ($(strip $(call Upper,$(J2ME_SHARE_MED_EXT_MEM))),TRUE)
                        COM_DEFS += J2ME_SHARE_MED_EXT_MEM
                    endif
                endif
            endif

            ifeq ($(strip $(call Upper,$(J2ME_FEATURE_SET))),JTWI)
                COM_DEFS += SUPPORT_WMA
                COM_DEFS += SUPPORT_JSR_120
                COM_DEFS += SUPPORT_JSR_135
                COM_DEFS += SUPPORT_JSR_75_FILE
        
                ifdef SUPPORT_JSR_75_PIM
                    ifeq ($(strip $(call Upper,$(SUPPORT_JSR_75_PIM))),TRUE)
                        COM_DEFS += SUPPORT_JSR_75_PIM
                    endif
                endif
            
                ifdef SUPPORT_JSR_75_PIM_MSA
                    ifeq ($(strip $(call Upper,$(SUPPORT_JSR_75_PIM_MSA))),TRUE)
                        ifneq ($(strip $(call Upper,$(SUPPORT_JSR_75_PIM))),TRUE)
                            $(call DEP_ERR_ONA_OR_OFFB,SUPPORT_JSR_75_PIM,SUPPORT_JSR_75_PIM_MSA)
                            DEPENDENCY_CONFLICT = TRUE
                        endif
                        ifeq ($(strip $(call Upper,$(J2ME_SUPPORT))),JBLENDIA)
                            $(call DEP_ERR_SETA_OR_OFFB,J2ME_SUPPORT,non JBLENDIA,SUPPORT_JSR_75_PIM_MSA)
                            DEPENDENCY_CONFLICT = TRUE
                        endif
                        ifeq ($(strip $(call Upper,$(J2ME_SUPPORT))),JBLENDIA_MVM)
                            $(call DEP_ERR_SETA_OR_OFFB,J2ME_SUPPORT,non JBLENDIA_MVM,SUPPORT_JSR_75_PIM_MSA)
                            DEPENDENCY_CONFLICT = TRUE
                        endif
                        COM_DEFS += SUPPORT_JSR_75_PIM_MSA
                    endif
                endif
        
        
                ifdef SUPPORT_JSR_205
                    ifeq ($(strip $(call Upper,$(SUPPORT_JSR_205))),TRUE)
                        COM_DEFS += SUPPORT_WMA_MMS
                        COM_DEFS += SUPPORT_JSR_205
                    endif
                endif
            
                ifdef SUPPORT_JSR_82
                    ifeq ($(strip $(call Upper,$(SUPPORT_JSR_82))),TRUE)
                        ifneq ($(strip $(call Upper,$(SUPPORT_JSR_75_PIM))),TRUE)
                            $(call DEP_ERR_ONA_OR_OFFB,SUPPORT_JSR_75_PIM,SUPPORT_JSR_82)
                            DEPENDENCY_CONFLICT = TRUE
                        endif
                        ifneq ($(strip $(SUPPORT_JAVA_NOKIA_UI)),TRUE)
                            $(call DEP_ERR_ONA_OR_OFFB,SUPPORT_JAVA_NOKIA_UI,SUPPORT_JSR_82)
                            DEPENDENCY_CONFLICT = TRUE
                        endif
                        ifneq ($(strip $(J2ME_FEATURE_SET)),JTWI)
                            $(call DEP_ERR_SETA_OR_OFFB,J2ME_FEATURE_SET,JTWI,SUPPORT_JSR_82)
                            DEPENDENCY_CONFLICT = TRUE
                        endif
                        ifneq ($(strip $(J2ME_VM)),HI_VM)
                            $(call DEP_ERR_SETA_OR_OFFB,J2ME_VM,HI_VM,SUPPORT_JSR_82)
                            DEPENDENCY_CONFLICT = TRUE
                        endif
                        COM_DEFS += __SUPPORT_JBT__
                    endif
                endif

                ifdef J2ME_SHARE_MED_EXT_MEM
                    ifeq ($(strip $(call Upper,$(J2ME_SHARE_MED_EXT_MEM))),TRUE)
                        COM_DEFS += J2ME_SHARE_MED_EXT_MEM
                    endif
                endif
                ifdef MMI_VERSION
                    ifeq ($(strip $(MMI_VERSION)),COSMOS_MMI)
                        COM_DEFS += JSR135_AUDIO_BASIC_FEATURE
                    else
                        COM_DEFS += SUPPORT_MMAPI
                        COM_DEFS += JSR135_AUDIO_RECORDER						
                    endif
                endif				
            endif
        endif
                
        ifdef SUPPORT_JAVA_NOKIA_UI
            ifeq ($(strip $(SUPPORT_JAVA_NOKIA_UI)),TRUE)
                COM_DEFS += SUPPORT_JAVA_NOKIA_UI
            endif
        endif

        ifdef SUPPORT_JSR_179
            ifeq ($(strip $(call Upper,$(SUPPORT_JSR_179))),TRUE)
                ifeq ($(strip $(call Upper,$(GPS_SUPPORT))),NONE)
                    $(call DEP_ERR_ONA_OR_OFFB,GPS_SUPPORT,SUPPORT_JSR_179)
                    DEPENDENCY_CONFLICT = TRUE
                endif
                ifndef GPS_SUPPORT
                    $(call DEP_ERR_ONA_OR_OFFB,GPS_SUPPORT,SUPPORT_JSR_179)
                    DEPENDENCY_CONFLICT = TRUE
                endif
                COM_DEFS += SUPPORT_LOCATION
                COM_DEFS += SUPPORT_JSR_179
            endif
        endif
        ifdef SUPPORT_JSR_257
            ifeq ($(strip $(call Upper,$(SUPPORT_JSR_257))),TRUE)
                ifndef SUPPORT_JSR_177
                    $(call DEP_ERR_ONA_OR_OFFB,SUPPORT_JSR_177,SUPPORT_JSR_257)
                    DEPENDENCY_CONFLICT = TRUE
                endif
                COM_DEFS += SUPPORT_JSR_257
            endif
        endif
        ifdef SUPPORT_JSR_177
            ifeq ($(strip $(call Upper,$(SUPPORT_JSR_177))),TRUE)
                COM_DEFS += SUPPORT_JSR_177
                COM_DEFS += __SIM_JSR177_APDU__
            endif
        endif
    endif
endif

ifeq ($(strip $(J2ME_SLIM_MEMORY_SUPPORT)),FALSE)
  ifdef J2ME_SUPPORT
    ifneq ($(strip $(J2ME_SUPPORT)),NONE)
      ifdef MMI_VERSION
        ifeq ($(strip $(MMI_VERSION)),COSMOS_MMI)
          COM_DEFS += SUPPORT_MMAPI
          COM_DEFS += JSR135_AUDIO_RECORDER		  
        endif
      endif
      COM_DEFS +=  SUPPORT_SSL_DATAGRAM
    endif
  endif
endif

# *************************************************************************
# J2ME OTHER COMPILE OPTION
# *************************************************************************

ifdef J2ME_SUPPORT
    ifneq ($(strip $(J2ME_SUPPORT)),NONE)
        ifeq ($(strip $(J2ME_VM)),KVM)
            COM_DEFS    += __KVM__
        endif
        ifeq ($(strip $(J2ME_VM)),HI_VM)
            COM_DEFS    += __HI_VM__
        endif
        ifeq ($(strip $(J2ME_VM)),KVM_SOURCE)
            COM_DEFS    += __KVM__
        endif
        ifeq ($(strip $(J2ME_VM)),HI_VM_SOURCE)
            COM_DEFS    += __HI_VM__
        endif
        ifeq ($(strip $(J2ME_VM)),JAZELLE)
            COM_DEFS    += __JAZELLE__
        endif
        ifeq ($(strip $(J2ME_VM)),NEMO_VM)
            COM_DEFS    += __HI_VM__
        endif
        ifeq ($(strip $(J2ME_VM)),NEMO_VM_SOURCE_NORMAL)
            COM_DEFS    += __HI_VM__
        endif
        ifeq ($(strip $(J2ME_VM)),NEMO_VM_SOURCE_FULL)
            COM_DEFS    += __HI_VM__
        endif        
    endif
endif

ifdef J2ME_SUPPORT
    ifneq ($(strip $(J2ME_SUPPORT)),NONE)
        COM_DEFS += __J2ME__
    endif
    COM_DEFS    += MAX_VM_INSTANCE_NUM=1
    
    ifeq ($(strip $(J2ME_SUPPORT)),IJET)
        ifeq ($(strip $(J2ME_VM)),KVM)
            COM_DEFS    += CLDC11 __IJET_VM__
        endif
        
        ifeq ($(strip $(J2ME_VM)),KVM_SOURCE)
            COM_DEFS    += CLDC11 __IJET_VM__
        endif
        
        ifeq ($(strip $(J2ME_VM)),HI_VM)
            COM_DEFS    += CLDCHI __IJET_VM__
        endif
        
        ifeq ($(strip $(J2ME_VM)),HI_VM_SOURCE)
            COM_DEFS    += CLDCHI __IJET_VM__
        endif
        COM_DEFS    += MAX_VM_INSTANCE_NUM=1
    endif
    
    ifeq ($(strip $(J2ME_SUPPORT)),JBLENDIA)
        COM_DEFS    += __JBLENDIA__ AJ_LITTLE_ENDIAN __UCS2_ENCODING APLIX_JAVA AJ_PLATFORM_ARM
        COM_DEFS    += MAX_VM_INSTANCE_NUM=1
    endif

    ifeq ($(strip $(J2ME_SUPPORT)),JBLENDIA_MVM)
        COM_DEFS    += __JBLENDIA__ __MVM__
        ifdef J2ME_MAX_LAUNCH_NUM
            COM_DEFS    += MAX_VM_INSTANCE_NUM=$(strip $(J2ME_MAX_LAUNCH_NUM))
        else
            COM_DEFS    += MAX_VM_INSTANCE_NUM=1
        endif
    endif
    
    ifeq ($(strip $(J2ME_SUPPORT)),JBED)
        COM_DEFS    += __JBED__
        COM_DEFS    += MAX_VM_INSTANCE_NUM=1
    endif
    
    ifeq ($(strip $(J2ME_SUPPORT)),NEMO)
        ifeq ($(filter NEMO_VM_SOURCE_FULL NEMO_VM_SOURCE_NORMAL NEMO_VM,$(strip $(J2ME_VM))),)
            $(warning ERROR: Please set J2ME_VM=NEMO_VM/NEMO_VM_SOURCE_NORMAL/NEMO_VM_SOURCE_FULL when J2ME_SUPPORT=NEMO)
            DEPENDENCY_CONFLICT = TRUE
        endif
        
        ifeq ($(strip $(J2ME_VM)),NEMO_VM_SOURCE_FULL)
            COM_DEFS    += CLDCHI __NEMO_VM__ __MVM__
        endif
  
        ifeq ($(strip $(J2ME_VM)),NEMO_VM_SOURCE_NORMAL)
            COM_DEFS    += CLDCHI __NEMO_VM__ __MVM__
        endif

        ifeq ($(strip $(J2ME_VM)),NEMO_VM)
            COM_DEFS    += CLDCHI __NEMO_VM__ __MVM__
        endif
        
        ifdef J2ME_MAX_LAUNCH_NUM
            COM_DEFS    += MAX_VM_INSTANCE_NUM=$(strip $(J2ME_MAX_LAUNCH_NUM))
        else
            COM_DEFS    += MAX_VM_INSTANCE_NUM=1
        endif        
    endif
    ifeq ($(strip $(J2ME_SUPPORT)),MTK_DUMMY_MVM)
        COM_DEFS += __J2ME__ __MVM__  
        ifdef J2ME_MAX_LAUNCH_NUM
            COM_DEFS    += MAX_VM_INSTANCE_NUM=$(strip $(J2ME_MAX_LAUNCH_NUM))
        else
            COM_DEFS    += MAX_VM_INSTANCE_NUM=1
        endif
    endif    
else
    COM_DEFS    += MAX_VM_INSTANCE_NUM=0   
endif


# *************************************************************************
# J2ME LIBRARY CONFIG
# *************************************************************************
ifdef J2ME_SUPPORT
    ifeq ($(strip $(J2ME_SUPPORT)),IJET)
        ifeq ($(strip $(J2ME_VM)),HI_VM)
            COMPOBJS    += j2me\vm\ijet\j2me_hi.lib
        endif
            
        ifeq ($(strip $(J2ME_VM)),KVM)
            COMPOBJS    += j2me\vm\ijet\j2me_11.lib
        endif
        ifeq ($(strip $(J2ME_VM)),KVM_KDWP)
            COMPOBJS    += j2me\vm\ijet\j2me_11_KDWP.lib
        endif
    endif

    ifeq ($(strip $(J2ME_SUPPORT)),NEMO)
    	  ifeq ($(strip $(J2ME_VM)),NEMO_VM)
    	      ifeq ($(strip $(J2ME_SLIM_MEMORY_SUPPORT)),TRUE)
    	          COMPOBJS    += j2me\vm\NEMO\j2me_nemo_cldc_slim.lib
    	      else
                  COMPOBJS    += j2me\vm\NEMO\j2me_nemo_cldc.lib
    	      endif
  	        COMPOBJS    += j2me\vm\NEMO\j2me_nemo_fdlibm.lib

    	      COMPOBJS    += j2me\vm\NEMO\j2me_nemo.lib
    	  endif
    	      
    	  ifeq ($(strip $(J2ME_VM)),NEMO_VM_SOURCE_NORMAL)
    	      ifeq ($(strip $(J2ME_SLIM_MEMORY_SUPPORT)),TRUE)
    	          COMPOBJS    += j2me\vm\NEMO\j2me_nemo_cldc_slim.lib
    	      else
                  COMPOBJS    += j2me\vm\NEMO\j2me_nemo_cldc.lib
    	      endif
  	        COMPOBJS    += j2me\vm\NEMO\j2me_nemo_fdlibm.lib

    	  endif
    endif
  
    ifeq ($(strip $(J2ME_SUPPORT)),JBLENDIA)
        ifeq ($(strip $(J2ME_VM)),KVM)
            JBLENDIA_LIB = CLDC11
        else
            JBLENDIA_LIB = CLDCHI
        endif
           
        ifeq ($(strip $(J2ME_FEATURE_SET)),JTWI)
            JBLENDIA_LIB := $(strip $(JBLENDIA_LIB))_JTWI10
        endif
        # alway with FC
        JBLENDIA_LIB := $(strip $(JBLENDIA_LIB))_FC
           
        ifeq ($(strip $(call Upper,$(SUPPORT_JSR_75_PIM))),TRUE)
            JBLENDIA_LIB := $(strip $(JBLENDIA_LIB))_PIM
        endif
        
        ifeq ($(strip $(call Upper,$(SUPPORT_JSR_205))),TRUE)
            JBLENDIA_LIB := $(strip $(JBLENDIA_LIB))_WMA20
        endif
           
        ifeq ($(strip $(call Upper,$(SUPPORT_JAVA_NOKIA_UI))),TRUE)
            JBLENDIA_LIB := $(strip $(JBLENDIA_LIB))_NUI
        endif
           
        ifeq ($(strip $(call Upper,$(SUPPORT_BACKGROUND_JAVA))),TRUE)
            JBLENDIA_LIB := $(strip $(JBLENDIA_LIB))_BGE
            COM_DEFS += J2ME_SUPPORT_BACKGROUND
        endif
           
        ifeq ($(strip $(call Upper,$(SUPPORT_JSR_82))),TRUE)
            JBLENDIA_LIB := $(strip $(JBLENDIA_LIB))_BT
        endif

        #check follow path exisit? 
        JBLENDIA_LIB_DIR = $(shell dir j2me\vm\JBlendia\lib\$(strip $(JBLENDIA_LIB)) /b 2>nul)
        ifeq ($(words $(strip $(JBLENDIA_LIB_DIR))),0)
            $(warning Aplix JAVA feature set ($(strip $(JBLENDIA_LIB))) does not exist.)
            DEPENDENCY_CONFLICT = TRUE
        endif
        
        COMPOBJS += j2me\vm\JBlendia\lib\$(strip $(JBLENDIA_LIB))\ajsc_arm_rvct.a \
                    j2me\vm\JBlendia\lib\$(strip $(JBLENDIA_LIB))\libmjb2.a \
                    j2me\vm\JBlendia\lib\$(strip $(JBLENDIA_LIB))\libaicrypto.a
            
        CUS_REL_OBJ_LIST += j2me\vm\JBlendia\lib\$(strip $(JBLENDIA_LIB))\ajsc_arm_rvct.a  \
                            j2me\vm\JBlendia\lib\$(strip $(JBLENDIA_LIB))\libmjb2.a  \
                            j2me\vm\JBlendia\lib\$(strip $(JBLENDIA_LIB))\libaicrypto.a \
                            j2me\vm\jblendia\lib\$(strip $(JBLENDIA_LIB))\ajsc_win32_msvc.lib \
                            j2me\vm\jblendia\lib\$(strip $(JBLENDIA_LIB))\libmjb2.lib \
                            j2me\vm\jblendia\lib\$(strip $(JBLENDIA_LIB))\libaicrypto.lib
    endif

    ifeq ($(strip $(J2ME_SUPPORT)),JBLENDIA_MVM)
        ifeq ($(strip $(J2ME_VM)),KVM)
            $(warning Aplix JBLENDIA_MVM can not base on KVM. Set J2ME_VM to HI_VM instead.)
        else
            JBLENDIA_LIB = CLDCHI
        endif

        ifeq ($(strip $(J2ME_FEATURE_SET)),JTWI)
            JBLENDIA_LIB := $(strip $(JBLENDIA_LIB))_JTWI10
        endif

        JBLENDIA_LIB := $(strip $(JBLENDIA_LIB))_FC
         
        ifeq ($(strip $(call Upper,$(SUPPORT_JSR_75_PIM))),TRUE)
            JBLENDIA_LIB := $(strip $(JBLENDIA_LIB))_PIM
        endif

        ifeq ($(strip $(call Upper,$(SUPPORT_JSR_205))),TRUE)
           JBLENDIA_LIB := $(strip $(JBLENDIA_LIB))_WMA20
        endif

        ifeq ($(strip $(call Upper,$(SUPPORT_JAVA_NOKIA_UI))),TRUE)
            JBLENDIA_LIB := $(strip $(JBLENDIA_LIB))_NUI
        endif

        # The term BGE for JBLENDIA_MVM means CMCC BGE.
        ifeq ($(strip $(call Upper,$(SUPPORT_BACKGROUND_JAVA))),TRUE)
            JBLENDIA_LIB := $(strip $(JBLENDIA_LIB))_BGE
            COM_DEFS += J2ME_SUPPORT_BACKGROUND
        endif

        ifeq ($(strip $(call Upper,$(SUPPORT_JSR_82))),TRUE)
            JBLENDIA_LIB := $(strip $(JBLENDIA_LIB))_BT
        endif

        # check if following path exisits
        JBLENDIA_LIB_DIR = $(shell dir j2me\vm\jblendia_mvm\lib\$(strip $(JBLENDIA_LIB)) /b 2>nul)
        ifeq ($(words $(strip $(JBLENDIA_LIB_DIR))),0)
            $(warning Aplix JAVA feature set ($(strip $(JBLENDIA_LIB))) does not exist.)
            DEPENDENCY_CONFLICT = TRUE
        endif
     
        COMPOBJS += j2me\vm\jblendia_mvm\lib\$(strip $(JBLENDIA_LIB))\ajsc_arm_ads.a \
                    j2me\vm\jblendia_mvm\lib\$(strip $(JBLENDIA_LIB))\libmjb2.a \
                    j2me\vm\jblendia_mvm\lib\$(strip $(JBLENDIA_LIB))\libaicrypto.a
            
        CUS_REL_OBJ_LIST += j2me\vm\jblendia_mvm\lib\$(strip $(JBLENDIA_LIB))\ajsc_arm_ads.a  \
                            j2me\vm\jblendia_mvm\lib\$(strip $(JBLENDIA_LIB))\libmjb2.a  \
                            j2me\vm\jblendia_mvm\lib\$(strip $(JBLENDIA_LIB))\libaicrypto.a \
                            j2me\vm\jblendia_mvm\lib\$(strip $(JBLENDIA_LIB))\ajsc_win32_msvc.lib \
                            j2me\vm\jblendia_mvm\lib\$(strip $(JBLENDIA_LIB))\libmjb2.lib \
                            j2me\vm\jblendia_mvm\lib\$(strip $(JBLENDIA_LIB))\libaicrypto.lib
    endif

    ifeq ($(strip $(J2ME_SUPPORT)),JBED)
        COMPOBJS += j2me\vm\jbed\lib\libjbedfbcc.lib
        CUS_REL_OBJ_LIST += j2me\vm\jbed\lib\libjbedfbcc.lib
    endif
endif

# *************************************************************************
# J2ME PATH SETTING
# *************************************************************************

ifdef J2ME_SUPPORT
    COMMINCDIRS += j2me\interface
    
    ifneq ($(strip $(J2ME_SUPPORT)),NONE)
        ifeq ($(strip $(J2ME_SUPPORT)),JBLENDIA)
            CUSTOM_COMMINC    +=    custom\j2me\JBLENDIA\$(strip $(BOARD_VER))
        endif

        ifeq ($(strip $(J2ME_SUPPORT)),JBLENDIA_MVM)
            CUSTOM_COMMINC    +=    custom\j2me\JBLENDIA_MVM\$(strip $(BOARD_VER))
        endif
        
        ifeq ($(strip $(J2ME_SUPPORT)),IJET)
            ifndef FLAVOR
                CUSTOM_COMMINC    +=    custom\j2me\IJET\$(strip $(BOARD_VER))
            else
                ifneq ($(strip $(FLAVOR)),NONE)
                    CUSTOM_COMMINC    +=    custom\j2me\IJET\$(strip $(BOARD_VER))($(strip $(FLAVOR)))
                else
                    CUSTOM_COMMINC    +=    custom\j2me\IJET\$(strip $(BOARD_VER))
                endif
            endif
        endif
    
        ifeq ($(strip $(J2ME_SUPPORT)),JBED)
            CUSTOM_COMMINC    +=    custom\j2me\JBED\$(strip $(BOARD_VER))
        endif

        ifeq ($(strip $(J2ME_SUPPORT)),NEMO)
            ifndef FLAVOR
            CUSTOM_COMMINC    +=    custom\j2me\NEMO\$(strip $(BOARD_VER))
            else
                ifneq ($(strip $(FLAVOR)),NONE)
                    CUSTOM_COMMINC    +=    custom\j2me\NEMO\$(strip $(BOARD_VER))($(strip $(FLAVOR)))
                else
                    CUSTOM_COMMINC    +=    custom\j2me\NEMO\$(strip $(BOARD_VER))
                endif
            endif
        endif
        
        ifeq ($(strip $(J2ME_SUPPORT)),MTK_DUMMYVM)
            CUSTOM_COMMINC    +=    custom\j2me\DUMMY\_DEFAULT_BB
        endif
        
        ifeq ($(strip $(J2ME_SUPPORT)),MTK_DUMMY_MVM)
            CUSTOM_COMMINC    +=    custom\j2me\DUMMY\_DEFAULT_BB
        endif
        
    endif
endif

ifdef J2ME_SUPPORT
    ifneq ($(strip $(J2ME_SUPPORT)),NONE)
        COMMINCDIRS += plutommi\mmi\Organizer\OrganizerInc
        COMMINCDIRS += j2me\jal\include

        ifeq ($(strip $(J2ME_SUPPORT)),IJET)
            CUS_REL_BASE_COMP += custom\j2me\IJET\_DEFAULT_BB\builtin_game_generator \
                                 j2me\vm\IJET\adaptation
            COMMINCDIRS += custom\j2me\IJET\_DEFAULT_BB
        endif 

        ifeq ($(strip $(J2ME_SUPPORT)),JBLENDIA)
            CUS_REL_BASE_COMP += custom\j2me\JBLENDIA\_DEFAULT_BB\jblend_preinstall
            COMMINCDIRS += custom\j2me\JBLENDIA\_DEFAULT_BB
            COMMINCDIRS += j2me\vm\JBlendia\include\aci j2me\vm\JBlendia\include\ksi
        endif

        ifeq ($(strip $(J2ME_SUPPORT)),JBLENDIA_MVM)
            CUS_REL_BASE_COMP += custom\j2me\JBLENDIA_MVM\_DEFAULT_BB\jblend_preinstall
            COMMINCDIRS += custom\j2me\JBLENDIA_MVM\_DEFAULT_BB
            COMMINCDIRS += j2me\vm\jblendia_mvm\include\aci j2me\vm\jblendia_mvm\include\ksi
        endif

        ifeq ($(strip $(J2ME_SUPPORT)),JBED)
            COMMINCDIRS += custom\j2me\JBED\_DEFAULT_BB
        endif

        ifeq ($(strip $(J2ME_SUPPORT)),NEMO)
            CUS_REL_BASE_COMP += custom\j2me\NEMO\_DEFAULT_BB\builtin_game_generator \
                                 j2me\vm\NEMO\adaptation
            COMMINCDIRS += custom\j2me\NEMO\_DEFAULT_BB
        endif

        ifeq ($(strip $(J2ME_SUPPORT)),MTK_DUMMYVM)
            COMMINCDIRS += custom\j2me\DUMMY\_DEFAULT_BB
        endif
        
        ifeq ($(strip $(J2ME_SUPPORT)),MTK_DUMMY_MVM)
            COMMINCDIRS += custom\j2me\DUMMY\_DEFAULT_BB
        endif
             
    endif
endif

# *************************************************************************
# J2ME COMPLIST AND CUS_REL CONFIG
# *************************************************************************

ifdef J2ME_SUPPORT
    ifneq ($(strip $(J2ME_SUPPORT)),NONE)
        COMPLIST    += jal
        CUS_REL_SRC_COMP += jal
        
        ifeq ($(strip $(J2ME_SUPPORT)),IJET)
            ifeq ($(strip $(J2ME_VM)),HI_VM_SOURCE)
                COMPLIST    += j2me_hi
                CUS_REL_SRC_COMP += j2me_hi
            endif
            ifeq ($(strip $(J2ME_VM)),KVM_SOURCE)
                COMPLIST    += j2me_11
                CUS_REL_SRC_COMP += j2me_11
            endif
            ifeq ($(strip $(J2ME_VM)),KVM_KDWP_SOURCE)
                COMPLIST    += j2me_11_KDWP
                CUS_REL_SRC_COMP += j2me_11_KDWP
                COM_DEFS += KDWP_DEBUG
            endif

            ifeq ($(strip $(J2ME_VM)),KVM)
              CUS_REL_OBJ_LIST  +=   j2me\vm\IJET\j2me_11.lib
            endif
        
            ifeq ($(strip $(J2ME_VM)),HI_VM)
              CUS_REL_OBJ_LIST  +=   j2me\vm\IJET\j2me_hi.lib
            endif
            
            ifeq ($(strip $(J2ME_VM)),KVM_KDWP)
              CUS_REL_OBJ_LIST  +=   j2me\vm\IJET\j2me_11_KDWP.lib
              COM_DEFS += KDWP_DEBUG
            endif
        endif
    
    
        ifeq ($(strip $(J2ME_SUPPORT)),IJET)
            COMPLIST    += ijet_adp
            CUS_REL_SRC_COMP += ijet_adp
        endif

        ifeq ($(strip $(J2ME_SUPPORT)),JBLENDIA)
            COMPLIST    += jblendia
            CUS_REL_SRC_COMP    += jblendia
        endif

        ifeq ($(strip $(J2ME_SUPPORT)),JBLENDIA_MVM)
            COMPLIST    += jblendia_mvm
            CUS_REL_SRC_COMP    += jblendia_mvm
        endif
        
        ifeq ($(strip $(J2ME_SUPPORT)),JBED)
            COMPLIST += jbed
            CUS_REL_SRC_COMP += jbed
        endif    

        ifeq ($(strip $(J2ME_SUPPORT)),NEMO)
            COMPLIST    += nemo_adp
            CUS_REL_SRC_COMP += nemo_adp        
            ifeq ($(strip $(J2ME_VM)),NEMO_VM_SOURCE_FULL)
                ifeq ($(strip $(J2ME_SLIM_MEMORY_SUPPORT)),TRUE)
                    COMPLIST    += j2me_nemo_cldc_slim j2me_nemo
                    CUS_REL_SRC_COMP += j2me_nemo_cldc_slim j2me_nemo
                else
                    COMPLIST    += j2me_nemo_cldc j2me_nemo
                    CUS_REL_SRC_COMP += j2me_nemo_cldc j2me_nemo
                endif
                COMPLIST    += j2me_nemo_fdlibm
                CUS_REL_SRC_COMP += j2me_nemo_fdlibm

            endif
            ifeq ($(strip $(J2ME_VM)),NEMO_VM_SOURCE_NORMAL)
                COMPLIST    += j2me_nemo
                CUS_REL_SRC_COMP += j2me_nemo
                ifeq ($(strip $(J2ME_SLIM_MEMORY_SUPPORT)),TRUE)
                    CUS_REL_OBJ_LIST  +=   j2me\vm\NEMO\j2me_nemo_cldc_slim.lib
                else
                    CUS_REL_OBJ_LIST  +=   j2me\vm\NEMO\j2me_nemo_cldc.lib
                endif
                CUS_REL_OBJ_LIST  +=   j2me\vm\NEMO\j2me_nemo_fdlibm.lib

            endif
            ifeq ($(strip $(J2ME_VM)),NEMO_VM)
                ifeq ($(strip $(J2ME_SLIM_MEMORY_SUPPORT)),TRUE)
                    CUS_REL_OBJ_LIST  +=   j2me\vm\NEMO\j2me_nemo_cldc_slim.lib
                else
                    CUS_REL_OBJ_LIST  +=   j2me\vm\NEMO\j2me_nemo_cldc.lib
                endif
                CUS_REL_OBJ_LIST  +=   j2me\vm\NEMO\j2me_nemo.lib
                CUS_REL_OBJ_LIST  +=   j2me\vm\NEMO\j2me_nemo_fdlibm.lib

            endif
        endif
       
        ifeq ($(strip $(J2ME_SUPPORT)),MTK_DUMMYVM)
            COMPLIST    += jdummy
            CUS_REL_SRC_COMP += jdummy
        endif

        ifeq ($(strip $(J2ME_SUPPORT)),MTK_DUMMY_MVM)
            COMPLIST    += jdummy
            CUS_REL_SRC_COMP += jdummy
        endif

        ifneq ($(filter MT6223P MT6223, $(PLATFORM)),)
          COMPLIST         += jal_sec
          CUS_REL_MTK_COMP += jal_sec
        endif
    endif 
endif

# *************************************************************************
# J2ME Dependency rules
# *************************************************************************
ifdef J2ME_SUPPORT
    ifeq ($(strip $(J2ME_SUPPORT)),IJET)
        J2ME_VM_SUPPORT_ITEM = KVM KVM_SOURCE HI_VM HI_VM_SOURCE 
        ifeq ($(filter $(strip $(J2ME_VM)),$(J2ME_VM_SUPPORT_ITEM)),)
            $(call DEP_ERR_SETA_OR_SETB,J2ME_VM,non $(strip $(J2ME_VM)),J2ME_SUPPORT,non $(strip $(J2ME_SUPPORT)))
            DEPENDENCY_CONFLICT = TRUE
        endif
    endif
    ifeq ($(strip $(J2ME_SUPPORT)),NEMO)
        J2ME_VM_SUPPORT_ITEM = NEMO_VM NEMO_VM_SOURCE_NORMAL NEMO_VM_SOURCE_FULL
        ifeq ($(filter $(strip $(J2ME_VM)),$(J2ME_VM_SUPPORT_ITEM)),)
            $(call DEP_ERR_SETA_OR_SETB,J2ME_VM,non $(strip $(J2ME_VM)),J2ME_SUPPORT,non $(strip $(J2ME_SUPPORT)))
        endif
    endif    
    ifeq ($(strip $(J2ME_SUPPORT)),JBLENDIA)
        J2ME_VM_SUPPORT_ITEM = KVM HI_VM 
        ifeq ($(filter $(strip $(J2ME_VM)),$(J2ME_VM_SUPPORT_ITEM)),)
            $(call DEP_ERR_SETA_OR_SETB,J2ME_VM,non $(strip $(J2ME_VM)),J2ME_SUPPORT,non $(strip $(J2ME_SUPPORT)))
            DEPENDENCY_CONFLICT = TRUE
        endif
        ifneq ($(strip $(J2ME_FEATURE_SET)),JTWI)
            $(call DEP_ERR_SETA_OR_SETB,J2ME_FEATURE_SET,JTWI,J2ME_SUPPORT,non $(strip $(J2ME_SUPPORT)))
            DEPENDENCY_CONFLICT = TRUE
        endif
        ifeq ($(strip $(DRM_SUPPORT)),BSCI)
            $(call DEP_ERR_SETA_OR_SETB,DRM_SUPPORT,non $(strip $(DRM_SUPPORT)),J2ME_SUPPORT,non $(strip $(J2ME_SUPPORT)))
            DEPENDENCY_CONFLICT = TRUE
        endif
    endif
    ifeq ($(strip $(J2ME_SUPPORT)),JBLENDIA_MVM)
        J2ME_VM_SUPPORT_ITEM = KVM HI_VM 
        ifeq ($(filter $(strip $(J2ME_VM)) ,$(J2ME_VM_SUPPORT_ITEM)),)
            $(call DEP_ERR_SETA_OR_SETB,J2ME_VM,non $(strip $(J2ME_VM)),J2ME_SUPPORT,non $(strip $(J2ME_SUPPORT)))
            DEPENDENCY_CONFLICT = TRUE
        endif
        ifneq ($(strip $(J2ME_FEATURE_SET)),JTWI)
            $(call DEP_ERR_SETA_OR_SETB,J2ME_FEATURE_SET,JTWI,J2ME_SUPPORT,non $(strip $(J2ME_SUPPORT)))
            DEPENDENCY_CONFLICT = TRUE
        endif
        ifeq ($(strip $(DRM_SUPPORT)),BSCI)
            $(call DEP_ERR_SETA_OR_SETB,DRM_SUPPORT,non $(strip $(DRM_SUPPORT)),J2ME_SUPPORT,non $(strip $(J2ME_SUPPORT)))
            DEPENDENCY_CONFLICT = TRUE
        endif
    endif
    ifeq ($(strip $(J2ME_SUPPORT)),JBED)
        J2ME_VM_SUPPORT_ITEM = KVM  
        ifeq ($(filter $(strip $(J2ME_VM)) ,$(J2ME_VM_SUPPORT_ITEM)),)
            $(call DEP_ERR_SETA_OR_SETB,J2ME_VM,non $(strip $(J2ME_VM)),J2ME_SUPPORT,non $(strip $(J2ME_SUPPORT)))
            DEPENDENCY_CONFLICT = TRUE
        endif
    endif
    ifneq ($(strip $(J2ME_SUPPORT)),NONE)
        ifdef J2ME_FEATURE_SET
            ifeq ($(strip $(J2ME_FEATURE_SET)),NONE)
                $(call DEP_ERR_ONA_OR_OFFB,J2ME_FEATURE_SET,J2ME_SUPPORT)
                DEPENDENCY_CONFLICT = TRUE
            endif
        endif
    endif
endif

ifdef SUPPORT_JAVA_NOKIA_UI
    ifeq ($(strip $(SUPPORT_JAVA_NOKIA_UI)),TRUE)
        ifeq ($(strip $(J2ME_SUPPORT)),JBLENDIA)
            ifneq ($(strip $(SUPPORT_JSR_75_PIM)),TRUE)
                $(call DEP_ERR_ONA_OR_OFFB,SUPPORT_JSR_75_PIM,SUPPORT_JAVA_NOKIA_UI)
                DEPENDENCY_CONFLICT = TRUE
            endif
            ifneq ($(strip $(J2ME_FEATURE_SET)),JTWI)
                $(call DEP_ERR_SETA_OR_OFFB,J2ME_FEATURE_SET,JTWI,SUPPORT_JAVA_NOKIA_UI)
                DEPENDENCY_CONFLICT = TRUE
            endif
        endif
        ifeq ($(strip $(J2ME_SUPPORT)),JBLENDIA_MVM)
            ifneq ($(strip $(SUPPORT_JSR_75_PIM)),TRUE)
                $(call DEP_ERR_ONA_OR_OFFB,SUPPORT_JSR_75_PIM,SUPPORT_JAVA_NOKIA_UI)
                DEPENDENCY_CONFLICT = TRUE
            endif
            ifneq ($(strip $(J2ME_FEATURE_SET)),JTWI)
                $(call DEP_ERR_SETA_OR_OFFB,J2ME_FEATURE_SET,JTWI,SUPPORT_JAVA_NOKIA_UI)
                DEPENDENCY_CONFLICT = TRUE
            endif
        endif       
        ifeq ($(strip $(J2ME_SUPPORT)),NONE)
            $(call DEP_ERR_ONA_OR_OFFB,J2ME_SUPPORT,SUPPORT_JAVA_NOKIA_UI)
            DEPENDENCY_CONFLICT = TRUE
        endif
    endif
endif

ifdef SUPPORT_JSR_179
    ifeq ($(strip $(call Upper,$(SUPPORT_JSR_179))),TRUE)
        ifneq ($(strip $(J2ME_SUPPORT)),NEMO)
            $(call DEP_ERR_SETA_OR_OFFB,J2ME_SUPPORT,NEMO,SUPPORT_JSR_179)
            DEPENDENCY_CONFLICT = TRUE
        endif
        ifeq ($(strip $(J2ME_SUPPORT)),NONE)
            $(call DEP_ERR_ONA_OR_OFFB,J2ME_SUPPORT,SUPPORT_JSR_179)
            DEPENDENCY_CONFLICT = TRUE
        endif
        ifndef J2ME_SUPPORT
            $(call DEP_ERR_ONA_OR_OFFB,J2ME_SUPPORT,SUPPORT_JSR_179)
            DEPENDENCY_CONFLICT = TRUE
        endif
    endif
endif

ifdef SUPPORT_JSR_257
    ifeq ($(strip $(SUPPORT_JSR_257)),TRUE)
        ifneq ($(strip $(J2ME_SUPPORT)),NEMO)
            $(call DEP_ERR_SETA_OR_OFFB,J2ME_SUPPORT,NEMO,SUPPORT_JSR_257)
            DEPENDENCY_CONFLICT = TRUE
        endif
        ifneq ($(strip $(J2ME_FEATURE_SET)),JTWI)
            $(call DEP_ERR_SETA_OR_OFFB,J2ME_FEATURE_SET,JTWI,SUPPORT_JSR_257)
            DEPENDENCY_CONFLICT = TRUE
        endif
    endif
endif

ifdef SUPPORT_JSR_177
    ifeq ($(strip $(SUPPORT_JSR_177)),TRUE)
        ifneq ($(strip $(J2ME_SUPPORT)),NEMO)
            $(call DEP_ERR_SETA_OR_OFFB,J2ME_SUPPORT,NEMO,SUPPORT_JSR_177)
            DEPENDENCY_CONFLICT = TRUE
        endif
        ifneq ($(strip $(J2ME_FEATURE_SET)),JTWI)
            $(call DEP_ERR_SETA_OR_OFFB,J2ME_FEATURE_SET,JTWI,SUPPORT_JSR_177)
            DEPENDENCY_CONFLICT = TRUE
        endif
    endif
endif

ifdef J2ME_MAX_LAUNCH_NUM
  ifeq ($(call gt,$(strip $(J2ME_MAX_LAUNCH_NUM)),1),T)
    ifdef SUPPORT_BACKGROUND_JAVA
      ifneq ($(strip $(SUPPORT_BACKGROUND_JAVA)),TRUE)
        $(warning ERROR: Please set SUPPORT_BACKGROUND_JAVA as TRUE when J2ME_MAX_LAUNCH_NUM is greater than 1!)
        DEPENDENCY_CONFLICT = TRUE
      endif
    endif
  endif
endif

ifdef J2ME_SLIM_MEMORY_SUPPORT
  ifeq ($(strip $(J2ME_SLIM_MEMORY_SUPPORT)),TRUE)

    ifeq ($(strip $(IMAGE_VIEWER_VER)),STANDARD)
      $(warning ERROR: Please set IMAGE_VIEWER_VER as non STANDARD when J2ME_SLIM_MEMORY_SUPPORT is TRUE!)
      DEPENDENCY_CONFLICT = TRUE
    endif

    ifeq ($(strip $(J2ME_SUPPORT)),JBLENDIA)
      $(call DEP_ERR_SETA_OR_OFFB,J2ME_SUPPORT,non JBLENDIA,J2ME_SLIM_MEMORY_SUPPORT)
      DEPENDENCY_CONFLICT = TRUE
    endif


    COM_DEFS += J2ME_SLIM_MEMORY_SUPPORT J2ME_SHARE_MED_EXT_MEM
    ifeq ($(strip $(PACKAGE_SEG)),128_32_SEG)
      ifneq ($(strip $(IMAGE_VIEWER_VER)),SLIM)
        $(call DEP_ERR_SETA_OR_OFFB,IMAGE_VIEWER_VER,SLIM,J2ME_SLIM_MEMORY_SUPPORT)
        DEPENDENCY_CONFLICT = TRUE
      endif
    endif

    ifeq ($(strip $(PACKAGE_SEG)),64_64_SEG)
      ifneq ($(strip $(IMAGE_VIEWER_VER)),SLIM)
        $(call DEP_ERR_SETA_OR_OFFB,IMAGE_VIEWER_VER,SLIM,J2ME_SLIM_MEMORY_SUPPORT)
        DEPENDENCY_CONFLICT = TRUE
      endif
    endif
  endif
endif

ifdef J2ME_SUPPORT
  ifneq ($(strip $(J2ME_SUPPORT)),NONE)
    ifeq ($(strip $(call Upper,$(SUPPORT_BACKGROUND_JAVA))),TRUE)
      COM_DEFS += J2ME_SUPPORT_BACKGROUND
    endif
  endif
endif

ifeq ($(strip $(J2ME_ROMIZING_SWITCH)),TRUE)
  ifneq ($(strip $(MTK_INTERNAL)),TRUE)
    $(warning ERROR: J2ME_ROMIZING_SWITCH can only be enabled in MTK_INTERNAL environment.)
    DEPENDENCY_CONFLICT = TRUE
  endif
endif

NEMO_FEATURE_LIST = J2ME_SUPPORT \
                    J2ME_VM \
                    J2ME_SLIM_MEMORY_SUPPORT \
                    SUPPORT_JSR_257 \
                    SUPPORT_JSR_179 \
                    SSL_SUPPORT \
                    J2ME_MAX_LAUNCH_NUM \
                    SUPPORT_BACKGROUND_JAVA \
                    SUPPORT_JSR_205 \
                    SUPPORT_JSR_177 \
                    SUPPORT_JSR_75_PIM \
                    SUPPORT_JSR_75_PIM_MSA