Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
NanoSoC Tech
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Jira
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor 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
SoCLabs
NanoSoC Tech
Commits
91bcc715
Commit
91bcc715
authored
2 years ago
by
dam1n19
Browse files
Options
Downloads
Patches
Plain Diff
SOC1-167
: Update Arm CC Target
parent
8ed7c527
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
system/testcodes/bootloader/makefile
+24
-4
24 additions, 4 deletions
system/testcodes/bootloader/makefile
with
24 additions
and
4 deletions
system/testcodes/bootloader/makefile
+
24
−
4
View file @
91bcc715
...
...
@@ -42,6 +42,7 @@
# - CORTEX_M0PLUS
CPU_PRODUCT
=
CORTEX_M0
TARGET
=
arm-none-eabi
# Shared software directory
SOFTWARE_DIR
=
$(
NANOSOC_TECH_DIR
)
/software
CMSIS_DIR
=
$(
SOFTWARE_DIR
)
/cmsis
...
...
@@ -79,6 +80,14 @@ ifeq ($(TOOL_CHAIN),ds5)
endif
endif
ifeq
($(TOOL_CHAIN),ds6)
ifeq
($(CPU_PRODUCT),CORTEX_M0PLUS)
CPU_TYPE
=
-mcpu
=
Cortex-M0plus
else
CPU_TYPE
=
-mcpu
=
Cortex-M0
endif
endif
ifeq
($(TOOL_CHAIN),gcc)
ifeq
($(CPU_PRODUCT),CORTEX_M0PLUS)
CPU_TYPE
=
-mcpu
=
cortex-m0plus
...
...
@@ -93,6 +102,10 @@ ifeq ($(TOOL_CHAIN),ds5)
STARTUP_DIR
=
$(
DEVICE_DIR
)
/Source/ARM
endif
ifeq
($(TOOL_CHAIN),ds6)
STARTUP_DIR
=
$(
DEVICE_DIR
)
/Source/ARM
endif
# Startup code directory for gcc
ifeq
($(TOOL_CHAIN),gcc)
STARTUP_DIR
=
$(
DEVICE_DIR
)
/Source/GCC
...
...
@@ -115,7 +128,14 @@ COMPILE_MICROLIB = 0
# Small Multiply (Cortex-M0/M0+ has small multiplier option)
COMPILE_SMALLMUL
=
0
ARM_CC_OPTIONS
=
-c
-O3
-g
-Otime
-I
$(
DEVICE_DIR
)
/Include
-I
$(
CORE_DIR
)
$(
USER_DEFINE
)
ifeq
($(TOOL_CHAIN),ds6)
ARM_CC_TARGET
=
--target
=
arm-
$(
TARGET
)
else
ARM_CC_TARGET
=
-Otime
endif
ARM_CC_OPTIONS
=
$(
ARM_CC_TARGET
)
-c
-O3
-g
-I
$(
DEVICE_DIR
)
/Include
-I
$(
CORE_DIR
)
$(
USER_DEFINE
)
ARM_ASM_OPTIONS
=
-g
ARM_LINK_OPTIONS
=
"--keep=
$(
STARTUP_FILE
)
.o(RESET)"
"--first=
$(
STARTUP_FILE
)
.o(RESET)"
\
--rw_base
0x30000000
--ro_base
0x10000000
--map
...
...
@@ -142,9 +162,9 @@ endif
# ---------------------------------------------------------------------------------------
# gcc options
GNG_CC
=
arm-none-eabi
-gcc
GNU_OBJDUMP
=
arm-none-eabi
-objdump
GNU_OBJCOPY
=
arm-none-eabi
-objcopy
GNG_CC
=
$(
TARGET
)
-gcc
GNU_OBJDUMP
=
$(
TARGET
)
-objdump
GNU_OBJCOPY
=
$(
TARGET
)
-objcopy
LINKER_SCRIPT_PATH
=
$(
SOFTWARE_DIR
)
/common/scripts
LINKER_SCRIPT
=
$(
LINKER_SCRIPT_PATH
)
/cmsdk_bootloader.ld
...
...
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