equal
deleted
inserted
replaced
15 # If applicable, add the following below this CDDL HEADER, with the |
15 # If applicable, add the following below this CDDL HEADER, with the |
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 # |
|
21 |
20 # |
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 GIT = /usr/bin/git |
26 GIT = /usr/bin/git |
45 COMPONENT_SRC$(1) ?= $$(COMPONENT_NAME$(1))$$(GIT_BRANCH$(1):%=-%)$$(GIT_COMMIT_ID$(1):%=-%) |
47 COMPONENT_SRC$(1) ?= $$(COMPONENT_NAME$(1))$$(GIT_BRANCH$(1):%=-%)$$(GIT_COMMIT_ID$(1):%=-%) |
46 COMPONENT_ARCHIVE$(1) ?= $$(COMPONENT_SRC$(1)).tar.gz |
48 COMPONENT_ARCHIVE$(1) ?= $$(COMPONENT_SRC$(1)).tar.gz |
47 # If the source is github attempt to generate an archive url |
49 # If the source is github attempt to generate an archive url |
48 ifeq (github,$(findstring github,$(GIT_REPO$(1)))) |
50 ifeq (github,$(findstring github,$(GIT_REPO$(1)))) |
49 COMPONENT_ARCHIVE_URL$(1) ?= $(GIT_REPO$(1))/tarball/$(GIT_BRANCH$(1)) |
51 COMPONENT_ARCHIVE_URL$(1) ?= $(GIT_REPO$(1))/tarball/$(GIT_BRANCH$(1)) |
|
52 else |
|
53 COMPONENT_ARCHIVE_SRC$(1) = git |
50 endif |
54 endif |
51 |
55 |
52 CLEAN_PATHS += $$(COMPONENT_SRC$(1)) |
56 CLEAN_PATHS += $$(COMPONENT_SRC$(1)) |
53 CLOBBER_PATHS += $$(COMPONENT_ARCHIVE$(1)) |
57 CLOBBER_PATHS += $$(COMPONENT_ARCHIVE$(1)) |
54 SOURCE_DIR$(1) = $$(COMPONENT_DIR)/$(COMPONENT_SRC$(1)) |
58 SOURCE_DIR$(1) = $$(COMPONENT_DIR)/$(COMPONENT_SRC$(1)) |