瀏覽代碼

* patch by Reynaldo to generate kernel image for the raspi2 embedded port, resolves #27052

git-svn-id: trunk@45365 -
florian 5 年之前
父節點
當前提交
4559620efa
共有 1 個文件被更改,包括 4 次插入0 次删除
  1. 4 0
      compiler/systems/t_embed.pas

+ 4 - 0
compiler/systems/t_embed.pas

@@ -1653,6 +1653,10 @@ begin
         success:=DoExec(FindUtil(utilsprefix+'objcopy'),'-O binary '+
         success:=DoExec(FindUtil(utilsprefix+'objcopy'),'-O binary '+
           FixedExeFileName+' '+
           FixedExeFileName+' '+
           maybequoted(ScriptFixFileName(ChangeFileExt(current_module.exefilename,'.bin'))),true,false);
           maybequoted(ScriptFixFileName(ChangeFileExt(current_module.exefilename,'.bin'))),true,false);
+{$ifdef ARM}
+      if success and (current_settings.controllertype = ct_raspi2) then
+        success:=DoExec(FindUtil(utilsprefix+'objcopy'),'-O binary '+ FixedExeFileName + ' kernel7.img',true,false);
+{$endif ARM}
     end;
     end;
 
 
   MakeExecutable:=success;   { otherwise a recursive call to link method }
   MakeExecutable:=success;   { otherwise a recursive call to link method }