mirror of
https://github.com/reactos/reactos.git
synced 2024-07-13 16:15:05 +00:00
Modified rbuild to generate a map file of the boot loader
svn path=/trunk/; revision=20457
This commit is contained in:
parent
3c9ea526e3
commit
94c6a2cd26
|
@ -1321,7 +1321,7 @@ MingwModuleHandler::GenerateCommands (
|
|||
}
|
||||
|
||||
void
|
||||
MingwModuleHandler::GenerateBuildMapCode ()
|
||||
MingwModuleHandler::GenerateBuildMapCode ( const char *mapTarget )
|
||||
{
|
||||
fprintf ( fMakefile,
|
||||
"ifeq ($(ROS_BUILDMAP),full)\n" );
|
||||
|
@ -1334,7 +1334,8 @@ MingwModuleHandler::GenerateBuildMapCode ()
|
|||
fprintf ( fMakefile,
|
||||
"\t$(ECHO_OBJDUMP)\n" );
|
||||
fprintf ( fMakefile,
|
||||
"\t$(Q)${objdump} -d -S $@ > %s\n",
|
||||
"\t$(Q)${objdump} -d -S %s > %s\n",
|
||||
mapTarget ? mapTarget : "$@",
|
||||
mapFilename.c_str () );
|
||||
|
||||
fprintf ( fMakefile,
|
||||
|
@ -1345,7 +1346,8 @@ MingwModuleHandler::GenerateBuildMapCode ()
|
|||
fprintf ( fMakefile,
|
||||
"\t$(ECHO_NM)\n" );
|
||||
fprintf ( fMakefile,
|
||||
"\t$(Q)${nm} --numeric-sort $@ > %s\n",
|
||||
"\t$(Q)${nm} --numeric-sort %s > %s\n",
|
||||
mapTarget ? mapTarget : "$@",
|
||||
mapFilename.c_str () );
|
||||
|
||||
fprintf ( fMakefile,
|
||||
|
@ -2672,6 +2674,7 @@ MingwBootLoaderModuleHandler::GenerateBootLoaderModuleTarget ()
|
|||
fprintf ( fMakefile,
|
||||
"\t${objcopy} -O binary %s $@\n",
|
||||
junk_tmp.c_str () );
|
||||
GenerateBuildMapCode ( junk_tmp.c_str() );
|
||||
fprintf ( fMakefile,
|
||||
"\t-@${rm} %s 2>$(NUL)\n",
|
||||
junk_tmp.c_str () );
|
||||
|
|
|
@ -119,6 +119,7 @@ protected:
|
|||
const std::string& libsMacro,
|
||||
const std::string& pefixupParameters );
|
||||
void GeneratePhonyTarget() const;
|
||||
void GenerateBuildMapCode ( const char *mapTarget = NULL );
|
||||
void GenerateRules ();
|
||||
void GenerateImportLibraryTargetIfNeeded ();
|
||||
void GetDefinitionDependencies ( string_list& dependencies ) const;
|
||||
|
@ -199,7 +200,6 @@ private:
|
|||
bool IsWineModule () const;
|
||||
std::string GetDefinitionFilename () const;
|
||||
static std::string RemoveVariables ( std::string path);
|
||||
void GenerateBuildMapCode ();
|
||||
void GenerateBuildNonSymbolStrippedCode ();
|
||||
void CleanupCompilationUnitVector ( std::vector<CompilationUnit*>& compilationUnits );
|
||||
void GetRpcHeaderDependencies ( std::vector<std::string>& dependencies ) const;
|
||||
|
|
Loading…
Reference in a new issue