[openssl-commits] [openssl] master update

Richard Levitte levitte at openssl.org
Wed Mar 2 13:45:07 UTC 2016


The branch master has been updated
       via  b756967d28f2ee726d947ca7a6e1075df616b300 (commit)
      from  dc22d6b37e8058a4334e6f98932c2623cd3d8d0d (commit)


- Log -----------------------------------------------------------------
commit b756967d28f2ee726d947ca7a6e1075df616b300
Author: Richard Levitte <levitte at openssl.org>
Date:   Wed Mar 2 09:34:26 2016 +0100

    Make uplink auxiliary source separate from cpuid source
    
    There are cases, for example when configuring no-asm, that the added
    uplink source files got in the way of the cpuid ones.  The best way to
    solve this is to separate the two.
    
    Reviewed-by: Andy Polyakov <appro at openssl.org>

-----------------------------------------------------------------------

Summary of changes:
 Configurations/00-base-templates.conf | 9 +++++----
 Configure                             | 2 ++
 Makefile.in                           | 3 ++-
 crypto/Makefile.in                    | 3 ++-
 crypto/build.info                     | 3 ++-
 5 files changed, 13 insertions(+), 7 deletions(-)

diff --git a/Configurations/00-base-templates.conf b/Configurations/00-base-templates.conf
index 7a20867..4251a6c 100644
--- a/Configurations/00-base-templates.conf
+++ b/Configurations/00-base-templates.conf
@@ -14,6 +14,7 @@
 
 	apps_aux_src	=> "",
 	cpuid_asm_src	=> "mem_clr.c",
+	uplink_aux_src	=> "",
 	bn_asm_src	=> "bn_asm.c",
 	ec_asm_src	=> "",
 	des_asm_src	=> "des_enc.c fcrypt_b.c",
@@ -45,23 +46,23 @@
     uplink_common => {
 	template	=> 1,
 	apps_aux_src	=> add("../ms/applink.c"),
-	cpuid_asm_src	=> add("../ms/uplink.c"),
+	uplink_aux_src	=> add("../ms/uplink.c"),
 	shared_defines	=> add("OPENSSL_USE_APPLINK", { separator => undef }),
     },
     x86_uplink => {
 	inherit_from	=> [ "uplink_common" ],
 	template	=> 1,
-	cpuid_asm_src	=> add("uplink-x86.s"),
+	uplink_aux_src	=> add("uplink-x86.s"),
     },
     x86_64_uplink => {
 	inherit_from	=> [ "uplink_common" ],
 	template	=> 1,
-	cpuid_asm_src	=> add("uplink-x86_64.s"),
+	uplink_aux_src	=> add("uplink-x86_64.s"),
     },
     ia64_uplink => {
 	inherit_from	=> [ "uplink_common" ],
 	template	=> 1,
-	cpuid_asm_src	=> add("uplink-ia64.s"),
+	uplink_aux_src	=> add("uplink-ia64.s"),
     },
 
     x86_asm => {
diff --git a/Configure b/Configure
index 080bc06..8f5b1a1 100755
--- a/Configure
+++ b/Configure
@@ -1717,7 +1717,9 @@ print "DEFINES       =",join(" ", @{$config{defines}}),"\n";
 print "LFLAG         =$config{lflags}\n";
 print "PLIB_LFLAG    =$config{plib_lflags}\n";
 print "EX_LIBS       =$config{ex_libs}\n";
+print "APPS_OBJ      =$target{apps_obj}\n";
 print "CPUID_OBJ     =$target{cpuid_obj}\n";
+print "UPLINK_OBJ    =$target{uplink_obj}\n";
 print "BN_ASM        =$target{bn_obj}\n";
 print "EC_ASM        =$target{ec_obj}\n";
 print "DES_ENC       =$target{des_obj}\n";
diff --git a/Makefile.in b/Makefile.in
index 6111309..bddbfdb 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -125,6 +125,7 @@ PROCESSOR= {- $config{processor} -}
 # CPUID module collects small commonly used assembler snippets
 APPS_OBJ={- $target{apps_obj} -}
 CPUID_OBJ= {- $target{cpuid_obj} -}
+UPLINK_OBJ= {- $target{uplink_obj} -}
 BN_ASM= {- $target{bn_obj} -}
 EC_ASM= {- $target{ec_obj} -}
 DES_ENC= {- $target{des_obj} -}
@@ -268,7 +269,7 @@ BUILDENV=	LC_ALL=C PLATFORM='$(PLATFORM)' PROCESSOR='$(PROCESSOR)'\
 		SHLIB_TARGET='$(SHLIB_TARGET)'	\
 		LDFLAG='$(LDFLAG)'				\
 		PLIB_LDFLAG='$(PLIB_LDFLAG)' EX_LIBS='$(EX_LIBS)'	\
-		APPS_OBJ='$(APPS_OBJ)'				\
+		APPS_OBJ='$(APPS_OBJ)' UPLINK_OBJ='$(UPLINK_OBJ)'	\
 		CPUID_OBJ='$(CPUID_OBJ)' BN_ASM='$(BN_ASM)'	\
 		EC_ASM='$(EC_ASM)' DES_ENC='$(DES_ENC)'		\
 		AES_ENC='$(AES_ENC)' CMLL_ENC='$(CMLL_ENC)'	\
diff --git a/crypto/Makefile.in b/crypto/Makefile.in
index c29d44c..9e407df 100644
--- a/crypto/Makefile.in
+++ b/crypto/Makefile.in
@@ -25,6 +25,7 @@ CFLAGS= $(INCLUDE) $(CFLAG) $(SHARED_CFLAG)
 ASFLAGS= $(INCLUDE) $(ASFLAG)
 AFLAGS=$(ASFLAGS)
 CPUID_OBJ=mem_clr.o
+UPLINK_OBJ=
 
 LIBS=
 
@@ -39,7 +40,7 @@ LIBSRC=	cryptlib.c mem.c mem_clr.c mem_dbg.c cversion.c ex_data.c cpt_err.c \
 LIBOBJ= cryptlib.o mem.o mem_dbg.o cversion.o ex_data.o cpt_err.o \
 	ebcdic.o uid.o o_time.o o_str.o o_dir.o thr_id.o lock.o \
 	threads_pthread.o threads_win.o threads_none.o \
-	o_init.o o_fips.o mem_sec.o init.o $(CPUID_OBJ)
+	o_init.o o_fips.o mem_sec.o init.o $(CPUID_OBJ) $(UPLINK_OBJ)
 
 SRC= $(LIBSRC)
 
diff --git a/crypto/build.info b/crypto/build.info
index 24a009a..471a9fd 100644
--- a/crypto/build.info
+++ b/crypto/build.info
@@ -4,7 +4,8 @@ SOURCE[../libcrypto]=\
         cryptlib.c mem.c mem_dbg.c cversion.c ex_data.c cpt_err.c \
         ebcdic.c uid.c o_time.c o_str.c o_dir.c thr_id.c lock.c \
         threads_pthread.c threads_win.c threads_none.c \
-        o_init.c o_fips.c mem_sec.c init.c {- $target{cpuid_asm_src} -}
+        o_init.c o_fips.c mem_sec.c init.c {- $target{cpuid_asm_src} -} \
+        {- $target{uplink_aux_src} -}
 EXTRA=  ../ms/uplink-x86.pl ../ms/uplink.c ../ms/applink.c \
         x86cpuid.pl x86_64cpuid.pl ia64cpuid.S \
         ppccpuid.pl pariscid.pl alphacpuid.pl arm64cpuid.pl armv4cpuid.pl


More information about the openssl-commits mailing list