Rework building: initial changes
authorRichard Levitte <levitte@openssl.org>
Tue, 23 Oct 2018 12:14:48 +0000 (14:14 +0200)
committerRichard Levitte <levitte@openssl.org>
Mon, 21 Jan 2019 18:31:32 +0000 (19:31 +0100)
commitd7e4932eaf53a82a2606a73282d9c8a242c1a39d
tree2f51d61f92d7aea2b811d087fc2c33d6325c5771
parentac454d8d4663e2fcf8a8437fab8aefd883091c37
Rework building: initial changes

This is the start of a major work to correct some quirks in the
buiding system.  The base for this is to move certain attributes that
lack desired flexibility from Configurations/*.conf to perl modules
that can be selected with one single attribute in the config targets.

The way this is meant to work is by adding this attribute in select
config targets:

    perl_module         => 'Name';      # Name to be replaced

Then, in the perl scripts or modules that need the functionality,
these lines should be added:

    use lib catdir($srcdir, 'Configurations'); # Ensure access to platform.pm
    use lib $blddir;    # Ensure access to configdata.pm
    use platform;       # Will load platform::$target{perl_module}

Reviewed-by: Tim Hudson <tjh@openssl.org>
Reviewed-by: Paul Dale <paul.dale@oracle.com>
(Merged from https://github.com/openssl/openssl/pull/7473)
Configurations/platform.pm [new file with mode: 0644]
Configurations/platform/BASE.pm [new file with mode: 0644]
util/dofile.pl