1*1e49577aSRod Evans# 2*1e49577aSRod Evans# CDDL HEADER START 3*1e49577aSRod Evans# 4*1e49577aSRod Evans# The contents of this file are subject to the terms of the 5*1e49577aSRod Evans# Common Development and Distribution License (the "License"). 6*1e49577aSRod Evans# You may not use this file except in compliance with the License. 7*1e49577aSRod Evans# 8*1e49577aSRod Evans# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 9*1e49577aSRod Evans# or http://www.opensolaris.org/os/licensing. 10*1e49577aSRod Evans# See the License for the specific language governing permissions 11*1e49577aSRod Evans# and limitations under the License. 12*1e49577aSRod Evans# 13*1e49577aSRod Evans# When distributing Covered Code, include this CDDL HEADER in each 14*1e49577aSRod Evans# file and include the License file at usr/src/OPENSOLARIS.LICENSE. 15*1e49577aSRod Evans# If applicable, add the following below this CDDL HEADER, with the 16*1e49577aSRod Evans# fields enclosed by brackets "[]" replaced with your own identifying 17*1e49577aSRod Evans# information: Portions Copyright [yyyy] [name of copyright owner] 18*1e49577aSRod Evans# 19*1e49577aSRod Evans# CDDL HEADER END 20*1e49577aSRod Evans# 21*1e49577aSRod Evans 22*1e49577aSRod Evans# 23*1e49577aSRod Evans# Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved. 24*1e49577aSRod Evans# 25*1e49577aSRod Evans 26*1e49577aSRod Evans# 27*1e49577aSRod Evans# libsoftcrypto provides two families of optimized functions for SPARC 28*1e49577aSRod Evans# platforms, one for sun4u, and one for sun4v. Previous implementations 29*1e49577aSRod Evans# provided these families as libsoftcrypto_psr.so.1 libraries, triggered 30*1e49577aSRod Evans# by tagging libsoftcrypto.so.1 as an auxiliary filter. These psr filtees 31*1e49577aSRod Evans# were installed under /usr/platform/sun4u/lib, and numerous symlinks were 32*1e49577aSRod Evans# established to provide the necessary $PLATFORM names, ie: 33*1e49577aSRod Evans# 34*1e49577aSRod Evans# /usr/platform/SUNW,Ultra-2/lib/libsoftcrypto_psr.so.1 -> ../../../sun4u 35*1e49577aSRod Evans# /usr/platform/SUNW,Ultra-4/lib/libsoftcrypto_psr.so.1 -> ../../../sun4u 36*1e49577aSRod Evans# .... 37*1e49577aSRod Evans# 38*1e49577aSRod Evans# and: 39*1e49577aSRod Evans# 40*1e49577aSRod Evans# /usr/platform/SUNW,Netra-CP3060/lib/libsoftcrypto_psr.so.1 -> ../../sun4v 41*1e49577aSRod Evans# /usr/platform/SUNW,Netra-CP3260/lib/libsoftcrypto_psr.so.1 -> ../../sun4v/ 42*1e49577aSRod Evans# .... 43*1e49577aSRod Evans# 44*1e49577aSRod Evans# The objects that made up these filtees are now combined into one relocatable 45*1e49577aSRod Evans# object, pics/objcap.o, using ../common/mapfile-cap. This mapfile identifies 46*1e49577aSRod Evans# the machine hardware name, together with establishing the global symbols that 47*1e49577aSRod Evans# should be exported to define each family. 48*1e49577aSRod Evans# 49*1e49577aSRod Evans# This object capabilities relocatable object is then translated into a symbol 50*1e49577aSRod Evans# capabilities relocatable object, pics/symcap.o. 51*1e49577aSRod Evans# 52*1e49577aSRod Evans# The sun4u and sun4v families of symbol capabilities object are eventually 53*1e49577aSRod Evans# included in the final build of libsoftcrypto.so.1. 54*1e49577aSRod Evans 55*1e49577aSRod Evans$(SYMCAP): $(OBJCAP) 56*1e49577aSRod Evans$(OBJCAP): $(PICS) 57*1e49577aSRod Evans$(PICS): pics 58*1e49577aSRod Evans 59*1e49577aSRod Evans# Combine all pic objects into one relocatable object. Assign any capabilities 60*1e49577aSRod Evans# to this object, and define the interface. 61*1e49577aSRod Evans 62*1e49577aSRod Evanspics/objcap.o: $(PICS) $(MAPFILE-CAP) 63*1e49577aSRod Evans $(LD) -r -o $@ $(MAPOPT-CAP) -Breduce $(PICS) 64*1e49577aSRod Evans 65*1e49577aSRod Evans# Convert the combined object capabilities object into a symbol capabilities 66*1e49577aSRod Evans# object. 67*1e49577aSRod Evans 68*1e49577aSRod Evanspics/symcap.o: $(OBJCAP) 69*1e49577aSRod Evans $(LD) -r -o $@ -z symbolcap $(OBJCAP) 70*1e49577aSRod Evans 71*1e49577aSRod Evansinclude ../../../Makefile.targ 72