Not the makefile that builds the port, but the example one which is
supplied with it.

For the programming to work, the "prog name-of-file" needs to be one single
argument, so enclose in quotes,
and for the "make asm" target, OBJDUMP needs to get defined also.

If gmail borks the diff, it's also at:
http://people.su.se/~jj/obsd/msp430.diff


Index: files/Makefile
===================================================================
RCS file: /home/cvsync/cvs/ports/meta/msp430/files/Makefile,v
retrieving revision 1.1
diff -u -r1.1 Makefile
--- files/Makefile      25 Jan 2013 10:06:33 -0000      1.1
+++ files/Makefile      23 Mar 2013 16:17:17 -0000
@@ -15,6 +15,7 @@
 GASP    = $(MCU)-gasp
 NM      = $(MCU)-nm
 OBJCOPY  = $(MCU)-objcopy
+OBJDUMP  = $(MCU)-objdump
 RANLIB   = $(MCU)-ranlib
 STRIP   = $(MCU)-strip
 SIZE    = $(MCU)-size
@@ -53,7 +54,7 @@
        $(MAKETXT) -O $(TARGET).txt -TITXT $(TARGET).hex -I

 program: $(TARGET).elf
-       mspdebug rf2500 prog $(TARGET).elf exit
+       mspdebug rf2500 "prog $(TARGET).elf" exit

 clean:
        rm -fr $(TARGET).elf $(TARGET).hex $(OBJECTS)


-- 
May the most significant bit of your life be positive.

Reply via email to