From 234c643008bd8bd56a543444a486ce1eafcc79d6 Mon Sep 17 00:00:00 2001 From: David Holsgrove Date: Tue, 12 Mar 2013 15:14:38 +1000 Subject: [PATCH] libc/newlib: Add do_libc_start_files to copy headers to CT_HEADERS_DIR Require access to newlibs headers in gcc.sh, matching other libc components. Resolves issue with headers not found. Signed-off-by: David Holsgrove --- scripts/build/libc/newlib.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/scripts/build/libc/newlib.sh b/scripts/build/libc/newlib.sh index cae4b9f6..74785a62 100644 --- a/scripts/build/libc/newlib.sh +++ b/scripts/build/libc/newlib.sh @@ -50,16 +50,16 @@ do_libc_check_config() { } do_libc_start_files() { + CT_DoStep INFO "Installing C library headers & start files" + CT_DoExecLog ALL cp -a "${CT_SRC_DIR}/newlib-${CT_LIBC_VERSION}/newlib/libc/include/." \ + "${CT_HEADERS_DIR}" if [ "${CT_ATMEL_AVR32_HEADERS}" = "y" ]; then - CT_DoStep INFO "Installing C library headers & start files" - CT_DoLog EXTRA "Installing Atmel's AVR32 headers" CT_DoExecLog ALL mkdir -p "${CT_PREFIX_DIR}/${CT_TARGET}/include" CT_DoExecLog ALL cp -r "${CT_SRC_DIR}/${LIBC_NEWLIB_AVR_HDRS_BASE}/avr32" \ "${CT_PREFIX_DIR}/${CT_TARGET}/include/" - - CT_EndStep fi + CT_EndStep } do_libc() {