Skip to content

Commit

Permalink
kbuild: add scorpion build flags
Browse files Browse the repository at this point in the history
let the compiler know the arch, -ffast-math seems needed for full
benefit of -mfpu=neon
  • Loading branch information
drewis committed Jun 30, 2012
1 parent 4eb1a6c commit 0a76aa4
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions Makefile
Expand Up @@ -341,11 +341,12 @@ CHECK = sparse

CHECKFLAGS := -D__linux__ -Dlinux -D__STDC__ -Dunix -D__unix__ \
-Wbitwise -Wno-return-void $(CF)
CFLAGS_MODULE =
AFLAGS_MODULE =
LDFLAGS_MODULE =
CFLAGS_KERNEL =
AFLAGS_KERNEL =
SCORPION_FLAGS = -march=armv7-a -mfpu=neon -ffast-math
CFLAGS_MODULE = -DMODULE $(SCORPION_FLAGS)
AFLAGS_MODULE = -DMODULE $(SCORPION_FLAGS)
LDFLAGS_MODULE = -T $(srctree)/scripts/module-common.lds
CFLAGS_KERNEL = $(SCORPION_FLAGS)
AFLAGS_KERNEL = $(SCORPION_FLAGS)
CFLAGS_GCOV = -fprofile-arcs -ftest-coverage


Expand Down

0 comments on commit 0a76aa4

Please sign in to comment.