diff options
author | Gregory Nutt <gnutt@nuttx.org> | 2014-09-04 11:43:25 -0600 |
---|---|---|
committer | Gregory Nutt <gnutt@nuttx.org> | 2014-09-04 11:43:25 -0600 |
commit | c65cf8f41137bb71d92c82a130ba4d649929478a (patch) | |
tree | e2c26db83686eef79559134ca63c175d2aafb377 /nuttx/tools | |
parent | beca146a95df1d058b5cf2e8fc3f9fd776c33116 (diff) | |
download | px4-nuttx-c65cf8f41137bb71d92c82a130ba4d649929478a.tar.gz px4-nuttx-c65cf8f41137bb71d92c82a130ba4d649929478a.tar.bz2 px4-nuttx-c65cf8f41137bb71d92c82a130ba4d649929478a.zip |
Fix 'make export'. Adding subdirectories to the sched/ directory broke the header file collection logic
Diffstat (limited to 'nuttx/tools')
-rwxr-xr-x | nuttx/tools/mkexport.sh | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/nuttx/tools/mkexport.sh b/nuttx/tools/mkexport.sh index 2c464c0b1..6d0259cf0 100755 --- a/nuttx/tools/mkexport.sh +++ b/nuttx/tools/mkexport.sh @@ -32,13 +32,6 @@ # POSSIBILITY OF SUCH DAMAGE. # -# TODO: -# 1. This script assumes the host archiver ar may not be appropriate for -# non-GCC toolchains -# 2. For the kernel build, the user libriars should be built into some -# libuser.a. The list of user libraries would have to accepted with -# some new argument, perhaps -u. - # Get the input parameter list USAGE="USAGE: $0 [-d] [-z] [-w|wy|wn] -t <top-dir> [-x <lib-ext>] -l \"lib1 [lib2 [lib3 ...]]\"" @@ -246,8 +239,15 @@ done # specific header files. mkdir "${EXPORTDIR}/arch/os" || \ - { echo "MK: 'mkdir ${EXPORTDIR}/arch/${hdir}/chip' failed"; exit 1; } -cp -f "${TOPDIR}"/sched/*.h "${EXPORTDIR}"/arch/os/. 2>/dev/null + { echo "MK: 'mkdir ${EXPORTDIR}/arch/os' failed"; exit 1; } + +OSDIRS="clock environ errno group init irq mqueue paging pthread sched semaphore signal task timer wdog" + +for dir in ${OSDIRS}; do + mkdir "${EXPORTDIR}/arch/os/${dir}" || \ + { echo "MK: 'mkdir ${EXPORTDIR}/arch/os/${dir}' failed"; exit 1; } + cp -f "${TOPDIR}"/sched/${dir}/*.h "${EXPORTDIR}"/arch/os/${dir}/. 2>/dev/null +done # Add the board library to the list of libraries |