aboutsummaryrefslogtreecommitdiff
path: root/packaging/fedora/README.md
diff options
context:
space:
mode:
authorSimon John <git@the-jedi.co.uk>2014-02-04 17:41:51 +0000
committerSimon John <git@the-jedi.co.uk>2014-02-04 17:41:51 +0000
commit5a521361a03f5dac4577b71b0dd6382685aa5585 (patch)
tree02eefd1b1bda69b96b9f6adf45d34104a3c46f60 /packaging/fedora/README.md
parente48ae82fbdf32271229c3d0c0bfd6ae9ee70ea66 (diff)
Added the arduino-mk-vars.md file to the Fedora SPECfile.
Added some notes to the SPECfile regarding overriding the paths to the avr tools - most are in /usr/bin, but gcc/g++ are in an architecture-dependant ccache directory Upped version to 1.3.2 devel
Diffstat (limited to 'packaging/fedora/README.md')
-rw-r--r--packaging/fedora/README.md16
1 files changed, 14 insertions, 2 deletions
diff --git a/packaging/fedora/README.md b/packaging/fedora/README.md
index 989937a..18c5955 100644
--- a/packaging/fedora/README.md
+++ b/packaging/fedora/README.md
@@ -6,7 +6,7 @@ First install the dependencies as root:
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:
- git archive HEAD --prefix=arduino-mk-1.3.1/ -o ../arduino-mk-1.3.1.tar.gz
+ git archive HEAD --prefix=arduino-mk-1.3.2/ -o ../arduino-mk-1.3.2.tar.gz
If you don't already have a rpmbuild setup (e.g. you've not installed the SRPM) you will need to create the directories:
@@ -14,10 +14,22 @@ If you don't already have a rpmbuild setup (e.g. you've not installed the SRPM)
Then copy the tarball and specfile into those directories:
- cp ../arduino-mk-1.3.1.tar.gz ~/rpmbuild/SOURCES/
+ cp ../arduino-mk-1.3.2.tar.gz ~/rpmbuild/SOURCES/
cp packaging/fedora/arduino-mk.spec ~/rpmbuild/SPECS/
Then compile. This will create a binary and source RPM:
cd ~/rpmbuild/SPECS/
rpmbuild -ba arduino-mk.spec
+
+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:
+
+ OVERRIDE_EXECUTABLES = 1
+ CC = /usr/lib64/ccache/$(CC_NAME)
+ CXX = /usr/lib64/ccache/$(CXX_NAME)
+ AS = /usr/bin/$(AS_NAME)
+ OBJCOPY = /usr/bin/$(OBJCOPY_NAME)
+ OBJDUMP = /usr/bin/$(OBJDUMP_NAME)
+ AR = /usr/bin/$(AR_NAME)
+ SIZE = /usr/bin/$(SIZE_NAME)
+ NM = /usr/bin/$(NM_NAME)