jdk/make/gendata/GendataBlacklistedCerts.gmk
author ctornqvi
Wed, 04 May 2016 15:32:26 -0400
changeset 38190 ff9ac612c723
parent 27565 729f9700483a
child 39504 96c700e62710
permissions -rw-r--r--
8156066: Backout JDK-8153892 Reviewed-by: coleenp, mikael
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
25397
26482834c5bc 8047765: Generate blacklist.certs in build
weijun
parents:
diff changeset
     1
#
26482834c5bc 8047765: Generate blacklist.certs in build
weijun
parents:
diff changeset
     2
# Copyright (c) 2014, Oracle and/or its affiliates. All rights reserved.
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
26482834c5bc 8047765: Generate blacklist.certs in build
weijun
parents:
diff changeset
    26
GENDATA_BLACKLISTED_CERTS_SRC := $(JDK_TOPDIR)/make/data/blacklistedcertsconverter/blacklisted.certs.pem
27565
729f9700483a 8049367: Modular Run-Time Images
chegar
parents: 25397
diff changeset
    27
GENDATA_BLACKLISTED_CERTS := $(SUPPORT_OUTPUTDIR)/modules_libs/$(MODULE)/security/blacklisted.certs
25397
26482834c5bc 8047765: Generate blacklist.certs in build
weijun
parents:
diff changeset
    28
26482834c5bc 8047765: Generate blacklist.certs in build
weijun
parents:
diff changeset
    29
ifndef OPENJDK
26482834c5bc 8047765: Generate blacklist.certs in build
weijun
parents:
diff changeset
    30
	GENDATA_BLACKLISTED_CERTS_SRC += $(wildcard $(JDK_TOPDIR)/make/closed/data/blacklistedcertsconverter/blacklisted.certs.pem)
26482834c5bc 8047765: Generate blacklist.certs in build
weijun
parents:
diff changeset
    31
endif
26482834c5bc 8047765: Generate blacklist.certs in build
weijun
parents:
diff changeset
    32
 
26482834c5bc 8047765: Generate blacklist.certs in build
weijun
parents:
diff changeset
    33
$(GENDATA_BLACKLISTED_CERTS): $(BUILD_TOOLS) $(GENDATA_BLACKLISTED_CERTS_SRC)
26482834c5bc 8047765: Generate blacklist.certs in build
weijun
parents:
diff changeset
    34
	$(ECHO) "Generating blacklisted certs"
26482834c5bc 8047765: Generate blacklist.certs in build
weijun
parents:
diff changeset
    35
	$(MKDIR) -p $(@D)
26482834c5bc 8047765: Generate blacklist.certs in build
weijun
parents:
diff changeset
    36
	($(CAT) $(GENDATA_BLACKLISTED_CERTS_SRC) | $(TOOL_BLACKLISTED_CERTS) > $@) || exit 1
27565
729f9700483a 8049367: Modular Run-Time Images
chegar
parents: 25397
diff changeset
    37
729f9700483a 8049367: Modular Run-Time Images
chegar
parents: 25397
diff changeset
    38
TARGETS += $(GENDATA_BLACKLISTED_CERTS)