aboutsummaryrefslogtreecommitdiff
path: root/Configurations/00-base-templates.conf
diff options
context:
space:
mode:
authorRichard Levitte <levitte@openssl.org>2016-02-18 18:43:56 +0100
committerRichard Levitte <levitte@openssl.org>2016-02-19 11:06:54 +0100
commit3a55c92bbad0b720c9a3d7a56fa3c351b65a89ee (patch)
tree59e5462b3f76ce4de66c9b5dc8243f5d8f632670 /Configurations/00-base-templates.conf
parent5be5e56c09015633d94fb1ee1290081a78074546 (diff)
downloadopenssl-3a55c92bbad0b720c9a3d7a56fa3c351b65a89ee.zip
openssl-3a55c92bbad0b720c9a3d7a56fa3c351b65a89ee.tar.gz
openssl-3a55c92bbad0b720c9a3d7a56fa3c351b65a89ee.tar.bz2
Rethink the uplink / applink story
Adding uplink and applink to some builds was done by "magic", the configuration for "mingw" only had a macro definition, the Configure would react to its presence by adding the uplink source files to cpuid_asm_src, and crypto/build.info inherited dance to get it compiled, and Makefile.shared made sure applink.o would be appropriately linked in. That was a lot under the hood. To replace this, we create a few template configurations in Configurations/00-base-templates.conf, inherit one of them in the "mingw" configuration, the rest is just about refering to the $target{apps_aux_src} / $target{apps_obj} in the right places. Reviewed-by: Andy Polyakov <appro@openssl.org>
Diffstat (limited to 'Configurations/00-base-templates.conf')
-rw-r--r--Configurations/00-base-templates.conf25
1 files changed, 24 insertions, 1 deletions
diff --git a/Configurations/00-base-templates.conf b/Configurations/00-base-templates.conf
index cf5371b..791634f 100644
--- a/Configurations/00-base-templates.conf
+++ b/Configurations/00-base-templates.conf
@@ -12,7 +12,7 @@
thread_cflags => "",
thread_defines => [],
- apps_extra_src => "",
+ apps_aux_src => "",
cpuid_asm_src => "mem_clr.c",
bn_asm_src => "bn_asm.c",
ec_asm_src => "",
@@ -34,6 +34,7 @@
unistd => "<unistd.h>",
shared_target => "",
shared_cflag => "",
+ shared_defines => [],
shared_ldflag => "",
shared_rcflag => "",
shared_extension => "",
@@ -41,6 +42,28 @@
build_file => "Makefile",
},
+ uplink_common => {
+ template => 1,
+ apps_aux_src => add(" ","../ms/applink.c"),
+ cpuid_asm_src => add(" ","../ms/uplink.c"),
+ shared_defines => add(undef, "OPENSSL_USE_APPLINK"),
+ },
+ x86_uplink => {
+ inherit_from => [ "uplink_common" ],
+ template => 1,
+ cpuid_asm_src => add(" ","uplink-x86.s"),
+ },
+ x86_64_uplink => {
+ inherit_from => [ "uplink_common" ],
+ template => 1,
+ cpuid_asm_src => add(" ","uplink-x86_64.s"),
+ },
+ ia64_uplink => {
+ inherit_from => [ "uplink_common" ],
+ template => 1,
+ cpuid_asm_src => add(" ","uplink-ia64.s"),
+ },
+
x86_asm => {
template => 1,
cpuid_asm_src => "x86cpuid.s",