Skip to content

Commit

Permalink
update various dependencies and force compiler to produce cortex-m3 c…
Browse files Browse the repository at this point in the history
…ode. TODO WONT WORK WITH LPC2148 based autopilots
  • Loading branch information
lamestllama committed Feb 9, 2011
1 parent e9e6602 commit bfdc687
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 16 deletions.
6 changes: 2 additions & 4 deletions darwin/macports/ports/cross/arm-none-eabi-binutils/Portfile
Expand Up @@ -29,14 +29,12 @@ configure.cxx g++
configure.cppflags
configure.ldflags
configure.args --target=${targetarch} \
--prefix=${prefix} \
--enable-interwork \
--enable-multilib \
--disable-nls \
--disable-shared \
--disable-threads \
--with-gcc \
--with-gnu-as \
--with-gnu-ld \
--disable-nls \
--disable-werror
post-destroot {
file rename ${destroot}${prefix}/share/info/configure.info \
Expand Down
22 changes: 12 additions & 10 deletions darwin/macports/ports/cross/arm-none-eabi-gcc-linaro/Portfile
Expand Up @@ -47,9 +47,9 @@ post-extract {
system "ln -s ${workpath}/newlib-${newlibversion}/newlib ${workpath}/gcc-linaro-${version}/"
}

patch.dir ${workpath}/gcc-linaro-${version}
patchfiles \
patch-gcc-config-arm-t-arm-elf.diff
#patch.dir ${workpath}/gcc-linaro-${version}
#patchfiles \
# patch-gcc-config-arm-t-arm-elf.diff

# Since we don't build gcc and binutils at the same time, gcc's Makefile will try to transform
# program names as gcc's name (add -${version} with ${version} being the version of gcc).
Expand Down Expand Up @@ -78,18 +78,21 @@ configure.cppflags
configure.ldflags
configure.cc-append -I${prefix}/include
configure.args --target=${targetarch} \
--prefix=${prefix} \
--program-prefix=${targetarch}- \
--enable-interwork \
--enable-multilib \
--enable-languages=c,c++ \
--enable-languages="c" \
--with-newlib \
--with-cpu=cortex-m3 \
--with-tune=cortex-m3 \
--with-mode=thumb \
--with-float=soft \
--with-gnu-as \
--with-gnu-ld \
--disable-nls \
--disable-shared \
--disable-threads \
--disable-nls \
--with-gcc \
--with-gnu-as \
--with-gnu-ld \
--with-dwarf2 \
--with-headers=${workpath}/newlib-${newlibversion}/newlib/libc/include \
--disable-libssp \
--disable-libstdcxx-pch \
Expand All @@ -101,7 +104,6 @@ configure.args --target=${targetarch} \
--with-mpfr=${prefix} \
--with-mpc=${prefix} \
--with-libiconv-prefix=${prefix} \
-v \
--disable-newlib-supplied-syscalls
configure.cc_archflags
configure.cxx_archflags
Expand Down
3 changes: 2 additions & 1 deletion darwin/macports/ports/cross/libstm32/Portfile
Expand Up @@ -16,7 +16,8 @@ patchfiles patch-src-Makefile.diff
worksrcdir ${name}
use_configure no
use_parallel_build no
depends_lib port:arm-none-eabi-gcc-linaro
depends_lib port:arm-none-eabi-gcc-linaro \
port:libcmsis
set environment [list PATH="${prefix}/${targetarch}/bin"]
build.env ${environment}
build.args arch_prefix=${targetarch} prefix=${prefix}
Expand Down
3 changes: 2 additions & 1 deletion darwin/macports/ports/cross/libstm32usb/Portfile
Expand Up @@ -15,7 +15,8 @@ git.url git://git.open-bldc.org/libstm32usb.git
worksrcdir ${name}
use_configure no
use_parallel_build no
depends_lib port:arm-none-eabi-gcc-linaro
depends_lib port:arm-none-eabi-gcc-linaro \
port:libstm32
set environment [list PATH="${prefix}/${targetarch}/bin"]
build.env ${environment}
build.args arch_prefix=${targetarch} prefix=${prefix}
Expand Down

0 comments on commit bfdc687

Please sign in to comment.