How Do I set the MakeFile for CFW

Discussion in '3DS - Homebrew Development and Emulators' started by bannana2, Feb 19, 2015.

  1. bannana2
    OP

    bannana2 GBAtemp Regular

    Member
    240
    152
    Nov 11, 2008
    United States
    Spring Hill, KS
    I have a windows machine trying to do a simple build with SCFW, but all I am seeing in the output is this:

    make: arm-none-eabi-as: Command not found
    make: *** [arm9_code.elf] Error 127.

    Any help would be appreciated. thanks.
     


  2. Vappy

    Vappy GBAtemp Advanced Maniac

    Member
    1,507
    1,154
    May 23, 2012
    Looks like you don't have GCC ARM Embedded, it's included with DevKitPro
     
  3. bannana2
    OP

    bannana2 GBAtemp Regular

    Member
    240
    152
    Nov 11, 2008
    United States
    Spring Hill, KS
    Hm...when I install devkitPro I have all the options checked and I see that I have that arm-none-eabi file included in C:\devkitPro\devkitARM\arm-none-eabi\bin.
     
  4. CalebW

    CalebW Fellow Temper

    Member
    634
    154
    Jun 29, 2012
    United States
    That needs to be included in your PATH
     
  5. bannana2
    OP

    bannana2 GBAtemp Regular

    Member
    240
    152
    Nov 11, 2008
    United States
    Spring Hill, KS
    Sorry, but if I understand correctly, this path variable needs to be written into the makefile. Unfortunately, I can only find stuff that references how its done in Linux. I'm kinda confused.
     
  6. AtlanticBit

    AtlanticBit Yeh, fuck this

    Member
    365
    189
    Jan 15, 2015
    Poland
    DEEP IN SPACE
    so yeah, I had problems compiling this stuff as I got a lot of asm errors.
     
  7. bannana2
    OP

    bannana2 GBAtemp Regular

    Member
    240
    152
    Nov 11, 2008
    United States
    Spring Hill, KS
    Exactly, its impossible. I had it working, but I forgot what I put in the makefile. I give up.
     
  8. piratesephiroth

    piratesephiroth I wish I could read

    Member
    3,002
    1,617
    Sep 5, 2013
    Brazil
    Add c:\devkitPro\msys\bin and C:\devkitPro\devkitARM\bin to the path. DevkitPro installer is retarded and misses stuff.
     
  9. CalebW

    CalebW Fellow Temper

    Member
    634
    154
    Jun 29, 2012
    United States
    I don't think he knows how to add to his PATH, and I'm a linux user so I'm not sure how to do it in windoze.
     
  10. piratesephiroth

    piratesephiroth I wish I could read

    Member
    3,002
    1,617
    Sep 5, 2013
    Brazil
    Oh, hit Win + pause/break to go to System Properties then select the 'Advanced' tab.
    Alternatively you can also hit win+ R and run SystemPropertiesAdvanced directly.
    Then you press the 'Environment Variables' button.
    PATH is in the 'System Variables' box on the lower section. Entries are separated by semicolons.
     
    neim81094 and bannana2 like this.
  11. bannana2
    OP

    bannana2 GBAtemp Regular

    Member
    240
    152
    Nov 11, 2008
    United States
    Spring Hill, KS
    K, I added them and I appreciate the help, but it just shows the same error.
    Yeah, I got that figured out. lol, I am still confused on this because
     
  12. bannana2
    OP

    bannana2 GBAtemp Regular

    Member
    240
    152
    Nov 11, 2008
    United States
    Spring Hill, KS
    So, here is how I fixed it:

    export DEVKITARM=$DEVKITPRO/devkitARM in the make file. Done.
     
  13. piratesephiroth

    piratesephiroth I wish I could read

    Member
    3,002
    1,617
    Sep 5, 2013
    Brazil
    So it was the DEVKITARM environment variable...

    [​IMG]
     
    bannana2 likes this.
  14. Slushie3DS

    Slushie3DS Cold Beverage Lover

    Member
    707
    294
    Jan 9, 2015
    United States
    I'm interested in what you were doing before running into this error, as in your project. Care to elaborate?
     
  15. bannana2
    OP

    bannana2 GBAtemp Regular

    Member
    240
    152
    Nov 11, 2008
    United States
    Spring Hill, KS
    /*
    ARM9_function1:
    push {r4, lr}
    ldr r4, =0x805cf05
    blx r4
    pop {r4, pc}
    it will call this function \/, the function code is not complet yet and not reversed */

    Lets reverse this shit. I want a new cfw and I don't care how much time or how hard it is to learn to do it. I'm tired of the shit that govanify caused. I do know that if this function was done right we would not have such instability in the cfw that was leaked.
     
  16. bannana2
    OP

    bannana2 GBAtemp Regular

    Member
    240
    152
    Nov 11, 2008
    United States
    Spring Hill, KS
    I did nothing. I am trying to sandbox the scfw so I downloaded it off of github.
     
    Slushie3DS likes this.
  17. Slushie3DS

    Slushie3DS Cold Beverage Lover

    Member
    707
    294
    Jan 9, 2015
    United States
    I'm assuming for 4.5?
     
  18. bannana2
    OP

    bannana2 GBAtemp Regular

    Member
    240
    152
    Nov 11, 2008
    United States
    Spring Hill, KS
    yep, yes sir.
     
    Slushie3DS likes this.
  19. Vappy

    Vappy GBAtemp Advanced Maniac

    Member
    1,507
    1,154
    May 23, 2012
    This CFW is unstable, for 4.x only, and while I can't be certain of your skill level, I'm assuming you don't have too much experience with reverse engineering. Whether or not that last part is the case, the time it'd take to reverse this CFW would probably be much better spent building a new, more reliable one scratch, using the new exploit as detailed by yifanlu.
     
  20. piratesephiroth

    piratesephiroth I wish I could read

    Member
    3,002
    1,617
    Sep 5, 2013
    Brazil
    Yeah the problem is quite more complex than it looks and requires some macgyver skills