11 # This code is distributed in the hope that it will be useful, but WITHOUT
12 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
13 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
14 # version 2 for more details (a copy is included in the LICENSE file that
15 # accompanied this code).
16 #
17 # You should have received a copy of the GNU General Public License version
18 # 2 along with this work; if not, write to the Free Software Foundation,
19 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
20 #
21 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
22 # or visit www.oracle.com if you need additional information or have any
23 # questions.
24 #
25
26 default: all
27
28 include $(SPEC)
29 include MakeBase.gmk
30
31 $(eval $(call IncludeCustomExtension, , SourceRevision.gmk))
32
33 ################################################################################
34 # Keep track of what source revision is used to create the build, by creating
35 # a tracker file in the output directory. This tracker file is included in the
36 # image, and can be used to recreate the source revision used.
37 #
38 # We're either building directly from a mercurial forest, and if so, use the
39 # current revision from mercurial. Otherwise, we are building from a source
40 # bundle. As a part of creating this source bundle, the current mercurial
41 # revisions of all repos will be stored in a file in the top dir, which is then
42 # used when creating the tracker file.
43
44 STORED_SOURCE_REVISION := $(TOPDIR)/.src-rev
45
46 # Are we using mercurial?
47 ifneq ($(and $(HG), $(wildcard $(TOPDIR)/.hg)), )
48
49 # Verify that the entire forest is consistent
50 $(foreach repo, $(call FindAllReposRel), \
51 $(if $(wildcard $(TOPDIR)/$(repo)/.hg),, \
|
11 # This code is distributed in the hope that it will be useful, but WITHOUT
12 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
13 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
14 # version 2 for more details (a copy is included in the LICENSE file that
15 # accompanied this code).
16 #
17 # You should have received a copy of the GNU General Public License version
18 # 2 along with this work; if not, write to the Free Software Foundation,
19 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
20 #
21 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
22 # or visit www.oracle.com if you need additional information or have any
23 # questions.
24 #
25
26 default: all
27
28 include $(SPEC)
29 include MakeBase.gmk
30
31 $(eval $(call IncludeCustomExtension, SourceRevision.gmk))
32
33 ################################################################################
34 # Keep track of what source revision is used to create the build, by creating
35 # a tracker file in the output directory. This tracker file is included in the
36 # image, and can be used to recreate the source revision used.
37 #
38 # We're either building directly from a mercurial forest, and if so, use the
39 # current revision from mercurial. Otherwise, we are building from a source
40 # bundle. As a part of creating this source bundle, the current mercurial
41 # revisions of all repos will be stored in a file in the top dir, which is then
42 # used when creating the tracker file.
43
44 STORED_SOURCE_REVISION := $(TOPDIR)/.src-rev
45
46 # Are we using mercurial?
47 ifneq ($(and $(HG), $(wildcard $(TOPDIR)/.hg)), )
48
49 # Verify that the entire forest is consistent
50 $(foreach repo, $(call FindAllReposRel), \
51 $(if $(wildcard $(TOPDIR)/$(repo)/.hg),, \
|