omadrm/drmengine/group/CryptoPrep.flm
author William Roberts <williamr@symbian.org>
Wed, 28 Apr 2010 22:11:01 +0100
branchRCL_3
changeset 26 c8580ce65571
parent 25 04da681812a9
parent 13 77a4e6a1beb4
child 27 03016feedc4b
permissions -rw-r--r--
Remerge fixes for Bug 2121 and Bug 1993 - Bug 1993 is partially implemented in "Revision: 201015" which has removed the CMLA RnD key exports, so I've stopped creating omadrm/rndcerts/group/bld.inf - The CryptoPrep.flm fix (Bug 2121) is unchanged, as I don't like the latest changes to add the exported file to the "sbs -what" output
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
25
04da681812a9 Revision: 201015
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents: 5
diff changeset
     1
# Copyright (c) 2009-2010 Nokia Corporation and/or its subsidiary(-ies).
0
95b198f216e5 Revision: 200949
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
     2
# All rights reserved.
95b198f216e5 Revision: 200949
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
     3
# This component and the accompanying materials are made available
5
79d62d1d7957 Revision: 201003
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents: 0
diff changeset
     4
# under the terms of the License "Eclipse Public License v1.0"
0
95b198f216e5 Revision: 200949
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
     5
# which accompanies this distribution, and is available
5
79d62d1d7957 Revision: 201003
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents: 0
diff changeset
     6
# at the URL "http://www.eclipse.org/legal/epl-v10.html".
0
95b198f216e5 Revision: 200949
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
     7
#
95b198f216e5 Revision: 200949
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
     8
# Initial Contributors:
95b198f216e5 Revision: 200949
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
     9
# Nokia Corporation - initial contribution.
95b198f216e5 Revision: 200949
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    10
#
95b198f216e5 Revision: 200949
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    11
# Contributors:
95b198f216e5 Revision: 200949
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    12
#
95b198f216e5 Revision: 200949
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    13
# Description: DRM Crypto Library build configuration
95b198f216e5 Revision: 200949
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    14
#
95b198f216e5 Revision: 200949
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    15
13
77a4e6a1beb4 Rework CryptoPrep.flm to make a proper fix for Bug 2121
William Roberts <williamr@symbian.org>
parents: 5
diff changeset
    16
ifeq ($(_CRYPTOPREP_FLM_),)
77a4e6a1beb4 Rework CryptoPrep.flm to make a proper fix for Bug 2121
William Roberts <williamr@symbian.org>
parents: 5
diff changeset
    17
# first instance of this FLM
77a4e6a1beb4 Rework CryptoPrep.flm to make a proper fix for Bug 2121
William Roberts <williamr@symbian.org>
parents: 5
diff changeset
    18
_CRYPTOPREP_FLM_:= 1
77a4e6a1beb4 Rework CryptoPrep.flm to make a proper fix for Bug 2121
William Roberts <williamr@symbian.org>
parents: 5
diff changeset
    19
0
95b198f216e5 Revision: 200949
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    20
TMPROOT:=$(subst \,/,$(EPOCROOT))
95b198f216e5 Revision: 200949
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    21
EPOCROOT:=$(patsubst %/,%,$(TMPROOT))/
95b198f216e5 Revision: 200949
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    22
13
77a4e6a1beb4 Rework CryptoPrep.flm to make a proper fix for Bug 2121
William Roberts <williamr@symbian.org>
parents: 5
diff changeset
    23
# NB: abspath doesn't like Windows drive letters
77a4e6a1beb4 Rework CryptoPrep.flm to make a proper fix for Bug 2121
William Roberts <williamr@symbian.org>
parents: 5
diff changeset
    24
CRYPTO_SOURCE_DRIVE:=$(firstword $(subst :, ,$(EXTENSION_ROOT)))
77a4e6a1beb4 Rework CryptoPrep.flm to make a proper fix for Bug 2121
William Roberts <williamr@symbian.org>
parents: 5
diff changeset
    25
ifeq ($(CRYPTO_SOURCE_DRIVE),$(EXTENSION_ROOT))
77a4e6a1beb4 Rework CryptoPrep.flm to make a proper fix for Bug 2121
William Roberts <williamr@symbian.org>
parents: 5
diff changeset
    26
CREATABLEPATH:=$(abspath $(EXTENSION_ROOT)/../drmengine/drmcrypto/build))
77a4e6a1beb4 Rework CryptoPrep.flm to make a proper fix for Bug 2121
William Roberts <williamr@symbian.org>
parents: 5
diff changeset
    27
else
77a4e6a1beb4 Rework CryptoPrep.flm to make a proper fix for Bug 2121
William Roberts <williamr@symbian.org>
parents: 5
diff changeset
    28
CRYPTO_ABSPATH:=$(abspath $(subst $(CRYPTO_SOURCE_DRIVE):,,$(EXTENSION_ROOT)/../drmengine/drmcrypto/build))
77a4e6a1beb4 Rework CryptoPrep.flm to make a proper fix for Bug 2121
William Roberts <williamr@symbian.org>
parents: 5
diff changeset
    29
CREATABLEPATH:=$(CRYPTO_SOURCE_DRIVE):$(CRYPTO_ABSPATH)
77a4e6a1beb4 Rework CryptoPrep.flm to make a proper fix for Bug 2121
William Roberts <williamr@symbian.org>
parents: 5
diff changeset
    30
endif
0
95b198f216e5 Revision: 200949
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    31
95b198f216e5 Revision: 200949
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    32
crypto_files:=$(wildcard $(EXTENSION_ROOT)/../drmengine/drmcrypto/CMLA/*.cpp)
95b198f216e5 Revision: 200949
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    33
25
04da681812a9 Revision: 201015
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents: 5
diff changeset
    34
GUARD:=done_$(call sanitise,$(CLEANTARGETS))
04da681812a9 Revision: 201015
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents: 5
diff changeset
    35
ifeq ($($(GUARD)),)
04da681812a9 Revision: 201015
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents: 5
diff changeset
    36
$(GUARD):=1
04da681812a9 Revision: 201015
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents: 5
diff changeset
    37
13
77a4e6a1beb4 Rework CryptoPrep.flm to make a proper fix for Bug 2121
William Roberts <williamr@symbian.org>
parents: 5
diff changeset
    38
ifeq ($(crypto_files),)
77a4e6a1beb4 Rework CryptoPrep.flm to make a proper fix for Bug 2121
William Roberts <williamr@symbian.org>
parents: 5
diff changeset
    39
CMLA_CRYPTO_SOURCE:=$(CREATABLEPATH)/../stub/CmlaCryptoStub.cpp
77a4e6a1beb4 Rework CryptoPrep.flm to make a proper fix for Bug 2121
William Roberts <williamr@symbian.org>
parents: 5
diff changeset
    40
else
77a4e6a1beb4 Rework CryptoPrep.flm to make a proper fix for Bug 2121
William Roberts <williamr@symbian.org>
parents: 5
diff changeset
    41
CMLA_CRYPTO_SOURCE:=$(CREATABLEPATH)/../CMLA/CmlaCrypto.cpp
77a4e6a1beb4 Rework CryptoPrep.flm to make a proper fix for Bug 2121
William Roberts <williamr@symbian.org>
parents: 5
diff changeset
    42
endif
0
95b198f216e5 Revision: 200949
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    43
13
77a4e6a1beb4 Rework CryptoPrep.flm to make a proper fix for Bug 2121
William Roberts <williamr@symbian.org>
parents: 5
diff changeset
    44
$(CREATABLEPATH)/cmlacrypto.cpp: $(CMLA_CRYPTO_SOURCE)
77a4e6a1beb4 Rework CryptoPrep.flm to make a proper fix for Bug 2121
William Roberts <williamr@symbian.org>
parents: 5
diff changeset
    45
	$(GNUCP) $< $@
0
95b198f216e5 Revision: 200949
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    46
95b198f216e5 Revision: 200949
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    47
# Create dirs
95b198f216e5 Revision: 200949
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    48
$(call makepath,$(CREATABLEPATH))
95b198f216e5 Revision: 200949
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    49
95b198f216e5 Revision: 200949
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    50
## Clean up
95b198f216e5 Revision: 200949
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    51
$(eval $(call GenerateStandardCleanTarget,$(CLEANTARGETS)))
95b198f216e5 Revision: 200949
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    52
26
c8580ce65571 Remerge fixes for Bug 2121 and Bug 1993
William Roberts <williamr@symbian.org>
parents: 25 13
diff changeset
    53
$(info <debug>$(PLATFORM) $(CFG), selecting $(CMLA_CRYPTO_SOURCE)</debug>)
25
04da681812a9 Revision: 201015
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents: 5
diff changeset
    54
13
77a4e6a1beb4 Rework CryptoPrep.flm to make a proper fix for Bug 2121
William Roberts <williamr@symbian.org>
parents: 5
diff changeset
    55
else
26
c8580ce65571 Remerge fixes for Bug 2121 and Bug 1993
William Roberts <williamr@symbian.org>
parents: 25 13
diff changeset
    56
$(info <debug>$(PLATFORM) $(CFG), already handled $(CMLA_CRYPTO_SOURCE)</debug>)
13
77a4e6a1beb4 Rework CryptoPrep.flm to make a proper fix for Bug 2121
William Roberts <williamr@symbian.org>
parents: 5
diff changeset
    57
# FLM already included - don't duplicate the targets
25
04da681812a9 Revision: 201015
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents: 5
diff changeset
    58
13
77a4e6a1beb4 Rework CryptoPrep.flm to make a proper fix for Bug 2121
William Roberts <williamr@symbian.org>
parents: 5
diff changeset
    59
endif