Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
csdr-mirror
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
ha7ilm
csdr-mirror
Commits
46468973
Commit
46468973
authored
10 years ago
by
ha7ilm
Browse files
Options
Downloads
Patches
Plain Diff
Raspberry Pi support (compiler flags figured out by jasiek, tnx!)
parent
9e5ce0cc
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Makefile
+4
-4
4 additions, 4 deletions
Makefile
with
4 additions
and
4 deletions
Makefile
+
4
−
4
View file @
46468973
...
@@ -33,7 +33,10 @@ LIBSOURCES = fft_fftw.c libcsdr_wrapper.c
...
@@ -33,7 +33,10 @@ LIBSOURCES = fft_fftw.c libcsdr_wrapper.c
cpufeature
=
$(
if
$(
findstring
$(
1
)
,
$(
shell
cat
/proc/cpuinfo
))
,
$(
2
))
cpufeature
=
$(
if
$(
findstring
$(
1
)
,
$(
shell
cat
/proc/cpuinfo
))
,
$(
2
))
PARAMS_SSE
=
$(
call cpufeature,sse,-msse
)
$(
call cpufeature,sse2,-msse2
)
$(
call cpufeature,sse3,-msse3
)
$(
call cpufeature,sse4,-msse4
)
$(
call cpufeature,sse4_1,-msse4.1
)
$(
call cpufeature,sse4_2,-msse4.2
)
-mfpmath
=
sse
PARAMS_SSE
=
$(
call cpufeature,sse,-msse
)
$(
call cpufeature,sse2,-msse2
)
$(
call cpufeature,sse3,-msse3
)
$(
call cpufeature,sse4,-msse4
)
$(
call cpufeature,sse4_1,-msse4.1
)
$(
call cpufeature,sse4_2,-msse4.2
)
-mfpmath
=
sse
PARAMS_NEON
=
-mfloat-abi
=
hard
-march
=
armv7-a
-mtune
=
cortex-a8
-mfpu
=
neon
-mvectorize-with-neon-quad
-funsafe-math-optimizations
-Wformat
=
0
PARAMS_NEON
=
-mfloat-abi
=
hard
-march
=
armv7-a
-mtune
=
cortex-a8
-mfpu
=
neon
-mvectorize-with-neon-quad
-funsafe-math-optimizations
-Wformat
=
0
PARAMS_SIMD
=
$(
if
$(
call cpufeature,sse,dummy-text
)
,
$(
PARAMS_SSE
)
,
$(
PARAMS_NEON
))
#tnx Jan Szumiec for the Raspberry Pi support
PARAMS_RASPI
=
-mfloat-abi
=
hard
-mcpu
=
arm1176jzf-s
-mfpu
=
vfp
-funsafe-math-optimizations
-Wformat
=
0
PARAMS_ARM
=
$(
if
$(
call cpufeature,BCM2708,dummy-text
)
,
$(
PARAMS_RASPI
)
,
$(
PARAMS_NEON
))
PARAMS_SIMD
=
$(
if
$(
call cpufeature,sse,dummy-text
)
,
$(
PARAMS_SSE
)
,
$(
PARAMS_ARM
))
PARAMS_LOOPVECT
=
-O3
-ffast-math
-fdump-tree-vect-details
-dumpbase
dumpvect
PARAMS_LOOPVECT
=
-O3
-ffast-math
-fdump-tree-vect-details
-dumpbase
dumpvect
PARAMS_LIBS
=
-g
-lm
-lrt
-lfftw3f
-DUSE_FFTW
-DLIBCSDR_GPL
PARAMS_LIBS
=
-g
-lm
-lrt
-lfftw3f
-DUSE_FFTW
-DLIBCSDR_GPL
PARAMS_SO
=
-fpic
PARAMS_SO
=
-fpic
...
@@ -61,6 +64,3 @@ install:
...
@@ -61,6 +64,3 @@ install:
uninstall
:
uninstall
:
rm
/usr/lib/libcsdr.so /usr/bin/csdr /usr/bin/csdr-fm
rm
/usr/lib/libcsdr.so /usr/bin/csdr /usr/bin/csdr-fm
ldconfig
ldconfig
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment