-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Removed the optimisation flags from the libopenstm32 port build. Also…
… removed the building of the examples as they fail to build without the optimisation -Os in the build of the library.
- Loading branch information
Showing
6 changed files
with
62 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
11 changes: 11 additions & 0 deletions
11
darwin/macports/ports/cross/libopenstm32/files/patch-Makefile.diff
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
--- Makefile.orig 2011-01-31 22:31:56.000000000 +1100 | ||
+++ Makefile 2011-01-31 22:32:20.000000000 +1100 | ||
@@ -47,7 +47,7 @@ | ||
@printf " BUILD examples/lpc13xx\n" | ||
$(Q)$(MAKE) -C examples/lpc13xx all | ||
|
||
-install: build | ||
+install: | ||
@printf " INSTALL headers\n" | ||
$(Q)$(INSTALL) -d $(INCDIR)/libopencm3 | ||
$(Q)$(INSTALL) -d $(LIBDIR) |
11 changes: 11 additions & 0 deletions
11
darwin/macports/ports/cross/libopenstm32/files/patch-examples-lpc13xx-Makefile-include.diff
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
--- examples/lpc13xx/Makefile.include.orig 2011-01-31 22:20:50.000000000 +1100 | ||
+++ examples/lpc13xx/Makefile.include 2011-01-31 22:21:02.000000000 +1100 | ||
@@ -27,7 +27,7 @@ | ||
# Uncomment this line if you want to use the installed (not local) library. | ||
# TOOLCHAIN_DIR = `dirname \`which $(CC)\``/../$(PREFIX) | ||
TOOLCHAIN_DIR = ../../../.. | ||
-CFLAGS += -Os -g -Wall -Wextra -I$(TOOLCHAIN_DIR)/include -fno-common \ | ||
+CFLAGS += -g -Wall -Wextra -I$(TOOLCHAIN_DIR)/include -fno-common \ | ||
-mcpu=cortex-m3 -mthumb | ||
LDSCRIPT = $(BINARY).ld | ||
LDFLAGS += -L$(TOOLCHAIN_DIR)/lib -L$(TOOLCHAIN_DIR)/lib/lpc13xx \ |
11 changes: 11 additions & 0 deletions
11
darwin/macports/ports/cross/libopenstm32/files/patch-examples-stm32-Makefile-include.diff
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
--- examples/stm32/Makefile.include.orig 2011-01-31 22:22:06.000000000 +1100 | ||
+++ examples/stm32/Makefile.include 2011-01-31 22:22:18.000000000 +1100 | ||
@@ -27,7 +27,7 @@ | ||
# Uncomment this line if you want to use the installed (not local) library. | ||
# TOOLCHAIN_DIR = `dirname \`which $(CC)\``/../$(PREFIX) | ||
TOOLCHAIN_DIR = ../../../.. | ||
-CFLAGS += -Os -g -Wall -Wextra -I$(TOOLCHAIN_DIR)/include \ | ||
+CFLAGS += -g -Wall -Wextra -I$(TOOLCHAIN_DIR)/include \ | ||
-fno-common -mcpu=cortex-m3 -mthumb | ||
LDSCRIPT = $(BINARY).ld | ||
LDFLAGS += -L$(TOOLCHAIN_DIR)/lib -L$(TOOLCHAIN_DIR)/lib/stm32 \ |
11 changes: 11 additions & 0 deletions
11
darwin/macports/ports/cross/libopenstm32/files/patch-lib-lpc13cc-Makefile.diff
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
--- lib/lpc13xx/Makefile.orig 2011-01-31 22:11:42.000000000 +1100 | ||
+++ lib/lpc13xx/Makefile 2011-01-31 22:12:30.000000000 +1100 | ||
@@ -23,7 +23,7 @@ | ||
PREFIX ?= arm-elf | ||
CC = $(PREFIX)-gcc | ||
AR = $(PREFIX)-ar | ||
-CFLAGS = -Os -g -Wall -Wextra -I../../include -fno-common \ | ||
+CFLAGS = -g -Wall -Wextra -I../../include -fno-common \ | ||
-mcpu=cortex-m3 -mthumb -Wstrict-prototypes \ | ||
-ffunction-sections -fdata-sections | ||
# ARFLAGS = rcsv |
11 changes: 11 additions & 0 deletions
11
darwin/macports/ports/cross/libopenstm32/files/patch-lib-stm32-Makefile.diff
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
--- lib/stm32/Makefile.orig 2011-01-31 22:12:45.000000000 +1100 | ||
+++ lib/stm32/Makefile 2011-01-31 22:12:56.000000000 +1100 | ||
@@ -23,7 +23,7 @@ | ||
PREFIX ?= arm-elf | ||
CC = $(PREFIX)-gcc | ||
AR = $(PREFIX)-ar | ||
-CFLAGS = -Os -g -Wall -Wextra -I../../include -fno-common \ | ||
+CFLAGS = -g -Wall -Wextra -I../../include -fno-common \ | ||
-mcpu=cortex-m3 -mthumb -Wstrict-prototypes \ | ||
-ffunction-sections -fdata-sections | ||
# ARFLAGS = rcsv |