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
1c78dd00
Commit
1c78dd00
authored
Dec 23, 2015
by
TMRh20
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #179 from yozik04/master
RPI2 autodetection
parents
bf06db96
b417d58c
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
24 additions
and
4 deletions
+24
-4
Makefile
Makefile
+6
-1
examples_RPi/Makefile
examples_RPi/Makefile
+6
-1
examples_RPi/extra/Makefile
examples_RPi/extra/Makefile
+6
-1
examples_RPi/interrupts/Makefile
examples_RPi/interrupts/Makefile
+6
-1
No files found.
Makefile
View file @
1c78dd00
...
...
@@ -27,6 +27,11 @@ HEADER_DIR=${PREFIX}/include/RF24
# The base location of support files for different devices
ARCH_DIR
=
utility
ARCH
=
armv6zk
ifeq
"$(shell uname -m)" "armv7l"
ARCH
=
armv7-a
endif
# The default objects to compile
OBJECTS
=
RF24.o spi.o
...
...
@@ -57,7 +62,7 @@ OBJECTS+=bcm2835.o
OBJECTS
+=
interrupt.o
SHARED_LINKER_FLAGS
+=
-pthread
# 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
else
DRIVER_DIR
=
$(ARCH_DIR)
/BBB
...
...
examples_RPi/Makefile
View file @
1c78dd00
...
...
@@ -16,9 +16,14 @@ prefix := /usr/local
# Detect the Raspberry Pi by the existence of the bcm_host.h file
BCMLOC
=
/opt/vc/include/bcm_host.h
ARCH
=
armv6zk
ifeq
"$(shell uname -m)" "armv7l"
ARCH
=
armv7-a
endif
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
...
...
examples_RPi/extra/Makefile
View file @
1c78dd00
...
...
@@ -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 @
1c78dd00
...
...
@@ -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