arduino-mk 1.0.1
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.
- data/README.md +60 -0
- data/lib/arduino-mk.rb +10 -0
- data/lib/arduino-mk/base.rb +61 -0
- data/lib/arduino-mk/error_improver.rb +42 -0
- data/lib/arduino-mk/makefile/runner.rb +23 -0
- data/lib/arduino-mk/makefile/template.rb +27 -0
- data/lib/arduino-mk/null_project.rb +5 -0
- data/lib/arduino-mk/null_project/null.c +1 -0
- data/lib/arduino-mk/option_parser.rb +35 -0
- data/lib/arduino-mk/project_copier.rb +9 -0
- data/vendor/Arduino-Makefile/Arduino.mk +1306 -0
- data/vendor/Arduino-Makefile/CONTRIBUTING.md +35 -0
- data/vendor/Arduino-Makefile/Common.mk +46 -0
- data/vendor/Arduino-Makefile/HISTORY.md +225 -0
- data/vendor/Arduino-Makefile/README.md +189 -0
- data/vendor/Arduino-Makefile/ard-reset-arduino.1 +48 -0
- data/vendor/Arduino-Makefile/arduino-mk-vars.md +1101 -0
- data/vendor/Arduino-Makefile/bin/ard-reset-arduino +38 -0
- data/vendor/Arduino-Makefile/chipKIT.mk +109 -0
- data/vendor/Arduino-Makefile/examples/ATtinyBlink/ATtinyBlink.ino +23 -0
- data/vendor/Arduino-Makefile/examples/ATtinyBlink/Makefile +13 -0
- data/vendor/Arduino-Makefile/examples/AnalogInOutSerial/AnalogInOutSerial.ino +53 -0
- data/vendor/Arduino-Makefile/examples/AnalogInOutSerial/Makefile +4 -0
- data/vendor/Arduino-Makefile/examples/Blink/Blink.ino +19 -0
- data/vendor/Arduino-Makefile/examples/Blink/Makefile +5 -0
- data/vendor/Arduino-Makefile/examples/BlinkChipKIT/BlinkChipKIT.pde +19 -0
- data/vendor/Arduino-Makefile/examples/BlinkChipKIT/Makefile +5 -0
- data/vendor/Arduino-Makefile/examples/BlinkInAVRC/Makefile +16 -0
- data/vendor/Arduino-Makefile/examples/BlinkInAVRC/blink.c +38 -0
- data/vendor/Arduino-Makefile/examples/BlinkWithoutDelay/BlinkWithoutDelay.ino +65 -0
- data/vendor/Arduino-Makefile/examples/BlinkWithoutDelay/Makefile +4 -0
- data/vendor/Arduino-Makefile/examples/Fade/Fade.ino +31 -0
- data/vendor/Arduino-Makefile/examples/Fade/Makefile +4 -0
- data/vendor/Arduino-Makefile/examples/HelloWorld/HelloWorld.ino +58 -0
- data/vendor/Arduino-Makefile/examples/HelloWorld/Makefile +4 -0
- data/vendor/Arduino-Makefile/examples/MakefileExample/Makefile-example.mk +55 -0
- data/vendor/Arduino-Makefile/examples/README.md +7 -0
- data/vendor/Arduino-Makefile/examples/TinySoftWareSerial/Makefile +14 -0
- data/vendor/Arduino-Makefile/examples/TinySoftWareSerial/TinySoftwareSerial.ino +12 -0
- data/vendor/Arduino-Makefile/examples/WebServer/Makefile +6 -0
- data/vendor/Arduino-Makefile/examples/WebServer/WebServer.ino +82 -0
- data/vendor/Arduino-Makefile/examples/master_reader/Makefile +6 -0
- data/vendor/Arduino-Makefile/examples/master_reader/master_reader.ino +32 -0
- data/vendor/Arduino-Makefile/examples/toneMelody/Makefile +4 -0
- data/vendor/Arduino-Makefile/examples/toneMelody/pitches.h +95 -0
- data/vendor/Arduino-Makefile/examples/toneMelody/toneMelody.ino +49 -0
- data/vendor/Arduino-Makefile/licence.txt +502 -0
- data/vendor/Arduino-Makefile/packaging/debian/README.md +23 -0
- data/vendor/Arduino-Makefile/packaging/fedora/README.md +39 -0
- data/vendor/Arduino-Makefile/packaging/fedora/arduino-mk.spec +70 -0
- metadata +110 -0
@@ -0,0 +1,23 @@
|
|
1
|
+
# How to compile a Deb package
|
2
|
+
|
3
|
+
Use these instructions to build your own Deb package from your local sources.
|
4
|
+
For the latest official packages go to [Debian](http://packages.debian.org/arduino-mk)
|
5
|
+
or [Ubuntu](https://launchpad.net/ubuntu/+source/arduino-mk) or use apt.
|
6
|
+
|
7
|
+
First install the dependencies as root:
|
8
|
+
|
9
|
+
apt-get build-dep arduino-mk
|
10
|
+
apt-get install arduino-core build-essential dpkg-dev fakeroot devscripts
|
11
|
+
|
12
|
+
Fetch the Debian source:
|
13
|
+
|
14
|
+
apt-get source arduino-mk
|
15
|
+
|
16
|
+
Make any local changes to want within the arduino-mk-* directory and update the package version:
|
17
|
+
|
18
|
+
cd arduino-mk-*
|
19
|
+
dch -i
|
20
|
+
|
21
|
+
Then compile. This will create a binary Deb:
|
22
|
+
|
23
|
+
dpkg-buildpackage -b
|
@@ -0,0 +1,39 @@
|
|
1
|
+
# How to compile an RPM
|
2
|
+
|
3
|
+
First install the dependencies as root:
|
4
|
+
|
5
|
+
yum install arduino-core rpm-build
|
6
|
+
|
7
|
+
From the top-level Arduino-Makefile directory you've checked out of github, run the following (as unprivileged user) to create a compressed tarball using the naming conventions required by rpmbuild:
|
8
|
+
|
9
|
+
git archive HEAD --prefix=arduino-mk-1.3.3/ -o ../arduino-mk-1.3.3.tar.gz
|
10
|
+
|
11
|
+
If you don't already have a rpmbuild setup (e.g. you've not installed the SRPM) you will need to create the directories:
|
12
|
+
|
13
|
+
mkdir -p ~/rpmbuild/{SOURCES,SPECS}
|
14
|
+
|
15
|
+
Then copy the tarball and specfile into those directories:
|
16
|
+
|
17
|
+
cp ../arduino-mk-1.3.3.tar.gz ~/rpmbuild/SOURCES/
|
18
|
+
cp packaging/fedora/arduino-mk.spec ~/rpmbuild/SPECS/
|
19
|
+
|
20
|
+
Then compile. This will create a binary and source RPM:
|
21
|
+
|
22
|
+
cd ~/rpmbuild/SPECS/
|
23
|
+
rpmbuild -ba arduino-mk.spec
|
24
|
+
|
25
|
+
Fedora's AVR compilers use ccache, so you may have to override some of the paths to the AVR tools in your sketch's Makefile, for example:
|
26
|
+
|
27
|
+
```Makefile
|
28
|
+
OVERRIDE_EXECUTABLES = 1
|
29
|
+
CC = /usr/lib64/ccache/$(CC_NAME)
|
30
|
+
CXX = /usr/lib64/ccache/$(CXX_NAME)
|
31
|
+
AS = /usr/bin/$(AS_NAME)
|
32
|
+
OBJCOPY = /usr/bin/$(OBJCOPY_NAME)
|
33
|
+
OBJDUMP = /usr/bin/$(OBJDUMP_NAME)
|
34
|
+
AR = /usr/bin/$(AR_NAME)
|
35
|
+
SIZE = /usr/bin/$(SIZE_NAME)
|
36
|
+
NM = /usr/bin/$(NM_NAME)
|
37
|
+
```
|
38
|
+
|
39
|
+
Or if you don't want to use ccache, then just set ```AVR_TOOLS_PATH=/usr``` and none of the above will be necessary.
|
@@ -0,0 +1,70 @@
|
|
1
|
+
Name: arduino-mk
|
2
|
+
Version: 1.3.3
|
3
|
+
Release: 1%{dist}
|
4
|
+
Summary: Program your Arduino from the command line
|
5
|
+
Packager: Simon John <git@the-jedi.co.uk>
|
6
|
+
URL: https://github.com/sudar/Arduino-Makefile
|
7
|
+
Source: %{name}-%{version}.tar.gz
|
8
|
+
Group: Development/Tools
|
9
|
+
License: LGPLv2+
|
10
|
+
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
11
|
+
BuildArch: noarch
|
12
|
+
Requires: arduino-core pyserial
|
13
|
+
BuildRequires: arduino-core
|
14
|
+
|
15
|
+
%description
|
16
|
+
Arduino is an open-source electronics prototyping platform based on
|
17
|
+
flexible, easy-to-use hardware and software. It's intended for artists,
|
18
|
+
designers, hobbyists, and anyone interested in creating interactive
|
19
|
+
objects or environments.
|
20
|
+
|
21
|
+
This package will install a Makefile to allow for CLI programming of the
|
22
|
+
Arduino platform.
|
23
|
+
|
24
|
+
%prep
|
25
|
+
%setup -q
|
26
|
+
|
27
|
+
%install
|
28
|
+
mkdir -p %{buildroot}/%{_datadir}/arduino
|
29
|
+
mkdir -p %{buildroot}/%{_bindir}
|
30
|
+
mkdir -p %{buildroot}/%{_mandir}/man1
|
31
|
+
mkdir -p %{buildroot}/%{_docdir}/%{name}/examples
|
32
|
+
install -m 755 -d %{buildroot}/%{_docdir}/%{name}
|
33
|
+
install -m 755 -d %{buildroot}/%{_docdir}/%{name}/examples
|
34
|
+
for dir in `find examples -type d` ; do install -m 755 -d %{buildroot}/%{_docdir}/%{name}/$dir ; done
|
35
|
+
for file in `find examples -type f ! -name .gitignore` ; do install -m 644 $file %{buildroot}/%{_docdir}/%{name}/$file ; done
|
36
|
+
install -m 644 *.mk arduino-mk-vars.md %{buildroot}/%{_datadir}/arduino
|
37
|
+
install -m 644 licence.txt %{buildroot}/%{_docdir}/%{name}
|
38
|
+
install -m 755 bin/ard-reset-arduino %{buildroot}/%{_bindir}/ard-reset-arduino
|
39
|
+
install -m 644 ard-reset-arduino.1 %{buildroot}/%{_mandir}/man1
|
40
|
+
|
41
|
+
%clean
|
42
|
+
rm -rf %{buildroot}
|
43
|
+
|
44
|
+
%files
|
45
|
+
%defattr(-,root,root,-)
|
46
|
+
%{_bindir}/ard-reset-arduino
|
47
|
+
%{_mandir}/man1/ard-reset-arduino.1*
|
48
|
+
%{_datadir}/arduino/*.mk
|
49
|
+
%{_datadir}/arduino/arduino-mk-vars.md
|
50
|
+
%doc %{_docdir}/%{name}/licence.txt
|
51
|
+
%docdir %{_docdir}/%{name}/examples
|
52
|
+
%{_docdir}/%{name}/examples
|
53
|
+
|
54
|
+
%changelog
|
55
|
+
* Sat Apr 12 2014 Simon John <git@the-jedi.co.uk>
|
56
|
+
- Put manpage back.
|
57
|
+
* Fri Apr 04 2014 Simon John <git@the-jedi.co.uk>
|
58
|
+
- Removed BuildRequires of python3/pyserial.
|
59
|
+
* Wed Apr 02 2014 Simon John <git@the-jedi.co.uk>
|
60
|
+
- Added BuildRequires of python3-pyserial. Need to look into Requires.
|
61
|
+
* Mon Mar 24 2014 Simon John <git@the-jedi.co.uk>
|
62
|
+
- Replaced perl/help2man with pyserial for reset script.
|
63
|
+
* Tue Feb 04 2014 Simon John <git@the-jedi.co.uk>
|
64
|
+
- Added arduino-mk-vars.md to the files to be installed/packaged.
|
65
|
+
* Sat Feb 01 2014 Simon John <git@the-jedi.co.uk>
|
66
|
+
- Updated version.
|
67
|
+
* Mon Jan 13 2014 Simon John <git@the-jedi.co.uk>
|
68
|
+
- Removed arduino-mk subdirectory
|
69
|
+
* Mon Dec 30 2013 Simon John <git@the-jedi.co.uk>
|
70
|
+
- Initial release.
|
metadata
ADDED
@@ -0,0 +1,110 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: arduino-mk
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 1.0.1
|
5
|
+
prerelease:
|
6
|
+
platform: ruby
|
7
|
+
authors:
|
8
|
+
- Chris Patuzzo
|
9
|
+
autorequire:
|
10
|
+
bindir: bin
|
11
|
+
cert_chain: []
|
12
|
+
date: 2014-05-03 00:00:00.000000000 Z
|
13
|
+
dependencies:
|
14
|
+
- !ruby/object:Gem::Dependency
|
15
|
+
name: rspec
|
16
|
+
requirement: !ruby/object:Gem::Requirement
|
17
|
+
none: false
|
18
|
+
requirements:
|
19
|
+
- - ! '>='
|
20
|
+
- !ruby/object:Gem::Version
|
21
|
+
version: '0'
|
22
|
+
type: :development
|
23
|
+
prerelease: false
|
24
|
+
version_requirements: !ruby/object:Gem::Requirement
|
25
|
+
none: false
|
26
|
+
requirements:
|
27
|
+
- - ! '>='
|
28
|
+
- !ruby/object:Gem::Version
|
29
|
+
version: '0'
|
30
|
+
description: Compile and upload Arduino sketches with Ruby.
|
31
|
+
email: chris@patuzzo.co.uk
|
32
|
+
executables: []
|
33
|
+
extensions: []
|
34
|
+
extra_rdoc_files: []
|
35
|
+
files:
|
36
|
+
- README.md
|
37
|
+
- lib/arduino-mk.rb
|
38
|
+
- lib/arduino-mk/null_project.rb
|
39
|
+
- lib/arduino-mk/base.rb
|
40
|
+
- lib/arduino-mk/option_parser.rb
|
41
|
+
- lib/arduino-mk/error_improver.rb
|
42
|
+
- lib/arduino-mk/project_copier.rb
|
43
|
+
- lib/arduino-mk/makefile/runner.rb
|
44
|
+
- lib/arduino-mk/makefile/template.rb
|
45
|
+
- lib/arduino-mk/null_project/null.c
|
46
|
+
- vendor/Arduino-Makefile/examples/Blink/Makefile
|
47
|
+
- vendor/Arduino-Makefile/examples/Blink/Blink.ino
|
48
|
+
- vendor/Arduino-Makefile/examples/BlinkInAVRC/Makefile
|
49
|
+
- vendor/Arduino-Makefile/examples/BlinkInAVRC/blink.c
|
50
|
+
- vendor/Arduino-Makefile/examples/README.md
|
51
|
+
- vendor/Arduino-Makefile/examples/BlinkWithoutDelay/Makefile
|
52
|
+
- vendor/Arduino-Makefile/examples/BlinkWithoutDelay/BlinkWithoutDelay.ino
|
53
|
+
- vendor/Arduino-Makefile/examples/master_reader/master_reader.ino
|
54
|
+
- vendor/Arduino-Makefile/examples/master_reader/Makefile
|
55
|
+
- vendor/Arduino-Makefile/examples/BlinkChipKIT/Makefile
|
56
|
+
- vendor/Arduino-Makefile/examples/BlinkChipKIT/BlinkChipKIT.pde
|
57
|
+
- vendor/Arduino-Makefile/examples/TinySoftWareSerial/Makefile
|
58
|
+
- vendor/Arduino-Makefile/examples/TinySoftWareSerial/TinySoftwareSerial.ino
|
59
|
+
- vendor/Arduino-Makefile/examples/AnalogInOutSerial/Makefile
|
60
|
+
- vendor/Arduino-Makefile/examples/AnalogInOutSerial/AnalogInOutSerial.ino
|
61
|
+
- vendor/Arduino-Makefile/examples/toneMelody/toneMelody.ino
|
62
|
+
- vendor/Arduino-Makefile/examples/toneMelody/Makefile
|
63
|
+
- vendor/Arduino-Makefile/examples/toneMelody/pitches.h
|
64
|
+
- vendor/Arduino-Makefile/examples/ATtinyBlink/Makefile
|
65
|
+
- vendor/Arduino-Makefile/examples/ATtinyBlink/ATtinyBlink.ino
|
66
|
+
- vendor/Arduino-Makefile/examples/MakefileExample/Makefile-example.mk
|
67
|
+
- vendor/Arduino-Makefile/examples/WebServer/Makefile
|
68
|
+
- vendor/Arduino-Makefile/examples/WebServer/WebServer.ino
|
69
|
+
- vendor/Arduino-Makefile/examples/HelloWorld/Makefile
|
70
|
+
- vendor/Arduino-Makefile/examples/HelloWorld/HelloWorld.ino
|
71
|
+
- vendor/Arduino-Makefile/examples/Fade/Fade.ino
|
72
|
+
- vendor/Arduino-Makefile/examples/Fade/Makefile
|
73
|
+
- vendor/Arduino-Makefile/chipKIT.mk
|
74
|
+
- vendor/Arduino-Makefile/Arduino.mk
|
75
|
+
- vendor/Arduino-Makefile/bin/ard-reset-arduino
|
76
|
+
- vendor/Arduino-Makefile/HISTORY.md
|
77
|
+
- vendor/Arduino-Makefile/README.md
|
78
|
+
- vendor/Arduino-Makefile/licence.txt
|
79
|
+
- vendor/Arduino-Makefile/Common.mk
|
80
|
+
- vendor/Arduino-Makefile/arduino-mk-vars.md
|
81
|
+
- vendor/Arduino-Makefile/packaging/fedora/README.md
|
82
|
+
- vendor/Arduino-Makefile/packaging/fedora/arduino-mk.spec
|
83
|
+
- vendor/Arduino-Makefile/packaging/debian/README.md
|
84
|
+
- vendor/Arduino-Makefile/CONTRIBUTING.md
|
85
|
+
- vendor/Arduino-Makefile/ard-reset-arduino.1
|
86
|
+
homepage: https://github.com/tuzz/arduino-mk
|
87
|
+
licenses: []
|
88
|
+
post_install_message:
|
89
|
+
rdoc_options: []
|
90
|
+
require_paths:
|
91
|
+
- lib
|
92
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
93
|
+
none: false
|
94
|
+
requirements:
|
95
|
+
- - ! '>='
|
96
|
+
- !ruby/object:Gem::Version
|
97
|
+
version: '0'
|
98
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
99
|
+
none: false
|
100
|
+
requirements:
|
101
|
+
- - ! '>='
|
102
|
+
- !ruby/object:Gem::Version
|
103
|
+
version: '0'
|
104
|
+
requirements: []
|
105
|
+
rubyforge_project:
|
106
|
+
rubygems_version: 1.8.23
|
107
|
+
signing_key:
|
108
|
+
specification_version: 3
|
109
|
+
summary: arduino-mk
|
110
|
+
test_files: []
|