From 111e44ff74e728dfabd0c18358cd6ebbb0d2a66d Mon Sep 17 00:00:00 2001 From: Gregory Nutt Date: Thu, 4 Sep 2014 11:43:25 -0600 Subject: [PATCH] Fix 'make export'. Adding subdirectories to the sched/ directory broke the header file collection logic --- tools/mkexport.sh | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/tools/mkexport.sh b/tools/mkexport.sh index 2c464c0b1b5..6d0259cf0f7 100755 --- a/tools/mkexport.sh +++ b/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 [-x ] -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