Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
linux
Commits
66b03dbf
Commit
66b03dbf
authored
Mar 27, 2012
by
Richard Kuo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Hexagon: change arch version config to allow comparisons
Signed-off-by:
Richard Kuo
<
rkuo@codeaurora.org
>
parent
8f5a0b9d
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
31 deletions
+10
-31
arch/hexagon/Kconfig
arch/hexagon/Kconfig
+4
-14
arch/hexagon/Makefile
arch/hexagon/Makefile
+3
-14
arch/hexagon/include/asm/elf.h
arch/hexagon/include/asm/elf.h
+3
-3
No files found.
arch/hexagon/Kconfig
View file @
66b03dbf
...
...
@@ -33,19 +33,6 @@ config HEXAGON
Qualcomm Hexagon is a processor architecture designed for high
performance and low power across a wide variety of applications.
config HEXAGON_ARCH_V1
bool
config HEXAGON_ARCH_V2
bool
config HEXAGON_ARCH_V3
bool
config HEXAGON_ARCH_V4
bool
config HEXAGON_PHYS_OFFSET
def_bool y
---help---
...
...
@@ -109,12 +96,15 @@ choice
config HEXAGON_COMET
bool "Comet Board"
select HEXAGON_ARCH_V2
---help---
Support for the Comet platform.
endchoice
config HEXAGON_ARCH_VERSION
int "Architecture version"
default 2
config HEXAGON_VM
def_bool y
...
...
arch/hexagon/Makefile
View file @
66b03dbf
...
...
@@ -15,20 +15,9 @@ KBUILD_CFLAGS += -fno-short-enums
# LDFLAGS_MODULE += -shared
CFLAGS_MODULE
+=
-mlong-calls
cflags-$(CONFIG_HEXAGON_ARCH_V1)
+=
$(
call
cc-option,-mv1
)
cflags-$(CONFIG_HEXAGON_ARCH_V2)
+=
$(
call
cc-option,-mv2
)
cflags-$(CONFIG_HEXAGON_ARCH_V3)
+=
$(
call
cc-option,-mv3
)
cflags-$(CONFIG_HEXAGON_ARCH_V4)
+=
$(
call
cc-option,-mv4
)
aflags-$(CONFIG_HEXAGON_ARCH_V1)
+=
$(
call
cc-option,-mv1
)
aflags-$(CONFIG_HEXAGON_ARCH_V2)
+=
$(
call
cc-option,-mv2
)
aflags-$(CONFIG_HEXAGON_ARCH_V3)
+=
$(
call
cc-option,-mv3
)
aflags-$(CONFIG_HEXAGON_ARCH_V4)
+=
$(
call
cc-option,-mv4
)
ldflags-$(CONFIG_HEXAGON_ARCH_V1)
+=
$(
call
cc-option,-mv1
)
ldflags-$(CONFIG_HEXAGON_ARCH_V2)
+=
$(
call
cc-option,-mv2
)
ldflags-$(CONFIG_HEXAGON_ARCH_V3)
+=
$(
call
cc-option,-mv3
)
ldflags-$(CONFIG_HEXAGON_ARCH_V4)
+=
$(
call
cc-option,-mv4
)
cflags-y
+=
$(
call
cc-option,-mv
${CONFIG_HEXAGON_ARCH_VERSION}
)
aflags-y
+=
$(
call
cc-option,-mv
${CONFIG_HEXAGON_ARCH_VERSION}
)
ldflags-y
+=
$(
call
cc-option,-mv
${CONFIG_HEXAGON_ARCH_VERSION}
)
KBUILD_CFLAGS
+=
$
(
cflags-y
)
KBUILD_AFLAGS
+=
$
(
aflags-y
)
...
...
arch/hexagon/include/asm/elf.h
View file @
66b03dbf
...
...
@@ -168,15 +168,15 @@ do { \
#define ELF_DATA ELFDATA2LSB
#define ELF_ARCH EM_HEXAGON
#if
def CONFIG_HEXAGON_ARCH_V
2
#if
CONFIG_HEXAGON_ARCH_VERSION ==
2
#define ELF_CORE_EFLAGS 0x1
#endif
#if
def CONFIG_HEXAGON_ARCH_V
3
#if
CONFIG_HEXAGON_ARCH_VERSION ==
3
#define ELF_CORE_EFLAGS 0x2
#endif
#if
def CONFIG_HEXAGON_ARCH_V
4
#if
CONFIG_HEXAGON_ARCH_VERSION ==
4
#define ELF_CORE_EFLAGS 0x3
#endif
...
...
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