#165245 - DiscoStew - Sun Dec 14, 2008 9:57 pm
For some reason, I can't get this dang thing to work. Prior to installing the latest toolchain, I was using the combined template for my projects (even though I wasn't doing anything on the ARM7 yet), and I had gotten my setup working so I could use libFAT on No$GBA using DLDI. Now, having converted to just the plain ARM9 build, I continually get the error that the compiled project "does not have a DLDI section". This is what I had before with the combined template...
...and this is what I am trying to do with the single build...
Everything checks out, but when it gets to the dlditool line, I get the error described above. Just to note, my "combined" Makefile was working perfectly, so I don't think there is anything different from the files being used.
_________________
DS - It's all about DiscoStew
Code: |
all: $(TARGET)_fcsr.nds
$(TARGET)_fcsr.nds : $(TARGET).ds.gba padbin.exe 512 $(TARGET).ds.gba cat $(TARGET).ds.gba ./fcsrimage/image.img > $(TARGET)_fcsr.nds dlditool.exe ./fcsrimage/fcsr.dldi $(TARGET)_fcsr.nds #--------------------------------------------------------------------------------- $(TARGET).ds.gba : $(TARGET).nds #--------------------------------------------------------------------------------- $(TARGET).nds : $(TARGET).arm7 $(TARGET).arm9 ndstool -c $(TARGET).nds -7 $(TARGET).arm7 -9 $(TARGET).arm9 #--------------------------------------------------------------------------------- $(TARGET).arm7 : arm7/$(TARGET).elf $(TARGET).arm9 : arm9/$(TARGET).elf #--------------------------------------------------------------------------------- arm7/$(TARGET).elf: $(MAKE) -C arm7 #--------------------------------------------------------------------------------- arm9/$(TARGET).elf: $(MAKE) -C arm9 |
...and this is what I am trying to do with the single build...
Code: |
#---------------------------------------------------------------------------------
# main targets #--------------------------------------------------------------------------------- all: $(OUTPUT)_fcsr.nds $(OUTPUT)_fcsr.nds : $(OUTPUT).nds padbin 512 $(OUTPUT).nds cat $(OUTPUT).nds $(CURDIR)/../fcsrimage/image.img > $(OUTPUT)_fcsr.nds dlditool $(CURDIR)/../fcsrimage/fcsr.dldi $(OUTPUT)_fcsr.nds #--------------------------------------------------------------------------------- $(OUTPUT).nds : $(OUTPUT).arm9 $(OUTPUT).arm9 : $(OUTPUT).elf $(OUTPUT).elf : $(OFILES) |
Everything checks out, but when it gets to the dlditool line, I get the error described above. Just to note, my "combined" Makefile was working perfectly, so I don't think there is anything different from the files being used.
_________________
DS - It's all about DiscoStew