summaryrefslogtreecommitdiff
path: root/digital/ucoolib/ucoolib
diff options
context:
space:
mode:
authorNicolas Schodet2012-10-11 19:13:35 +0200
committerNicolas Schodet2012-10-21 18:56:29 +0200
commit143379df9873622ffe938592cd27e89a95361ddf (patch)
tree0b28a0da8a3545d8393f8cd02e952c53b52f7e07 /digital/ucoolib/ucoolib
parent77c08e656c86fa3e9da5de1c3abdcb45d67dc9a2 (diff)
digital/ucoolib: add ucoolib build system and basic arch module
Diffstat (limited to 'digital/ucoolib/ucoolib')
-rw-r--r--digital/ucoolib/ucoolib/arch/Module1
-rw-r--r--digital/ucoolib/ucoolib/arch/stm32f4/stm32f4.ld6
-rw-r--r--digital/ucoolib/ucoolib/arch/syscalls.newlib.c27
3 files changed, 34 insertions, 0 deletions
diff --git a/digital/ucoolib/ucoolib/arch/Module b/digital/ucoolib/ucoolib/arch/Module
new file mode 100644
index 00000000..e97fe250
--- /dev/null
+++ b/digital/ucoolib/ucoolib/arch/Module
@@ -0,0 +1 @@
+arch_SOURCES := syscalls.newlib.c
diff --git a/digital/ucoolib/ucoolib/arch/stm32f4/stm32f4.ld b/digital/ucoolib/ucoolib/arch/stm32f4/stm32f4.ld
new file mode 100644
index 00000000..ceef7af4
--- /dev/null
+++ b/digital/ucoolib/ucoolib/arch/stm32f4/stm32f4.ld
@@ -0,0 +1,6 @@
+MEMORY
+{
+ rom (rx) : ORIGIN = 0x08000000, LENGTH = 1024K
+ ram (rwx) : ORIGIN = 0x20000000, LENGTH = 128K
+}
+INCLUDE libopencm3_stm32f4.ld
diff --git a/digital/ucoolib/ucoolib/arch/syscalls.newlib.c b/digital/ucoolib/ucoolib/arch/syscalls.newlib.c
new file mode 100644
index 00000000..93b21579
--- /dev/null
+++ b/digital/ucoolib/ucoolib/arch/syscalls.newlib.c
@@ -0,0 +1,27 @@
+/* ucoolib - Microcontroller object oriented library. {{{
+ *
+ * Copyright (C) 2012 Nicolas Schodet
+ *
+ * APBTeam:
+ * Web: http://apbteam.org/
+ * Email: team AT apbteam DOT org
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ *
+ * }}} */
+
+/** This is needed by C++ ABI, this simple definition will do. See:
+ * http://lists.debian.org/debian-gcc/2003/07/msg00057.html */
+void *__dso_handle = (void*) &__dso_handle;