Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
R
RIOT
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
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
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
cm-projects
RIOT
Commits
663bd8a7
Unverified
Commit
663bd8a7
authored
7 years ago
by
Francisco Acosta
Committed by
GitHub
7 years ago
Browse files
Options
Downloads
Plain Diff
Merge pull request #7948 from kaspar030/cleanup_mcuboot
make: cleanup mcuboot support
parents
72add880
e7646781
No related branches found
No related tags found
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
Makefile.include
+2
-2
2 additions, 2 deletions
Makefile.include
cpu/cortexm_common/Makefile.include
+0
-2
0 additions, 2 deletions
cpu/cortexm_common/Makefile.include
makefiles/mcuboot.mk
+9
-7
9 additions, 7 deletions
makefiles/mcuboot.mk
tests/mcuboot/README.md
+1
-1
1 addition, 1 deletion
tests/mcuboot/README.md
with
12 additions
and
12 deletions
Makefile.include
+
2
−
2
View file @
663bd8a7
...
...
@@ -567,6 +567,6 @@ CFLAGS := $(patsubst -D%,,$(CFLAGS))
CFLAGS
:=
$(
patsubst
-U
%,,
$(
CFLAGS
))
CFLAGS
+=
-include
'
$(
RIOTBUILD_CONFIG_HEADER_C
)
'
# include m
ultisl
ot support
include
$(RIOTMAKE)/m
ultisl
ot.mk
# include m
cubo
ot support
include
$(RIOTMAKE)/m
cubo
ot.mk
endif
# BOARD=none
This diff is collapsed.
Click to expand it.
cpu/cortexm_common/Makefile.include
+
0
−
2
View file @
663bd8a7
# include module specific includes
INCLUDES
+=
-I
$(
RIOTCPU
)
/cortexm_common/include
INCLUDES
+=
-I
$(
RIOTCPU
)
/cortexm_common/include/vendor
export
IMAGE_HDR_SIZE
?=
512
This diff is collapsed.
Click to expand it.
makefiles/m
ultisl
ot.mk
→
makefiles/m
cubo
ot.mk
+
9
−
7
View file @
663bd8a7
...
...
@@ -11,7 +11,9 @@ MCUBOOT_BIN ?= $(BINDIR)/mcuboot.bin
MCUBOOT_BIN_URL
?=
http://download.riot-os.org/mynewt.mcuboot.bin
MCUBOOT_BIN_MD5
?=
0c71a0589bd3709fc2d90f07a0035ce7
create-key
:
$(MCUBOOT_KEYFILE)
export
IMAGE_HDR_SIZE
?=
512
mcuboot-create-key
:
$(MCUBOOT_KEYFILE)
ifeq
($(BINDIR)/key.pem,$(MCUBOOT_KEYFILE))
$(MCUBOOT_KEYFILE)
:
...
...
@@ -19,7 +21,7 @@ $(MCUBOOT_KEYFILE):
$(
Q
)$(
IMGTOOL
)
keygen
-k
$@
-t
rsa-2048
endif
mcuboot
:
create-key link
mcuboot
:
mcuboot-
create-key link
@$(
COLOR_ECHO
)
@$(
COLOR_ECHO
)
'
${
COLOR_PURPLE
}
Re-linking for MCUBoot at
$(
SLOT0_SIZE
)
...
${
COLOR_RESET
}
'
@$(
COLOR_ECHO
)
...
...
@@ -37,14 +39,14 @@ mcuboot: create-key link
$(MCUBOOT_BIN)
:
$(
Q
)$(
DLCACHE
)
$(
MCUBOOT_BIN_URL
)
$(
MCUBOOT_BIN_MD5
)
$@
.PHONY
:
flash-bootloader
flash-
mcuboot
.PHONY
:
mcuboot-
flash-bootloader mcuboot
-flash
flash-bootloader
:
HEXFILE = $(MCUBOOT_BIN)
flash-bootloader
:
$(MCUBOOT_BIN) $(FLASHDEPS)
mcuboot-
flash-bootloader
:
HEXFILE = $(MCUBOOT_BIN)
mcuboot-
flash-bootloader
:
$(MCUBOOT_BIN) $(FLASHDEPS)
FLASH_ADDR
=
0x0
$(
FLASHER
)
$(
FFLAGS
)
flash-
mcuboot
:
HEXFILE = $(SIGN_BINFILE)
flash-
mcuboot
:
mcuboot $(FLASHDEPS) flash-bootloader
mcuboot
-flash
:
HEXFILE = $(SIGN_BINFILE)
mcuboot
-flash
:
mcuboot $(FLASHDEPS)
mcuboot-
flash-bootloader
FLASH_ADDR
=
$(
SLOT0_SIZE
)
$(
FLASHER
)
$(
FFLAGS
)
else
...
...
This diff is collapsed.
Click to expand it.
tests/mcuboot/README.md
+
1
−
1
View file @
663bd8a7
...
...
@@ -26,7 +26,7 @@ pip3 install --user pycrypto ecdsa pyasn1
```
This test can be called using
`make mcuboot`
to produce such ELF file,
which can also be flashed using
`make
flash-
mcuboot`
.This command also flashes
which can also be flashed using
`make mcuboot
-flash
`
.This command also flashes
the pre-compiled bootloader.
It's also possible to build and flash MCUBoot by following the instructions on
...
...
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