make-rules/prep-unpack.mk
changeset 5682 94c0ca64c022
parent 5678 5b527c1e97be
child 6911 7b878dfe6f0d
equal deleted inserted replaced
5681:b8fe51f35344 5682:94c0ca64c022
    16 # fields enclosed by brackets "[]" replaced with your own identifying
    16 # fields enclosed by brackets "[]" replaced with your own identifying
    17 # information: Portions Copyright [yyyy] [name of copyright owner]
    17 # information: Portions Copyright [yyyy] [name of copyright owner]
    18 #
    18 #
    19 # CDDL HEADER END
    19 # CDDL HEADER END
    20 #
    20 #
       
    21 
       
    22 #
    21 # Copyright (c) 2010, 2016, Oracle and/or its affiliates. All rights reserved.
    23 # Copyright (c) 2010, 2016, Oracle and/or its affiliates. All rights reserved.
    22 #
    24 #
    23 
    25 
    24 UNPACK =		$(WS_TOOLS)/userland-unpack
    26 UNPACK =		$(WS_TOOLS)/userland-unpack
    25 
    27 
    30 PCK_SUFFIXES = $(subst COMPONENT_ARCHIVE_,, \
    32 PCK_SUFFIXES = $(subst COMPONENT_ARCHIVE_,, \
    31                 $(filter COMPONENT_ARCHIVE_%, $(.VARIABLES)))
    33                 $(filter COMPONENT_ARCHIVE_%, $(.VARIABLES)))
    32 
    34 
    33 # Template for unpacking rules.
    35 # Template for unpacking rules.
    34 define unpack-rules
    36 define unpack-rules
    35 ifdef COMPONENT_ARCHIVE$(1)
    37 ifneq ($(strip $(COMPONENT_ARCHIVE$(1))),)
    36 ifdef COMPONENT_SRC$(1)
    38 ifneq ($(strip $(COMPONENT_SRC$(1))),)
    37 
    39 
    38 CLEAN_PATHS += $$(COMPONENT_SRC$(1))
    40 CLEAN_PATHS += $$(COMPONENT_SRC$(1))
    39 SOURCE_DIR$(1) = $$(COMPONENT_DIR)/$(COMPONENT_SRC$(1))
    41 SOURCE_DIR$(1) = $$(COMPONENT_DIR)/$(COMPONENT_SRC$(1))
    40 
    42 
    41 UNPACK_STAMP$(1) =	$$(SOURCE_DIR$(1))/.unpacked
    43 UNPACK_STAMP$(1) =	$$(SOURCE_DIR$(1))/.unpacked