Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
multipass
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
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
derf
multipass
Commits
9b61414e
Commit
9b61414e
authored
4 years ago
by
Daniel Friesel
Browse files
Options
Downloads
Patches
Plain Diff
use the same gcc version for msp430fr5969 an msp430fr5994
parent
ddbd0937
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
.gitlab-ci.yml
+2
-5
2 additions, 5 deletions
.gitlab-ci.yml
src/arch/msp430fr5969lp/Makefile.inc
+11
-10
11 additions, 10 deletions
src/arch/msp430fr5969lp/Makefile.inc
with
13 additions
and
15 deletions
.gitlab-ci.yml
+
2
−
5
View file @
9b61414e
...
...
@@ -15,12 +15,9 @@ build_posix:
build_msp430fr5969lp
:
stage
:
build
before_script
:
-
export PATH="/opt/msp430/ti/
gcc
/bin:$PATH"
-
export PATH="/opt/msp430/ti/
msp430-gcc-full-linux-5.1.2.0
/bin:$PATH"
script
:
-
dpkg --add-architecture i386
-
apt-get update -qy
-
apt-get install -y --no-install-recommends libc6:i386 libgcc1:i386 libstdc++6:i386 zlib1g:i386
-
curl -s https://ess.cs.uos.de/static/.gitlab-ci/msp430-gcc-full-linux-4.9.1.tar.xz | tar -C /opt -xJf -
-
curl -s https://ess.cs.uos.de/static/.gitlab-ci/msp430-gcc-full-linux-5.1.2.0.tar.xz | tar -C /opt -xJf -
-
mkdir -p build
-
make -B arch=msp430fr5969lp app=donothing
-
make -B arch=msp430fr5969lp app=ledblink loop=1 timer_s=1
...
...
This diff is collapsed.
Click to expand it.
src/arch/msp430fr5969lp/Makefile.inc
+
11
−
10
View file @
9b61414e
...
...
@@ -8,26 +8,26 @@ SERIAL_PORT ?= ttyACM1
cpu_freq
?=
8000000
MSP430_FLASHER_DIR
?=
/
home/derf/var/projects
/msp430/MSP430Flasher_1.3.
7
MSP430_FLASHER_DIR
?=
/
opt
/msp430/MSP430Flasher_1.3.
15
INCLUDES
+=
-I
/opt/msp430/ti/
gcc
/include
INCLUDES
+=
-I
/opt/msp430/ti/
msp430-gcc-full-linux-5.1.2.0
/include
COMMON_FLAGS
+=
-mcpu
=
${
CPU
}
-mmcu
=
${
MCU
}
-DMULTIPASS_ARCH_msp430fr5969lp
COMMON_FLAGS
+=
-DMULTIPASS_ARCH_HAS_I2C
# LTO seems to be broken.
CC
=
/opt/msp430/ti/
gcc
/bin/msp430-elf-gcc
CXX
=
/opt/msp430/ti/
gcc
/bin/msp430-elf-g++
OBJCOPY
=
/opt/msp430/ti/
gcc
/bin/msp430-elf-objcopy
OBJDUMP
=
/opt/msp430/ti/
gcc
/bin/msp430-elf-objdump
SIZE
=
/opt/msp430/ti/
gcc
/bin/msp430-elf-size
CC
=
/opt/msp430/ti/
msp430-gcc-full-linux-5.1.2.0
/bin/msp430-elf-gcc
CXX
=
/opt/msp430/ti/
msp430-gcc-full-linux-5.1.2.0
/bin/msp430-elf-g++
OBJCOPY
=
/opt/msp430/ti/
msp430-gcc-full-linux-5.1.2.0
/bin/msp430-elf-objcopy
OBJDUMP
=
/opt/msp430/ti/
msp430-gcc-full-linux-5.1.2.0
/bin/msp430-elf-objdump
SIZE
=
/opt/msp430/ti/
msp430-gcc-full-linux-5.1.2.0
/bin/msp430-elf-size
ARCH_SHORTNAME
=
msp430
CXX_TARGETS
+=
src/arch/msp430fr5969lp/arch.cc
ifeq
(${aspectc}, 1)
CXX
=
ag++
-r
build/repo.acp
-v
0
--c_compiler
/opt/msp430/ti/
gcc
/bin/msp430-elf-g++
-p
.
--Xcompiler
CXX
=
ag++
-r
build/repo.acp
-v
0
--c_compiler
/opt/msp430/ti/
msp430-gcc-full-linux-5.1.2.0
/bin/msp430-elf-g++
-p
.
--Xcompiler
endif
ifneq
($(findstring adc,${arch_drivers}), )
...
...
@@ -85,7 +85,7 @@ OBJECTS = ${CXX_TARGETS:.cc=.o} ${C_TARGETS:.c=.o} ${ASM_TARGETS:.S=.o}
build/system.elf
:
${OBJECTS}
${
QUIET
}
mkdir
-p
build
${
QUIET
}${
CXX
}
${
INCLUDES
}
${
COMMON_FLAGS
}
${
CXXFLAGS
}
\
-Wl
,--library-path
=
/opt/msp430/ti/
gcc
/include/
\
-Wl
,--library-path
=
/opt/msp430/ti/
msp430-gcc-full-linux-5.1.2.0
/include/
\
-Wl
,--gc-sections
\
-o
$@
${
OBJECTS
}
${
QUIET
}${
SIZE
}
build/system.elf |
tail
-n1
|
awk
'{ print " ROM: " int(($$1+$$2)*100/49152) "% RAM: " int(($$2+$$3)*100/2048) "%" }'
...
...
@@ -96,7 +96,7 @@ build/system.hex: build/system.elf
program
:
build/system.hex
${
QUIET
}
LD_LIBRARY_PATH
=
${
MSP430_FLASHER_DIR
}
\
${
MSP430_FLASHER_DIR
}
/MSP430Flasher
\
-i
/dev/
${
DEBUG_PORT
}
\
-i
${
DEBUG_PORT
}
\
-w
build/system.hex
-v
-g
-z
'[VCC]'
arch_clean
:
...
...
@@ -120,6 +120,7 @@ arch_info:
@
echo
"Timer Freq:
${
timer_freq
}
Hz ->
$(
shell src/arch/msp430fr5969lp/model.py f_timer "
${
cpu_freq
}
" "
${
timer_freq
}
"
)
"
@
echo
"I2C Freq:
${
i2c_freq
}
Hz"
@
echo
"Counter Overflow: 65536/255"
@
echo
"sleep_ms Overflow: 250 500"
@
echo
"Monitor: /dev/
${
SERIAL_PORT
}
115200"
.PHONY
:
arch_clean arch_help arch_info monitor program
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