diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2011-08-27 14:58:42 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2011-08-27 14:58:42 +0000 |
commit | 1b571c64512a21d7aabc7122ead9bac785c8ff56 (patch) | |
tree | 8413ac81481f5882da4b2be180da0ed20c9c20ef /nuttx/arch/x86 | |
parent | d719433123a921aa84a51139cc6ffc4a46533bc4 (diff) | |
download | px4-nuttx-1b571c64512a21d7aabc7122ead9bac785c8ff56.tar.gz px4-nuttx-1b571c64512a21d7aabc7122ead9bac785c8ff56.tar.bz2 px4-nuttx-1b571c64512a21d7aabc7122ead9bac785c8ff56.zip |
STM32 I2C fix, documentation update, fixes for FreeBSD/ASH build
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@3917 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/arch/x86')
-rw-r--r-- | nuttx/arch/x86/src/Makefile | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/nuttx/arch/x86/src/Makefile b/nuttx/arch/x86/src/Makefile index e0e92eacd..6be4053af 100644 --- a/nuttx/arch/x86/src/Makefile +++ b/nuttx/arch/x86/src/Makefile @@ -81,6 +81,14 @@ BOARDDIR = $(TOPDIR)/arch/$(CONFIG_ARCH)/src/board LIBGCC = "${shell $(CC) -print-libgcc-file-name}" +ifeq ($(HOSTOS),FreeBSD) + HOST_ARCH = ${shell uname -m 2>/dev/null || echo "Other"} + ifeq ($(HOST_ARCH),amd64) + LDFLAGS += -melf_i386 + LIBGCC = "/usr/lib32/libgcc.a" + endif +endif + VPATH = chip:common:$(ARCH_SUBDIR) all: $(HEAD_OBJ) libarch$(LIBEXT) |