make-rules/prep-download.mk
changeset 4251 2bf7e2c1ca74
parent 4196 d697072a92f5
child 4428 21fcfd647301
equal deleted inserted replaced
4250:80b910c051fc 4251:2bf7e2c1ca74
    33 # COMPONENT_ARCHIVE macro defining a local file name for the archive, and
    33 # COMPONENT_ARCHIVE macro defining a local file name for the archive, and
    34 # optional COMPONENT_ARCHIVE_HASH and COMPONENT_SIG_URL containing a hash of
    34 # optional COMPONENT_ARCHIVE_HASH and COMPONENT_SIG_URL containing a hash of
    35 # the file and signature for verification of its contents.
    35 # the file and signature for verification of its contents.
    36 #
    36 #
    37 
    37 
    38 TMP_SUFFIXES = $(subst COMPONENT_ARCHIVE_URL_,, \
    38 URL_SUFFIXES = $(subst COMPONENT_ARCHIVE_URL_,, \
    39 		$(filter COMPONENT_ARCHIVE_URL_%, $(.VARIABLES)))
    39 		$(filter COMPONENT_ARCHIVE_URL_%, $(.VARIABLES)))
    40 
    40 
    41 # Template for download rules.
    41 # Template for download rules.
    42 define download-rules
    42 define download-rules
    43 ifdef COMPONENT_ARCHIVE_URL$(1)
    43 ifdef COMPONENT_ARCHIVE_URL$(1)
    62 #
    62 #
    63 # Define the rules required to download any source archives and augment any
    63 # Define the rules required to download any source archives and augment any
    64 # cleanup macros.
    64 # cleanup macros.
    65 #
    65 #
    66 $(eval $(call download-rules,))
    66 $(eval $(call download-rules,))
    67 $(foreach suffix, $(TMP_SUFFIXES), $(eval $(call download-rules,_$(suffix))))
    67 $(foreach suffix, $(URL_SUFFIXES), $(eval $(call download-rules,_$(suffix))))