Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
R
RF24
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
xpstem
RF24
Commits
b417d58c
Commit
b417d58c
authored
Dec 23, 2015
by
Jevgeni Kiski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
RPI2 autodetection in examples
parent
d7cacdc2
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
2 deletions
+12
-2
examples_RPi/extra/Makefile
examples_RPi/extra/Makefile
+6
-1
examples_RPi/interrupts/Makefile
examples_RPi/interrupts/Makefile
+6
-1
No files found.
examples_RPi/extra/Makefile
View file @
b417d58c
...
...
@@ -13,8 +13,13 @@
#
prefix
:=
/usr/local
ARCH
=
armv6zk
ifeq
"$(shell uname -m)" "armv7l"
ARCH
=
armv7-a
endif
# The recommended compiler flags for the Raspberry Pi
CCFLAGS
=
-Ofast
-mfpu
=
vfp
-mfloat-abi
=
hard
-march
=
armv6zk
-mtune
=
arm1176jzf-s
CCFLAGS
=
-Ofast
-mfpu
=
vfp
-mfloat-abi
=
hard
-march
=
$(ARCH)
-mtune
=
arm1176jzf-s
#CCFLAGS=
# define all programs
...
...
examples_RPi/interrupts/Makefile
View file @
b417d58c
...
...
@@ -13,12 +13,17 @@
#
prefix
:=
/usr/local
ARCH
=
armv6zk
ifeq
"$(shell uname -m)" "armv7l"
ARCH
=
armv7-a
endif
# Detect the Raspberry Pi by the existence of the bcm_host.h file
BCMLOC
=
/opt/vc/include/bcm_host.h
ifneq
("$(wildcard $(BCMLOC))","")
# The recommended compiler flags for the Raspberry Pi
CCFLAGS
=
-Ofast
-mfpu
=
vfp
-mfloat-abi
=
hard
-march
=
armv6zk
-mtune
=
arm1176jzf-s
CCFLAGS
=
-Ofast
-mfpu
=
vfp
-mfloat-abi
=
hard
-march
=
$(ARCH)
-mtune
=
arm1176jzf-s
endif
# define all programs
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment