1
0
mirror of https://bitbucket.org/librepilot/librepilot.git synced 2024-11-29 07:24:13 +01:00

some changes to increase platform independence

git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@1017 ebee16cc-31ac-478f-84a7-5cbb03baadba
This commit is contained in:
corvus 2010-07-04 09:27:53 +00:00 committed by corvus
parent c7479b796b
commit 455a99a3cf
2 changed files with 4 additions and 4 deletions

View File

@ -62,7 +62,7 @@ MODULES = Telemetry Stabilization
# MCU name, submodel and board # MCU name, submodel and board
# - MCU used for compiler-option (-mcpu) # - MCU used for compiler-option (-mtune)
# - MODEL used for linker-script name (-T) and passed as define # - MODEL used for linker-script name (-T) and passed as define
# - BOARD just passed as define (optional) # - BOARD just passed as define (optional)
MCU = i686 MCU = i686
@ -283,7 +283,7 @@ endif
CFLAGS += -DARCH_POSIX CFLAGS += -DARCH_POSIX
CFLAGS += -O$(OPT) CFLAGS += -O$(OPT)
CFLAGS += -mcpu=$(MCU) CFLAGS += -mtune=$(MCU)
CFLAGS += $(CDEFS) CFLAGS += $(CDEFS)
CFLAGS += $(patsubst %,-I%,$(EXTRAINCDIRS)) -I. CFLAGS += $(patsubst %,-I%,$(EXTRAINCDIRS)) -I.
@ -304,7 +304,7 @@ CONLYFLAGS += $(CSTANDARD)
# Assembler flags. # Assembler flags.
# -Wa,...: tell GCC to pass this to the assembler. # -Wa,...: tell GCC to pass this to the assembler.
# -ahlns: create listing # -ahlns: create listing
ASFLAGS = -mcpu=$(MCU) -I. -x assembler-with-cpp ASFLAGS = -mtune=$(MCU) -I. -x assembler-with-cpp
ASFLAGS += $(ADEFS) ASFLAGS += $(ADEFS)
ASFLAGS += -Wa,-adhlns=$(addprefix $(OUTDIR)/, $(notdir $(addsuffix .lst, $(basename $<)))) ASFLAGS += -Wa,-adhlns=$(addprefix $(OUTDIR)/, $(notdir $(addsuffix .lst, $(basename $<))))
ASFLAGS += $(patsubst %,-I%,$(EXTRAINCDIRS)) ASFLAGS += $(patsubst %,-I%,$(EXTRAINCDIRS))

View File

@ -26,7 +26,7 @@
#ifndef PIOS_POSIX_H #ifndef PIOS_POSIX_H
#define PIOS_POSIX_H #define PIOS_POSIX_H
#include <bits/types.h> #include <sys/types.h>
typedef __uint16_t uint16_t; typedef __uint16_t uint16_t;
typedef __uint32_t uint32_t; typedef __uint32_t uint32_t;