Skip to content

Commit 3a561b0

Browse files
committedJun 17, 2019
Move padlock_asm_src file information to build.info files
Reviewed-by: Matt Caswell <matt@openssl.org> (Merged from openssl#9166)
1 parent 8c0098a commit 3a561b0

File tree

4 files changed

+17
-16
lines changed

4 files changed

+17
-16
lines changed
 

‎Configurations/00-base-templates.conf

-4
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,6 @@ my %targets=(
1414
thread_scheme => "(unknown)", # Assume we don't know
1515
thread_defines => [],
1616

17-
padlock_asm_src => "",
18-
1917
unistd => "<unistd.h>",
2018
shared_target => "",
2119
shared_cflag => "",
@@ -151,15 +149,13 @@ my %targets=(
151149

152150
x86_asm => {
153151
template => 1,
154-
padlock_asm_src => "e_padlock-x86.s",
155152
},
156153
x86_elf_asm => {
157154
template => 1,
158155
inherit_from => [ "x86_asm" ],
159156
},
160157
x86_64_asm => {
161158
template => 1,
162-
padlock_asm_src => "e_padlock-x86_64.s",
163159
},
164160
ia64_asm => {
165161
template => 1,

‎Configurations/README

-5
Original file line numberDiff line numberDiff line change
@@ -240,11 +240,6 @@ In each table entry, the following keys are significant:
240240
export vars as
241241
accessor functions.
242242

243-
padlock_asm_src => Assembler implementation of core parts of
244-
the padlock engine. This is mandatory on
245-
any platform where the padlock engine might
246-
actually be built.
247-
248243

249244
[1] as part of the target configuration, one can have a key called
250245
'inherit_from' that indicate what other configurations to inherit

‎Configure

-4
Original file line numberDiff line numberDiff line change
@@ -1404,9 +1404,6 @@ if ($target{sys_id} ne "")
14041404
}
14051405

14061406
unless ($disabled{asm}) {
1407-
if ($target{padlock_asm_src} ne $table{DEFAULTS}->{padlock_asm_src}) {
1408-
push @{$config{dso_defines}}, "PADLOCK_ASM";
1409-
}
14101407
}
14111408

14121409
my %predefined_C = compiler_predefined($config{CROSS_COMPILE}.$config{CC});
@@ -3335,7 +3332,6 @@ sub print_table_entry
33353332
"loutflag",
33363333
"ex_libs",
33373334
"bn_ops",
3338-
"padlock_asm_src",
33393335
"poly1035_asm_src",
33403336
"thread_scheme",
33413337
"perlasm_scheme",

‎engines/build.info

+17-3
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,22 @@
11
IF[{- !$disabled{"engine"} -}]
2+
$PADLOCKASM=
3+
IF[{- !$disabled{asm} -}]
4+
$PADLOCKASM_x86=e_padlock-x86.s
5+
$PADLOCKASM_x86_64=e_padlock-x86_64.s
6+
7+
# Now that we have defined all the arch specific variables, use the
8+
# appropriate one, and define the appropriate macros
9+
IF[$PADLOCKASM_{- $target{asm_arch} -}]
10+
$PADLOCKASM=$PADLOCKASM_{- $target{asm_arch} -}
11+
$PADLOCKDEF=PADLOCK_ASM
12+
ENDIF
13+
ENDIF
14+
215
IF[{- $disabled{"dynamic-engine"} -}]
316
LIBS=../libcrypto
417
IF[{- !$disabled{padlockeng} -}]
5-
SOURCE[../libcrypto]=\
6-
e_padlock.c {- $target{padlock_asm_src} -}
18+
SOURCE[../libcrypto]=e_padlock.c $PADLOCKASM
19+
DEFINE[../libcrypto]=$PADLOCKDEF
720
ENDIF
821
IF[{- !$disabled{capieng} -}]
922
SOURCE[../libcrypto]=e_capi.c
@@ -17,7 +30,8 @@ IF[{- !$disabled{"engine"} -}]
1730
ELSE
1831
IF[{- !$disabled{padlockeng} -}]
1932
MODULES{engine}=padlock
20-
SOURCE[padlock]=e_padlock.c {- $target{padlock_asm_src} -}
33+
SOURCE[padlock]=e_padlock.c $PADLOCKASM
34+
DEFINE[padlock]=$PADLOCKDEF
2135
DEPEND[padlock]=../libcrypto
2236
INCLUDE[padlock]=../include
2337
IF[{- defined $target{shared_defflag} -}]

0 commit comments

Comments
 (0)
Please sign in to comment.