2N/A#
2N/A# CDDL HEADER START
2N/A#
2N/A# The contents of this file are subject to the terms of the
2N/A# Common Development and Distribution License (the "License").
2N/A# You may not use this file except in compliance with the License.
2N/A#
2N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
2N/A# or http://www.opensolaris.org/os/licensing.
2N/A# See the License for the specific language governing permissions
2N/A# and limitations under the License.
2N/A#
2N/A# When distributing Covered Code, include this CDDL HEADER in each
2N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
2N/A# If applicable, add the following below this CDDL HEADER, with the
2N/A# fields enclosed by brackets "[]" replaced with your own identifying
2N/A# information: Portions Copyright [yyyy] [name of copyright owner]
2N/A#
2N/A# CDDL HEADER END
2N/A#
2N/A
2N/A#
2N/A# Copyright (c) 2010, 2011, Oracle and/or its affiliates. All rights reserved.
2N/A#
2N/A
2N/A#
2N/A# libsoftcrypto provides two families of optimized functions for SPARC
2N/A# platforms, one for sun4u, and one for sun4v. Previous implementations
2N/A# provided these families as libsoftcrypto_psr.so.1 libraries, triggered
2N/A# by tagging libsoftcrypto.so.1 as an auxiliary filter. These psr filtees
2N/A# were installed under /usr/platform/sun4u/lib, and numerous symlinks were
2N/A# established to provide the necessary $PLATFORM names, ie:
2N/A#
2N/A# /usr/platform/SUNW,Ultra-2/lib/libsoftcrypto_psr.so.1 -> ../../../sun4u
2N/A# /usr/platform/SUNW,Ultra-4/lib/libsoftcrypto_psr.so.1 -> ../../../sun4u
2N/A# ....
2N/A#
2N/A# and:
2N/A#
2N/A# /usr/platform/SUNW,Netra-CP3060/lib/libsoftcrypto_psr.so.1 -> ../../sun4v
2N/A# /usr/platform/SUNW,Netra-CP3260/lib/libsoftcrypto_psr.so.1 -> ../../sun4v/
2N/A# ....
2N/A#
2N/A# The objects that made up these filtees are now combined into one relocatable
2N/A# object, pics/objcap.o, using ../common/mapfile-cap. This mapfile identifies
2N/A# the machine hardware name, together with establishing the global symbols that
2N/A# should be exported to define each family.
2N/A#
2N/A# This object capabilities relocatable object is then translated into a symbol
2N/A# capabilities relocatable object, pics/symcap.o.
2N/A#
2N/A# The sun4u and sun4v families of symbol capabilities object are eventually
2N/A# included in the final build of libsoftcrypto.so.1.
2N/A
2N/A$(SYMCAP): $(OBJCAP)
2N/A$(OBJCAP): $(PICS)
2N/A$(PICS): pics
2N/A
2N/Ainclude ../../../Makefile.targ
2N/A
2N/A# Combine all pic objects into one relocatable object. Assign any capabilities
2N/A# to this object, and define the interface.
2N/A
2N/Apics/objcap.o: $(PICS) $(MAPFILE-CAP)
2N/A $(LD) -r -o $@ $(MAPOPT-CAP) -Breduce $(PICS)
2N/A
2N/A# Convert the combined object capabilities object into a symbol capabilities
2N/A# object.
2N/A
2N/Apics/symcap.o: $(OBJCAP)
2N/A $(LD) -r -o $@ -z symbolcap $(OBJCAP)