Add support for "slim", which is "stem" + removal of some exports and checking of import details
For this to work, the static_dependencies.txt file needs to contain the augmented dependency information.
To help with this, it can now consume a mixture of both rom_content.csv lines and static_dependencies.txt lines: the
best way to update the information would be something like
(edit rom_content.csv to add "slim" to XXX.dll)
findstr /i "xxx.dll" rom_content.csv > slim.txt
findstr /i "xxx.dll" static_dependencies.txt >> slim.txt
perl ..\tools\static_dependencies.pl -u static_dependencies.txt slim.txt > new_dependencies.txt
This will notice the "slim" marking for xxx.dll, and record the detailed import and export lists for
xxx.dll and everything which links to it. The new information will look something like
sys\bin\xxx.dll /epoc32/release/armv5/urel/stem_xxx.dll exports=1-98.100-102:euser[100039e5].dll
sys\bin\yyy.dll /epoc32/release/armv5/urel/yyy.dll euser[100039e5].dll:xxx[102750c7].dll@2.4-5.77.104-106:scppnwdl.dll
sys\bin\zzz.dll /epoc32/release/armv5/urel/zzz.dll euser[100039e5].dll:xxx[102750c7].dll@23.25.74-77:scppnwdl.dll
Only executables for which there is a "slim" marking will have this level of detail.
The filtering script now does the detailed cross-checking of imports to exports for "slim" executables.
In this case, it will observe the stem_xxx.dll does not export ordinal 104, and so the filtering will include
deleting sys\bin\yyy.dll (xxx.dll Missing ordinal 104)
sys\bin\zzz.dll will be acceptable, because it only uses ordinals which are still present in stem_xxx.dll
/*
* Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
* All rights reserved.
* This component and the accompanying materials are made available
* under the terms of "Eclipse Public License v1.0"
* which accompanies this distribution, and is available
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
*
* Initial Contributors:
* Nokia Corporation - initial contribution.
*
* Contributors:
*
* Description:
* Command list for the Selftest OK startup state.
*
*/
#include <ssm/conditionresourcetypes.rh>
#include <ssm/ssmcmd.rh>
#include "ssmsubstateext.hrh"
#include "ssmdlldatadefs.rh"
// Identify command list type
UID2 KUidSsmCommandListResourceFile
// ---------------------------------------------------------------------------
// r_entry_point
// This must be the first resource
// ---------------------------------------------------------------------------
//
RESOURCE SSM_COMMAND_LIST_ROOT r_entry_point
{
command_list_mapping = r_map;
}
// ---------------------------------------------------------------------------
// r_map
// Mapping of command list ids to resource ids.
// ---------------------------------------------------------------------------
//
RESOURCE SSM_COMMAND_LIST_MAPPING r_map
{
mappings =
{
SSM_COMMANDLISTID_TO_RESOURCEID
{
command_list_id = ESsmStateFail;
resource_id = r_cmds;
}
};
}
// ===========================================================================
// Command lists in alphabetical order
// ===========================================================================
//
// ---------------------------------------------------------------------------
// r_cmds
// ---------------------------------------------------------------------------
//
RESOURCE SSM_COMMAND_LIST r_cmds
{
commands =
{
r_cmd_sastate, // This needs to be the first command in state, prio 0xFFF2
r_cmd_publishstate, // prio 0xFFF1
r_cmd_psstate, // prio 0xFFF0
r_cmd_cancelmonitoring, // prio 0xFFE8
// prio 0xFFE7
r_cmd_killsplash,
r_cmd_contactservice,
r_cmd_sysap,
// prio 0xFFE6
r_cmd_multiwaitforever
};
}
// ===========================================================================
// Command items in alphabetical order
// ===========================================================================
//
// ---------------------------------------------------------------------------
// r_cmd_cancelmonitoring
// ---------------------------------------------------------------------------
//
RESOURCE SSM_START_CUSTOM_COMMAND r_cmd_cancelmonitoring
{
priority = 0xFFE8;
dllname = "cmncustomcmds.dll";
ordinal = 3; // Request to the sysmon server to cancel all the outstanding monitors
retries = 2;
}
// ---------------------------------------------------------------------------
// r_cmd_contactservice
// ---------------------------------------------------------------------------
//
RESOURCE SSM_START_CUSTOM_COMMAND r_cmd_contactservice
{
priority = 0xFFE7;
severity = ECmdCriticalSeverity;
execution_behaviour = ESsmDeferredWaitForSignal;
dllname = "syserrcmd.dll";
ordinal = 1;
retries = 2;
}
// ---------------------------------------------------------------------------
// r_cmd_killsplash
// ---------------------------------------------------------------------------
//
RESOURCE SSM_SET_PUBLISH_AND_SUBSCRIBE r_cmd_killsplash
{
priority = 0xFFE7;
category = 0x101F8766; // KPSUidStartup
key = 0x00000301; // KPSSplashShutdown
value = 101; // ESplashShutdown
}
// ---------------------------------------------------------------------------
// r_cmd_multiwaitforever
// ---------------------------------------------------------------------------
//
RESOURCE SSM_MULTIPLE_WAIT r_cmd_multiwaitforever
{
priority = 0xFFE6;
}
// ---------------------------------------------------------------------------
// r_cmd_psstate
// ---------------------------------------------------------------------------
//
RESOURCE SSM_SET_PUBLISH_AND_SUBSCRIBE r_cmd_psstate
{
priority = 0xFFF0;
severity = ECmdCriticalSeverity;
category = 0x101F8766; // KPSUidStartup
key = 0x00000041; // KPSGlobalSystemState
value = 116; // ESWStateFatalStartupError
}
// ---------------------------------------------------------------------------
// r_cmd_publishstate
// ---------------------------------------------------------------------------
//
RESOURCE SSM_PUBLISH_SYSTEM_STATE r_cmd_publishstate
{
priority = 0xFFF1;
severity = ECmdCriticalSeverity;
retries = 2;
}
// ---------------------------------------------------------------------------
// r_cmd_sastate
// ---------------------------------------------------------------------------
//
RESOURCE SSM_START_CUSTOM_COMMAND r_cmd_sastate
{
priority = 0xFFF2;
severity = ECmdCriticalSeverity;
dllname = "customcmds.dll";
ordinal = 8;
unload_on_finish = ENeverUnload;
retries = 2;
dll_data = r_dlldata_sastate;
}
// ---------------------------------------------------------------------------
// r_cmd_sysap
// ---------------------------------------------------------------------------
//
RESOURCE SSM_START_APP_INFO r_cmd_sysap
{
priority = 0xFFE7;
name = "Z:\\sys\\bin\\sysap.exe";
execution_behaviour = ESsmDeferredWaitForSignal;
severity = ECmdCriticalSeverity;
retries = 2;
background = 1; // To background
monitor_info = r_mon_reset;
}
// ===========================================================================
// DLL data items in alphabetical order
// ===========================================================================
//
// ---------------------------------------------------------------------------
// r_dlldata_sastate
// ---------------------------------------------------------------------------
//
RESOURCE CMD_PARAM_STATE_CHANGE r_dlldata_sastate
{
mainstate = 3; // ESsmFail
substate = 0xFFFF; // KSsmAnySubState, saastateadapataion expects this
}
// monitoring.rss contains resource definitions, so it may not be included
// before entry point.
#include "stem_monitoring.rss"