You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mynewt.apache.org by ma...@apache.org on 2015/11/24 21:39:50 UTC

[04/11] incubator-mynewt-larva git commit: Switch to use baselibc for bootloader.

Switch to use baselibc for bootloader.


Project: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-larva/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-larva/commit/73101a19
Tree: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-larva/tree/73101a19
Diff: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-larva/diff/73101a19

Branch: refs/heads/master
Commit: 73101a1982964dea76398012b6c0e4734ea623f4
Parents: 8a061a4
Author: Marko Kiiskila <ma...@runtime.io>
Authored: Tue Nov 24 11:13:20 2015 -0800
Committer: Marko Kiiskila <ma...@runtime.io>
Committed: Tue Nov 24 11:13:20 2015 -0800

----------------------------------------------------------------------
 hw/bsp/olimex_stm32-e407_devboard/src/sbrk.c | 6 +-----
 project/boot/boot.yml                        | 1 +
 2 files changed, 2 insertions(+), 5 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-mynewt-larva/blob/73101a19/hw/bsp/olimex_stm32-e407_devboard/src/sbrk.c
----------------------------------------------------------------------
diff --git a/hw/bsp/olimex_stm32-e407_devboard/src/sbrk.c b/hw/bsp/olimex_stm32-e407_devboard/src/sbrk.c
index 828cad1..6a5bfc9 100644
--- a/hw/bsp/olimex_stm32-e407_devboard/src/sbrk.c
+++ b/hw/bsp/olimex_stm32-e407_devboard/src/sbrk.c
@@ -4,7 +4,7 @@
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
  * You may obtain a copy of the License at
- * 
+ *
  *   http://www.apache.org/licenses/LICENSE-2.0
  *
  * Unless required by applicable law or agreed to in writing, software
@@ -14,8 +14,6 @@
  * limitations under the License.
  */
 
-#include <errno.h>
-
 extern char __HeapBase;
 extern char __HeapLimit;
 
@@ -31,7 +29,6 @@ _sbrk(int incr)
         incr = -incr;
         if (brk - incr < &__HeapBase) {
             prev_brk = (void *)-1;
-            errno = EINVAL;
         } else {
             prev_brk = brk;
             brk -= incr;
@@ -43,7 +40,6 @@ _sbrk(int incr)
             brk += incr;
         } else {
             prev_brk = (void *)-1;
-            errno = ENOMEM;
         }
     }
 

http://git-wip-us.apache.org/repos/asf/incubator-mynewt-larva/blob/73101a19/project/boot/boot.yml
----------------------------------------------------------------------
diff --git a/project/boot/boot.yml b/project/boot/boot.yml
index 2da2afc..00a0863 100644
--- a/project/boot/boot.yml
+++ b/project/boot/boot.yml
@@ -6,3 +6,4 @@ project.eggs:
     - libs/nffs
     - libs/console/stub
     - libs/util
+    - libs/baselibc