You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mynewt.apache.org by GitBox <gi...@apache.org> on 2018/10/17 22:04:19 UTC
[GitHub] andrzej-kaczmarek closed pull request #1464: Add speed-optimized
build profile
andrzej-kaczmarek closed pull request #1464: Add speed-optimized build profile
URL: https://github.com/apache/mynewt-core/pull/1464
This is a PR merged from a forked repository.
As GitHub hides the original diff on merge, it is displayed below for
the sake of provenance:
As this is a foreign pull request (from a fork), the diff is supplied
below (as it won't show otherwise due to GitHub magic):
diff --git a/compiler/arm-none-eabi-m0/compiler.yml b/compiler/arm-none-eabi-m0/compiler.yml
index 304f74cd33..e47eaf1565 100644
--- a/compiler/arm-none-eabi-m0/compiler.yml
+++ b/compiler/arm-none-eabi-m0/compiler.yml
@@ -27,6 +27,7 @@ compiler.path.objcopy: arm-none-eabi-objcopy
compiler.flags.default: -march=armv6s-m -mcpu=cortex-m0 -mthumb-interwork -mthumb -Wall -Werror -fno-exceptions -fomit-frame-pointer -ffunction-sections -fdata-sections -DCMSIS_VECTAB_VIRTUAL -DCMSIS_VECTAB_VIRTUAL_HEADER_FILE="mynewt_cm0_vectab.h"
compiler.flags.optimized: [compiler.flags.default, -Os -ggdb]
+compiler.flags.speed: [compiler.flags.default, -O3 -ggdb]
compiler.flags.debug: [compiler.flags.default, -Og -ggdb]
compiler.as.flags: [-x, assembler-with-cpp]
diff --git a/compiler/arm-none-eabi-m3/compiler.yml b/compiler/arm-none-eabi-m3/compiler.yml
index 6e69c58340..6ac8b27ee3 100644
--- a/compiler/arm-none-eabi-m3/compiler.yml
+++ b/compiler/arm-none-eabi-m3/compiler.yml
@@ -28,6 +28,7 @@ compiler.path.objcopy: arm-none-eabi-objcopy
compiler.flags.base: -mcpu=cortex-m3 -mthumb-interwork -mthumb -Wall -Werror -fno-exceptions -ffunction-sections -fdata-sections
compiler.flags.default: [compiler.flags.base, -O1 -ggdb]
compiler.flags.optimized: [compiler.flags.base, -Os -ggdb]
+compiler.flags.speed: [compiler.flags.base, -O3 -ggdb]
compiler.flags.debug: [compiler.flags.base, -Og -ggdb]
compiler.as.flags: [-x, assembler-with-cpp]
diff --git a/compiler/arm-none-eabi-m4/compiler.yml b/compiler/arm-none-eabi-m4/compiler.yml
index 02efc8e7a5..72c1baa243 100644
--- a/compiler/arm-none-eabi-m4/compiler.yml
+++ b/compiler/arm-none-eabi-m4/compiler.yml
@@ -28,6 +28,7 @@ compiler.path.objcopy: arm-none-eabi-objcopy
compiler.flags.base: -mcpu=cortex-m4 -mthumb-interwork -mthumb -Wall -Werror -fno-exceptions -ffunction-sections -fdata-sections
compiler.flags.default: [compiler.flags.base, -O1 -ggdb]
compiler.flags.optimized: [compiler.flags.base, -Os -ggdb]
+compiler.flags.speed: [compiler.flags.base, -O3 -ggdb]
compiler.flags.debug: [compiler.flags.base, -Og -ggdb]
compiler.as.flags: [-x, assembler-with-cpp]
diff --git a/compiler/arm-none-eabi-m7/compiler.yml b/compiler/arm-none-eabi-m7/compiler.yml
index 4b9428b291..ec54796987 100644
--- a/compiler/arm-none-eabi-m7/compiler.yml
+++ b/compiler/arm-none-eabi-m7/compiler.yml
@@ -28,6 +28,7 @@ compiler.path.objcopy: arm-none-eabi-objcopy
compiler.flags.base: -mcpu=cortex-m7 -mthumb-interwork -mthumb -Wall -Werror -fno-exceptions -ffunction-sections -fdata-sections
compiler.flags.default: [compiler.flags.base, -O1 -ggdb]
compiler.flags.optimized: [compiler.flags.base, -Os -ggdb]
+compiler.flags.speed: [compiler.flags.base, -O3 -ggdb]
compiler.flags.debug: [compiler.flags.base, -O0 -ggdb]
compiler.as.flags: [-x, assembler-with-cpp]
diff --git a/hw/drivers/rtt/pkg.yml b/hw/drivers/rtt/pkg.yml
index 3b67bb5ec4..df21c5134b 100644
--- a/hw/drivers/rtt/pkg.yml
+++ b/hw/drivers/rtt/pkg.yml
@@ -25,6 +25,7 @@ pkg.keywords:
pkg.deps:
pkg.req_apis:
+pkg.build_profile: speed
pkg.cflags:
- -DSEGGER_RTT_SECTION=".rtt"
- -Wno-array-bounds
diff --git a/sys/sysview/pkg.yml b/sys/sysview/pkg.yml
index 9222e7ce7f..39efbfdf37 100644
--- a/sys/sysview/pkg.yml
+++ b/sys/sysview/pkg.yml
@@ -22,6 +22,7 @@ pkg.description: Segger SystemView tool API
pkg.author: "Apache Mynewt <de...@mynewt.apache.org>"
pkg.homepage: "http://mynewt.apache.org/"
pkg.keywords:
+pkg.build_profile: speed
pkg.deps:
- "@apache-mynewt-core/sys/sysview/vendor"
pkg.init:
diff --git a/sys/sysview/vendor/pkg.yml b/sys/sysview/vendor/pkg.yml
index 77d7b63fcd..c167453b53 100644
--- a/sys/sysview/vendor/pkg.yml
+++ b/sys/sysview/vendor/pkg.yml
@@ -22,6 +22,7 @@ pkg.description: Segger SystemView tool - vendor code
pkg.author: "Apache Mynewt <de...@mynewt.apache.org>"
pkg.homepage: "http://mynewt.apache.org/"
pkg.keywords:
+pkg.build_profile: speed
pkg.deps:
- "@apache-mynewt-core/hw/drivers/rtt"
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services