mirror of
https://github.com/reactos/reactos.git
synced 2024-08-12 06:06:27 +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
|
void
|
||||||
MingwModuleHandler::GenerateBuildMapCode ()
|
MingwModuleHandler::GenerateBuildMapCode ( const char *mapTarget )
|
||||||
{
|
{
|
||||||
fprintf ( fMakefile,
|
fprintf ( fMakefile,
|
||||||
"ifeq ($(ROS_BUILDMAP),full)\n" );
|
"ifeq ($(ROS_BUILDMAP),full)\n" );
|
||||||
|
@ -1334,7 +1334,8 @@ MingwModuleHandler::GenerateBuildMapCode ()
|
||||||
fprintf ( fMakefile,
|
fprintf ( fMakefile,
|
||||||
"\t$(ECHO_OBJDUMP)\n" );
|
"\t$(ECHO_OBJDUMP)\n" );
|
||||||
fprintf ( fMakefile,
|
fprintf ( fMakefile,
|
||||||
"\t$(Q)${objdump} -d -S $@ > %s\n",
|
"\t$(Q)${objdump} -d -S %s > %s\n",
|
||||||
|
mapTarget ? mapTarget : "$@",
|
||||||
mapFilename.c_str () );
|
mapFilename.c_str () );
|
||||||
|
|
||||||
fprintf ( fMakefile,
|
fprintf ( fMakefile,
|
||||||
|
@ -1345,7 +1346,8 @@ MingwModuleHandler::GenerateBuildMapCode ()
|
||||||
fprintf ( fMakefile,
|
fprintf ( fMakefile,
|
||||||
"\t$(ECHO_NM)\n" );
|
"\t$(ECHO_NM)\n" );
|
||||||
fprintf ( fMakefile,
|
fprintf ( fMakefile,
|
||||||
"\t$(Q)${nm} --numeric-sort $@ > %s\n",
|
"\t$(Q)${nm} --numeric-sort %s > %s\n",
|
||||||
|
mapTarget ? mapTarget : "$@",
|
||||||
mapFilename.c_str () );
|
mapFilename.c_str () );
|
||||||
|
|
||||||
fprintf ( fMakefile,
|
fprintf ( fMakefile,
|
||||||
|
@ -2672,6 +2674,7 @@ MingwBootLoaderModuleHandler::GenerateBootLoaderModuleTarget ()
|
||||||
fprintf ( fMakefile,
|
fprintf ( fMakefile,
|
||||||
"\t${objcopy} -O binary %s $@\n",
|
"\t${objcopy} -O binary %s $@\n",
|
||||||
junk_tmp.c_str () );
|
junk_tmp.c_str () );
|
||||||
|
GenerateBuildMapCode ( junk_tmp.c_str() );
|
||||||
fprintf ( fMakefile,
|
fprintf ( fMakefile,
|
||||||
"\t-@${rm} %s 2>$(NUL)\n",
|
"\t-@${rm} %s 2>$(NUL)\n",
|
||||||
junk_tmp.c_str () );
|
junk_tmp.c_str () );
|
||||||
|
|
|
@ -119,6 +119,7 @@ protected:
|
||||||
const std::string& libsMacro,
|
const std::string& libsMacro,
|
||||||
const std::string& pefixupParameters );
|
const std::string& pefixupParameters );
|
||||||
void GeneratePhonyTarget() const;
|
void GeneratePhonyTarget() const;
|
||||||
|
void GenerateBuildMapCode ( const char *mapTarget = NULL );
|
||||||
void GenerateRules ();
|
void GenerateRules ();
|
||||||
void GenerateImportLibraryTargetIfNeeded ();
|
void GenerateImportLibraryTargetIfNeeded ();
|
||||||
void GetDefinitionDependencies ( string_list& dependencies ) const;
|
void GetDefinitionDependencies ( string_list& dependencies ) const;
|
||||||
|
@ -199,7 +200,6 @@ private:
|
||||||
bool IsWineModule () const;
|
bool IsWineModule () const;
|
||||||
std::string GetDefinitionFilename () const;
|
std::string GetDefinitionFilename () const;
|
||||||
static std::string RemoveVariables ( std::string path);
|
static std::string RemoveVariables ( std::string path);
|
||||||
void GenerateBuildMapCode ();
|
|
||||||
void GenerateBuildNonSymbolStrippedCode ();
|
void GenerateBuildNonSymbolStrippedCode ();
|
||||||
void CleanupCompilationUnitVector ( std::vector<CompilationUnit*>& compilationUnits );
|
void CleanupCompilationUnitVector ( std::vector<CompilationUnit*>& compilationUnits );
|
||||||
void GetRpcHeaderDependencies ( std::vector<std::string>& dependencies ) const;
|
void GetRpcHeaderDependencies ( std::vector<std::string>& dependencies ) const;
|
||||||
|
|
Loading…
Reference in a new issue