mkduino 0.0.5 → 0.0.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +28 -1
- data/lib/makefile_am.rb +1 -1
- data/lib/mkduino/version.rb +1 -1
- data/lib/mkduino.rb +1 -1
- metadata +1 -1
    
        checksums.yaml
    CHANGED
    
    | @@ -1,7 +1,7 @@ | |
| 1 1 | 
             
            ---
         | 
| 2 2 | 
             
            SHA1:
         | 
| 3 | 
            -
              metadata.gz:  | 
| 4 | 
            -
              data.tar.gz:  | 
| 3 | 
            +
              metadata.gz: 450bd77a2f53f8beb777a34c4b400ee78466e5fb
         | 
| 4 | 
            +
              data.tar.gz: 07e3fd7e0446c6f1541ede2504a99b4589519997
         | 
| 5 5 | 
             
            SHA512:
         | 
| 6 | 
            -
              metadata.gz:  | 
| 7 | 
            -
              data.tar.gz:  | 
| 6 | 
            +
              metadata.gz: f04a9b3ec09438be9d1716d1a39925872d6db17be521eebe51f7a2e036cab1bc9ff4792d1b2c779679838da3058b917aef07c26a7faf1f824cb71d1474b0ea54
         | 
| 7 | 
            +
              data.tar.gz: 8212d51b65489ff421795882e4f8fa6486c57a7bb84c57443efeadd02516ace9cf8cd637992752a62779a3ed5ec41b539303de413891c37c26ebec7e08b6dfb8
         | 
    
        data/README.md
    CHANGED
    
    | @@ -20,13 +20,40 @@ handy for someone that uses this regularly.   Again - add github issues or send | |
| 20 20 | 
             
            Go to the directory where your source code is(or should be):
         | 
| 21 21 |  | 
| 22 22 | 
             
            ```
         | 
| 23 | 
            -
            mkduino
         | 
| 23 | 
            +
            mkduino -p
         | 
| 24 24 | 
             
            ./autogen.sh
         | 
| 25 | 
            +
            mkdir build
         | 
| 26 | 
            +
            cd build
         | 
| 25 27 | 
             
            ./configure --host=avr
         | 
| 26 28 | 
             
            make
         | 
| 27 29 | 
             
            make upload
         | 
| 28 30 | 
             
            ```
         | 
| 31 | 
            +
            Or, use a shortcut
         | 
| 32 | 
            +
            ```
         | 
| 33 | 
            +
            mkduino -pa
         | 
| 34 | 
            +
            cd build
         | 
| 35 | 
            +
            make upload
         | 
| 36 | 
            +
            ```
         | 
| 29 37 |  | 
| 38 | 
            +
            ## Command line options
         | 
| 39 | 
            +
            =======================
         | 
| 40 | 
            +
            <pre>
         | 
| 41 | 
            +
            Usage: mkduino [options]
         | 
| 42 | 
            +
                -p, --[no-]probe                 Probe for stuff
         | 
| 43 | 
            +
                -v, --[no-]verbose               Run verbosely
         | 
| 44 | 
            +
                -a, --[no-]autoconfigure         automatically run autogen.sh and configure
         | 
| 45 | 
            +
                -b, --board BOARD                Arduino Board Type
         | 
| 46 | 
            +
                                                 mega,mega1280,uno,mini,mini3v
         | 
| 47 | 
            +
                    --programmer PROGRAMMER      AVRDUDE Programmer type
         | 
| 48 | 
            +
                                                 arduino, stk500
         | 
| 49 | 
            +
                -o, --[no-]overwrite             Overwrite current project files
         | 
| 50 | 
            +
                -c, --clock SPEED                Clock speed
         | 
| 51 | 
            +
                -t, --type TYPE                  Arduino library type (aka variant)
         | 
| 52 | 
            +
                -d, --device DEVICE              Arduino programming device.
         | 
| 53 | 
            +
                                                 Example: /dev/ttyUSB0.
         | 
| 54 | 
            +
                -h, --help                       Show this message
         | 
| 55 | 
            +
             | 
| 56 | 
            +
            </pre>
         | 
| 30 57 | 
             
            ## Files Generated
         | 
| 31 58 | 
             
            ==================
         | 
| 32 59 |  | 
    
        data/lib/makefile_am.rb
    CHANGED
    
    | @@ -275,7 +275,7 @@ ARDUINO_COMMON_INCLUDES=#{self.common_includes} | |
| 275 275 | 
             
            ARDUINO_INCLUDE_PATH=-I$(ARDUINO_VARIANTS) $(LIBRARY_INCLUDES)
         | 
| 276 276 | 
             
            nodist_#{self.project_name}_SOURCES=#{self.source_files.join(' ')}
         | 
| 277 277 |  | 
| 278 | 
            -
            #{self.project_name}_CFLAGS=-Wall $(#{self.project_name}_INCLUDES) $(ARDUINO_INCLUDE_PATH) -Wl,--gc-sections -ffunction-sections -fdata-sections -gstabs -mmcu=$(MCU) $(F_CPU) $(ARDUINO_VERSION) -D__AVR_LIBC_DEPRECATED_ENABLE__
         | 
| 278 | 
            +
            #{self.project_name}_CFLAGS=-Wall $(#{self.project_name}_INCLUDES) $(ARDUINO_INCLUDE_PATH) -Wl,--gc-sections -fno-caller-saves -ffunction-sections -fdata-sections -gstabs -mmcu=$(MCU) $(F_CPU) $(ARDUINO_VERSION) -D__AVR_LIBC_DEPRECATED_ENABLE__
         | 
| 279 279 | 
             
            #{self.project_name}_CXXFLAGS=-Wall $(#{self.project_name}_INCLUDES) $(ARDUINO_INCLUDE_PATH) -Wl,--gc-sections -ffunction-sections -fdata-sections -gstabs -mmcu=$(MCU) $(F_CPU) $(ARDUINO_VERSION) -D__AVR_LIBC_DEPRECATED_ENABLE__
         | 
| 280 280 | 
             
            #{self.project_name}_LDFLAGS=-L.
         | 
| 281 281 | 
             
            #{self.project_name}_LDADD=#{self.arduino_linker_entries.join(' ')} -lm
         | 
    
        data/lib/mkduino/version.rb
    CHANGED
    
    
    
        data/lib/mkduino.rb
    CHANGED
    
    | @@ -81,7 +81,7 @@ module Mkduino | |
| 81 81 |  | 
| 82 82 | 
             
                def makefile_am_output
         | 
| 83 83 | 
             
                  output = <<LIBRARY_OUTPUT
         | 
| 84 | 
            -
            lib#{self.name}_a_CFLAGS=-Wall -I$(ARDUINO_VARIANTS) $(ARDUINO_COMMON_INCLUDES) $(lib#{self.name}_a_INCLUDES) -Wl,--gc-sections -ffunction-sections -fdata-sections -mmcu=$(MCU) $(F_CPU) $(ARDUINO_VERSION) -D__AVR_LIBC_DEPRECATED_ENABLE__
         | 
| 84 | 
            +
            lib#{self.name}_a_CFLAGS=-Wall -I$(ARDUINO_VARIANTS) $(ARDUINO_COMMON_INCLUDES) $(lib#{self.name}_a_INCLUDES) -Wl,--gc-sections -fno-caller-saves -ffunction-sections -fdata-sections -mmcu=$(MCU) $(F_CPU) $(ARDUINO_VERSION) -D__AVR_LIBC_DEPRECATED_ENABLE__
         | 
| 85 85 | 
             
            lib#{self.name}_a_CXXFLAGS=-Wall -I$(ARDUINO_VARIANTS) $(ARDUINO_COMMON_INCLUDES) $(lib#{self.name}_a_INCLUDES) -Wl,--gc-sections -ffunction-sections -fdata-sections -mmcu=$(MCU) $(F_CPU) $(ARDUINO_VERSION) -D__AVR_LIBC_DEPRECATED_ENABLE__
         | 
| 86 86 | 
             
            lib#{self.name}_a_SOURCES = #{@library_sources.join("\\\n                    ")}
         | 
| 87 87 | 
             
            lib#{self.name}_a_INCLUDES = -I#{@library_includes.join("\\\n                    -I")}
         |