632 $(JRE_OVERLAY_INFO_FILE): $(OUTPUT_ROOT)/spec.gmk $(OUTPUT_ROOT)/source_tips
633 $(ECHO) $(LOG_INFO) Generating $(patsubst $(OUTPUT_ROOT)/%,%,$@)
634 $(call create-info-file)
635
636 $(JDK_OVERLAY_INFO_FILE): $(OUTPUT_ROOT)/spec.gmk $(OUTPUT_ROOT)/source_tips
637 $(ECHO) $(LOG_INFO) Generating $(patsubst $(OUTPUT_ROOT)/%,%,$@)
638 $(call create-info-file)
639
640 $(JDK_IMAGE_DIR)/src.zip: $(IMAGES_OUTPUTDIR)/src.zip
641 $(ECHO) $(LOG_INFO) Copying $(patsubst $(OUTPUT_ROOT)/%,%,$@)
642 $(install-file)
643
644 ################################################################################
645 # Post processing (strip etc)
646
647 ifneq ($(POST_STRIP_CMD),)
648 ifeq ($(OPENJDK_TARGET_OS), windows)
649 EXEC_LIST_BIN:=$(filter-out %$(notdir $(MSVCR_DLL)),$(filter %.exe %.dll,$(ALL_BIN_LIST)))
650 else
651 # Find all executables in JDK_OUTPUTDIR since they exist when this makefile is parsed
652 EXEC_LIST_BIN:=$(shell $(FILE) `$(FIND) $(JDK_OUTPUTDIR)/bin -type f -name \*$(EXE_SUFFIX)` \
653 | $(EGREP) 'ELF' | $(CUT) -d':' -f1)
654 # On mac, the old build searches for static libraries for stripping instead of shared.
655 # Not clear if it's intentional.
656 ifneq ($(OPENJDK_TARGET_OS), macosx)
657 EXEC_LIST_LIB:=$(shell $(FIND) $(JDK_OUTPUTDIR)/lib -type f -name \*$(SHARED_LIBRARY_SUFFIX))
658 endif
659 endif
660 # Filter out sjavac
661 EXEC_LIST_BIN:=$(filter-out %sjavac$(EXE_SUFFIX),$(EXEC_LIST_BIN))
662
663 # Filter out the overlay specific bin files
664 EXEC_LIST:=$(filter-out $(OVERLAY_FILTER),$(EXEC_LIST_BIN)) $(EXEC_LIST_LIB)
665 EXEC_LIST_OVERLAY:=$(filter $(OVERLAY_FILTER),$(EXEC_LIST_BIN)) $(EXEC_LIST_LIB)
666
667 # Filter out non JRE files and convert to unique touch files to depend on
668 JRE_STRIP_LIST:=$(patsubst $(JDK_OUTPUTDIR)/%,$(IMAGES_OUTPUTDIR)/_strip_jre$(PROFILE)/%.stripped,\
669 $(filter-out $(addprefix %,$(NOT_JRE_BIN_FILES) $(NOT_JRE_LIB_FILES) $(JDKJRE_LIB_FILES)),\
670 $(EXEC_LIST)))
671
672 JDKJRE_STRIP_LIST:=$(patsubst $(JDK_OUTPUTDIR)/%, \
|
632 $(JRE_OVERLAY_INFO_FILE): $(OUTPUT_ROOT)/spec.gmk $(OUTPUT_ROOT)/source_tips
633 $(ECHO) $(LOG_INFO) Generating $(patsubst $(OUTPUT_ROOT)/%,%,$@)
634 $(call create-info-file)
635
636 $(JDK_OVERLAY_INFO_FILE): $(OUTPUT_ROOT)/spec.gmk $(OUTPUT_ROOT)/source_tips
637 $(ECHO) $(LOG_INFO) Generating $(patsubst $(OUTPUT_ROOT)/%,%,$@)
638 $(call create-info-file)
639
640 $(JDK_IMAGE_DIR)/src.zip: $(IMAGES_OUTPUTDIR)/src.zip
641 $(ECHO) $(LOG_INFO) Copying $(patsubst $(OUTPUT_ROOT)/%,%,$@)
642 $(install-file)
643
644 ################################################################################
645 # Post processing (strip etc)
646
647 ifneq ($(POST_STRIP_CMD),)
648 ifeq ($(OPENJDK_TARGET_OS), windows)
649 EXEC_LIST_BIN:=$(filter-out %$(notdir $(MSVCR_DLL)),$(filter %.exe %.dll,$(ALL_BIN_LIST)))
650 else
651 # Find all executables in JDK_OUTPUTDIR since they exist when this makefile is parsed
652 EXEC_LIST_BIN:=$(shell $(FILE) `$(FIND) $(JDK_OUTPUTDIR)/bin -type f -name \*$(EXE_SUFFIX) ! -name \*.debuginfo` \
653 | $(EGREP) 'ELF' | $(CUT) -d':' -f1)
654 # On mac, the old build searches for static libraries for stripping instead of shared.
655 # Not clear if it's intentional.
656 ifneq ($(OPENJDK_TARGET_OS), macosx)
657 EXEC_LIST_LIB:=$(shell $(FIND) $(JDK_OUTPUTDIR)/lib -type f -name \*$(SHARED_LIBRARY_SUFFIX))
658 endif
659 endif
660 # Filter out sjavac
661 EXEC_LIST_BIN:=$(filter-out %sjavac$(EXE_SUFFIX),$(EXEC_LIST_BIN))
662
663 # Filter out the overlay specific bin files
664 EXEC_LIST:=$(filter-out $(OVERLAY_FILTER),$(EXEC_LIST_BIN)) $(EXEC_LIST_LIB)
665 EXEC_LIST_OVERLAY:=$(filter $(OVERLAY_FILTER),$(EXEC_LIST_BIN)) $(EXEC_LIST_LIB)
666
667 # Filter out non JRE files and convert to unique touch files to depend on
668 JRE_STRIP_LIST:=$(patsubst $(JDK_OUTPUTDIR)/%,$(IMAGES_OUTPUTDIR)/_strip_jre$(PROFILE)/%.stripped,\
669 $(filter-out $(addprefix %,$(NOT_JRE_BIN_FILES) $(NOT_JRE_LIB_FILES) $(JDKJRE_LIB_FILES)),\
670 $(EXEC_LIST)))
671
672 JDKJRE_STRIP_LIST:=$(patsubst $(JDK_OUTPUTDIR)/%, \
|