Skip to content

Commit

Permalink
Merge pull request #526 from stilor/double-include
Browse files Browse the repository at this point in the history
Avoid creating include/include
  • Loading branch information
stilor committed Jan 14, 2017
2 parents 8f1523a + 01bae48 commit 949cc86
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 11 deletions.
3 changes: 2 additions & 1 deletion config/toolchain.in
Expand Up @@ -4,12 +4,13 @@ comment "General toolchain options"

config FORCE_SYSROOT
bool
default y if !OBSOLETE
default y if !OBSOLETE && !BARE_METAL
select USE_SYSROOT

config USE_SYSROOT
bool
prompt "Use sysroot'ed toolchain"
depends on !BARE_METAL
default y
help
Use the 'shinny new' sysroot feature of gcc: libraries split between
Expand Down
3 changes: 0 additions & 3 deletions scripts/build/cc/100-gcc.sh
Expand Up @@ -397,9 +397,6 @@ do_gcc_core_backend() {
;;
esac

CT_DoLog DEBUG "Copying headers to install area of core C compiler"
CT_DoExecLog ALL cp -a "${CT_HEADERS_DIR}" "${prefix}/${CT_TARGET}/include"

for tmp in ARCH ABI CPU TUNE FPU FLOAT; do
eval tmp="\${CT_ARCH_WITH_${tmp}}"
if [ -n "${tmp}" ]; then
Expand Down
8 changes: 1 addition & 7 deletions scripts/build/libc/newlib.sh
Expand Up @@ -5,10 +5,6 @@
# Edited by Martin Lund <mgl@doredevelopment.dk>
#

LIBC_NEWLIB_AVR_HDRS_URI="http://www.atmel.com/Images"
LIBC_NEWLIB_AVR_HDRS_BASE="avr-headers-3.2.3.970"
LIBC_NEWLIB_AVR_HDRS_EXT=".zip"

do_libc_get() {
local libc_src="{http://mirrors.kernel.org/sourceware/newlib,
ftp://sourceware.org/pub/newlib}"
Expand Down Expand Up @@ -122,8 +118,6 @@ ENABLE_TARGET_OPTSPACE:target-optspace
[ "${CT_LIBC_NEWLIB_LTO}" = "y" ] && \
CT_LIBC_NEWLIB_TARGET_CFLAGS="${CT_LIBC_NEWLIB_TARGET_CFLAGS} -flto"

[ "${CT_LIBC_NEWLIB_ENABLE_TARGET_OPTSPACE}" = "y" ] && newlib_opts+=("--enable-target-optspace")

cflags_for_target="${CT_TARGET_CFLAGS} ${CT_LIBC_NEWLIB_TARGET_CFLAGS}"

# Note: newlib handles the build/host/target a little bit differently
Expand All @@ -147,7 +141,7 @@ ENABLE_TARGET_OPTSPACE:target-optspace
CT_DoExecLog ALL make ${JOBSFLAGS}

CT_DoLog EXTRA "Installing C library"
CT_DoExecLog ALL make install install_root="${CT_SYSROOT_DIR}"
CT_DoExecLog ALL make install

if [ "${CT_BUILD_MANUALS}" = "y" ]; then
local -a doc_dir="${CT_BUILD_DIR}/build-libc/${CT_TARGET}"
Expand Down

0 comments on commit 949cc86

Please sign in to comment.