From 143379df9873622ffe938592cd27e89a95361ddf Mon Sep 17 00:00:00 2001 From: Nicolas Schodet Date: Thu, 11 Oct 2012 19:13:35 +0200 Subject: digital/ucoolib: add ucoolib build system and basic arch module --- digital/ucoolib/ucoolib/arch/Module | 1 + digital/ucoolib/ucoolib/arch/stm32f4/stm32f4.ld | 6 ++++++ digital/ucoolib/ucoolib/arch/syscalls.newlib.c | 27 +++++++++++++++++++++++++ 3 files changed, 34 insertions(+) create mode 100644 digital/ucoolib/ucoolib/arch/Module create mode 100644 digital/ucoolib/ucoolib/arch/stm32f4/stm32f4.ld create mode 100644 digital/ucoolib/ucoolib/arch/syscalls.newlib.c (limited to 'digital/ucoolib/ucoolib') 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; -- cgit v1.2.3