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
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
SoCLabs
NanoSoC Tech
Commits
91bcc715
Commit
91bcc715
authored
May 2, 2023
by
dam1n19
Browse files
Options
Downloads
Patches
Plain Diff
SOC1-167
: Update Arm CC Target
parent
8ed7c527
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Show 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 @@
...
@@ -42,6 +42,7 @@
# - CORTEX_M0PLUS
# - CORTEX_M0PLUS
CPU_PRODUCT
=
CORTEX_M0
CPU_PRODUCT
=
CORTEX_M0
TARGET
=
arm-none-eabi
# Shared software directory
# Shared software directory
SOFTWARE_DIR
=
$(
NANOSOC_TECH_DIR
)
/software
SOFTWARE_DIR
=
$(
NANOSOC_TECH_DIR
)
/software
CMSIS_DIR
=
$(
SOFTWARE_DIR
)
/cmsis
CMSIS_DIR
=
$(
SOFTWARE_DIR
)
/cmsis
...
@@ -79,6 +80,14 @@ ifeq ($(TOOL_CHAIN),ds5)
...
@@ -79,6 +80,14 @@ ifeq ($(TOOL_CHAIN),ds5)
endif
endif
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
($(TOOL_CHAIN),gcc)
ifeq
($(CPU_PRODUCT),CORTEX_M0PLUS)
ifeq
($(CPU_PRODUCT),CORTEX_M0PLUS)
CPU_TYPE
=
-mcpu
=
cortex-m0plus
CPU_TYPE
=
-mcpu
=
cortex-m0plus
...
@@ -93,6 +102,10 @@ ifeq ($(TOOL_CHAIN),ds5)
...
@@ -93,6 +102,10 @@ ifeq ($(TOOL_CHAIN),ds5)
STARTUP_DIR
=
$(
DEVICE_DIR
)
/Source/ARM
STARTUP_DIR
=
$(
DEVICE_DIR
)
/Source/ARM
endif
endif
ifeq
($(TOOL_CHAIN),ds6)
STARTUP_DIR
=
$(
DEVICE_DIR
)
/Source/ARM
endif
# Startup code directory for gcc
# Startup code directory for gcc
ifeq
($(TOOL_CHAIN),gcc)
ifeq
($(TOOL_CHAIN),gcc)
STARTUP_DIR
=
$(
DEVICE_DIR
)
/Source/GCC
STARTUP_DIR
=
$(
DEVICE_DIR
)
/Source/GCC
...
@@ -115,7 +128,14 @@ COMPILE_MICROLIB = 0
...
@@ -115,7 +128,14 @@ COMPILE_MICROLIB = 0
# Small Multiply (Cortex-M0/M0+ has small multiplier option)
# Small Multiply (Cortex-M0/M0+ has small multiplier option)
COMPILE_SMALLMUL
=
0
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_ASM_OPTIONS
=
-g
ARM_LINK_OPTIONS
=
"--keep=
$(
STARTUP_FILE
)
.o(RESET)"
"--first=
$(
STARTUP_FILE
)
.o(RESET)"
\
ARM_LINK_OPTIONS
=
"--keep=
$(
STARTUP_FILE
)
.o(RESET)"
"--first=
$(
STARTUP_FILE
)
.o(RESET)"
\
--rw_base
0x30000000
--ro_base
0x10000000
--map
--rw_base
0x30000000
--ro_base
0x10000000
--map
...
@@ -142,9 +162,9 @@ endif
...
@@ -142,9 +162,9 @@ endif
# ---------------------------------------------------------------------------------------
# ---------------------------------------------------------------------------------------
# gcc options
# gcc options
GNG_CC
=
arm-none-eabi
-gcc
GNG_CC
=
$(
TARGET
)
-gcc
GNU_OBJDUMP
=
arm-none-eabi
-objdump
GNU_OBJDUMP
=
$(
TARGET
)
-objdump
GNU_OBJCOPY
=
arm-none-eabi
-objcopy
GNU_OBJCOPY
=
$(
TARGET
)
-objcopy
LINKER_SCRIPT_PATH
=
$(
SOFTWARE_DIR
)
/common/scripts
LINKER_SCRIPT_PATH
=
$(
SOFTWARE_DIR
)
/common/scripts
LINKER_SCRIPT
=
$(
LINKER_SCRIPT_PATH
)
/cmsdk_bootloader.ld
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