make/gendata/GendataBlacklistedCerts.gmk
author erikj
Fri, 11 May 2018 08:39:21 -0700
changeset 50142 f348e5d4769b
parent 47314 743814386712
child 55215 29ab1f3bd353
permissions -rw-r--r--
8202914: Let custom makefile override jmod intput dir locations Reviewed-by: tbell
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
25397
26482834c5bc 8047765: Generate blacklist.certs in build
weijun
parents:
diff changeset
     1
#
39504
96c700e62710 8003593: build-infra: Paths to optional platform-specific files should not be hardwired to src/closed
erikj
parents: 27565
diff changeset
     2
# Copyright (c) 2014, 2016, Oracle and/or its affiliates. All rights reserved.
25397
26482834c5bc 8047765: Generate blacklist.certs in build
weijun
parents:
diff changeset
     3
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
26482834c5bc 8047765: Generate blacklist.certs in build
weijun
parents:
diff changeset
     4
#
26482834c5bc 8047765: Generate blacklist.certs in build
weijun
parents:
diff changeset
     5
# This code is free software; you can redistribute it and/or modify it
26482834c5bc 8047765: Generate blacklist.certs in build
weijun
parents:
diff changeset
     6
# under the terms of the GNU General Public License version 2 only, as
26482834c5bc 8047765: Generate blacklist.certs in build
weijun
parents:
diff changeset
     7
# published by the Free Software Foundation.  Oracle designates this
26482834c5bc 8047765: Generate blacklist.certs in build
weijun
parents:
diff changeset
     8
# particular file as subject to the "Classpath" exception as provided
26482834c5bc 8047765: Generate blacklist.certs in build
weijun
parents:
diff changeset
     9
# by Oracle in the LICENSE file that accompanied this code.
26482834c5bc 8047765: Generate blacklist.certs in build
weijun
parents:
diff changeset
    10
#
26482834c5bc 8047765: Generate blacklist.certs in build
weijun
parents:
diff changeset
    11
# This code is distributed in the hope that it will be useful, but WITHOUT
26482834c5bc 8047765: Generate blacklist.certs in build
weijun
parents:
diff changeset
    12
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
26482834c5bc 8047765: Generate blacklist.certs in build
weijun
parents:
diff changeset
    13
# FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
26482834c5bc 8047765: Generate blacklist.certs in build
weijun
parents:
diff changeset
    14
# version 2 for more details (a copy is included in the LICENSE file that
26482834c5bc 8047765: Generate blacklist.certs in build
weijun
parents:
diff changeset
    15
# accompanied this code).
26482834c5bc 8047765: Generate blacklist.certs in build
weijun
parents:
diff changeset
    16
#
26482834c5bc 8047765: Generate blacklist.certs in build
weijun
parents:
diff changeset
    17
# You should have received a copy of the GNU General Public License version
26482834c5bc 8047765: Generate blacklist.certs in build
weijun
parents:
diff changeset
    18
# 2 along with this work; if not, write to the Free Software Foundation,
26482834c5bc 8047765: Generate blacklist.certs in build
weijun
parents:
diff changeset
    19
# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
26482834c5bc 8047765: Generate blacklist.certs in build
weijun
parents:
diff changeset
    20
#
26482834c5bc 8047765: Generate blacklist.certs in build
weijun
parents:
diff changeset
    21
# Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
26482834c5bc 8047765: Generate blacklist.certs in build
weijun
parents:
diff changeset
    22
# or visit www.oracle.com if you need additional information or have any
26482834c5bc 8047765: Generate blacklist.certs in build
weijun
parents:
diff changeset
    23
# questions.
26482834c5bc 8047765: Generate blacklist.certs in build
weijun
parents:
diff changeset
    24
#
26482834c5bc 8047765: Generate blacklist.certs in build
weijun
parents:
diff changeset
    25
47314
743814386712 8188814: Simplify IncludeCustomExtension
ihse
parents: 47217
diff changeset
    26
$(eval $(call IncludeCustomExtension, gendata/GendataBlacklistedCerts.gmk))
39504
96c700e62710 8003593: build-infra: Paths to optional platform-specific files should not be hardwired to src/closed
erikj
parents: 27565
diff changeset
    27
47217
72e3ae9a25eb 8187444: Forest Consolidation: Make build work
erikj
parents: 47216
diff changeset
    28
GENDATA_BLACKLISTED_CERTS_SRC += $(TOPDIR)/make/data/blacklistedcertsconverter/blacklisted.certs.pem
27565
729f9700483a 8049367: Modular Run-Time Images
chegar
parents: 25397
diff changeset
    29
GENDATA_BLACKLISTED_CERTS := $(SUPPORT_OUTPUTDIR)/modules_libs/$(MODULE)/security/blacklisted.certs
25397
26482834c5bc 8047765: Generate blacklist.certs in build
weijun
parents:
diff changeset
    30
26482834c5bc 8047765: Generate blacklist.certs in build
weijun
parents:
diff changeset
    31
$(GENDATA_BLACKLISTED_CERTS): $(BUILD_TOOLS) $(GENDATA_BLACKLISTED_CERTS_SRC)
39504
96c700e62710 8003593: build-infra: Paths to optional platform-specific files should not be hardwired to src/closed
erikj
parents: 27565
diff changeset
    32
	$(call LogInfo, Generating blacklisted certs)
96c700e62710 8003593: build-infra: Paths to optional platform-specific files should not be hardwired to src/closed
erikj
parents: 27565
diff changeset
    33
	$(call MakeDir, $(@D))
25397
26482834c5bc 8047765: Generate blacklist.certs in build
weijun
parents:
diff changeset
    34
	($(CAT) $(GENDATA_BLACKLISTED_CERTS_SRC) | $(TOOL_BLACKLISTED_CERTS) > $@) || exit 1
27565
729f9700483a 8049367: Modular Run-Time Images
chegar
parents: 25397
diff changeset
    35
729f9700483a 8049367: Modular Run-Time Images
chegar
parents: 25397
diff changeset
    36
TARGETS += $(GENDATA_BLACKLISTED_CERTS)