1
0
mirror of https://bitbucket.org/librepilot/librepilot.git synced 2025-02-21 11:54:15 +01:00

pipx: apply fixes that allow pipx to build with new gcc

This commit is contained in:
Stacey Sheldon 2012-05-27 21:38:33 -04:00
parent decd92f21d
commit 5c114aedd5
3 changed files with 7 additions and 10 deletions

View File

@ -98,15 +98,8 @@ SECTIONS
_init_stack_top = . - 4 ; _init_stack_top = . - 4 ;
} > SRAM } > SRAM
_eram = ORIGIN(SRAM) + LENGTH(SRAM) ;
_free_ram = . ; _ebss = _eram;
.free_ram (NOLOAD) :
{
. = ORIGIN(SRAM) + LENGTH(SRAM) - _free_ram ;
/* This is used by the startup in order to initialize the .bss section */
_ebss = . ;
_eram = . ;
} > SRAM
/* keep the heap section at the end of the SRAM /* keep the heap section at the end of the SRAM
* this will allow to claim the remaining bytes not used * this will allow to claim the remaining bytes not used

View File

@ -53,7 +53,7 @@ USE_GPS ?= NO
USE_I2C ?= YES USE_I2C ?= YES
# Set to YES when using Code Sourcery toolchain # Set to YES when using Code Sourcery toolchain
CODE_SOURCERY ?= YES CODE_SOURCERY ?= NO
# Remove command is different for Code Sourcery on Windows # Remove command is different for Code Sourcery on Windows
ifeq ($(CODE_SOURCERY), YES) ifeq ($(CODE_SOURCERY), YES)

View File

@ -190,6 +190,10 @@ void PIOS_Board_Init(void) {
#if defined(PIOS_INCLUDE_USB_HID) #if defined(PIOS_INCLUDE_USB_HID)
if (!usb_hid_present) {
PIOS_Assert(0);
}
/* Configure the usb HID port */ /* Configure the usb HID port */
#if defined(PIOS_INCLUDE_COM) #if defined(PIOS_INCLUDE_COM)
{ {