diff options
author | Yann E. MORIN" <yann.morin.1998@free.fr> | 2013-01-10 19:06:46 +0100 |
---|---|---|
committer | Yann E. MORIN" <yann.morin.1998@free.fr> | 2013-01-10 19:06:46 +0100 |
commit | b8c9fdf4a3b16cc262db8a28646906ebfa98093e (patch) | |
tree | 3035e2f7d37aa4b6b81e2c75c014e605c49fe2d0 | |
parent | 8d19cdd779894034cf1e3599a5d091252e5299d5 (diff) | |
download | crosstool-ng-b8c9fdf4a3b16cc262db8a28646906ebfa98093e.tar.gz crosstool-ng-b8c9fdf4a3b16cc262db8a28646906ebfa98093e.tar.bz2 crosstool-ng-b8c9fdf4a3b16cc262db8a28646906ebfa98093e.zip |
libc/newlib: install AVR32 headers during the start-files-and-headers phase
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
-rw-r--r-- | scripts/build/libc/newlib.sh | 20 |
1 files changed, 11 insertions, 9 deletions
diff --git a/scripts/build/libc/newlib.sh b/scripts/build/libc/newlib.sh index a1d15bf2..491583ca 100644 --- a/scripts/build/libc/newlib.sh +++ b/scripts/build/libc/newlib.sh @@ -44,7 +44,16 @@ do_libc_check_config() { } do_libc_start_files() { - : + 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}/avr32headers" \ + "${CT_PREFIX_DIR}/${CT_TARGET}/include/avr32" + + CT_EndStep + fi } do_libc() { @@ -128,12 +137,5 @@ do_libc() { } do_libc_finish() { - CT_DoStep INFO "Finishing C library" - - if [ "${CT_ATMEL_AVR32_HEADERS}" = "y" ]; then - CT_DoLog EXTRA "Installing Atmel's AVR32 headers" - CT_DoExecLog ALL cp -r ${CT_SRC_DIR}/avr32headers "${CT_PREFIX_DIR}/${CT_TARGET}/include/avr32" - fi - - CT_EndStep + : } |