From 468beb1305b342b1d13bfce140cc700edbee4303 Mon Sep 17 00:00:00 2001 From: patacongo Date: Sun, 25 Mar 2007 13:16:27 +0000 Subject: [PATCH] Makefile would sometimes create spurious links git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@145 42af7a65-404d-4744-a932-0658087f49c3 --- Makefile | 10 +++++++++- TODO | 13 +++++-------- 2 files changed, 14 insertions(+), 9 deletions(-) diff --git a/Makefile b/Makefile index 73a6f0a310..e41e9cbb15 100644 --- a/Makefile +++ b/Makefile @@ -58,7 +58,15 @@ include/nuttx/config.h: $(TOPDIR)/.config tools/mkconfig tools/mkconfig $(TOPDIR) > include/nuttx/config.h include/arch: include/nuttx/config.h - ln -sf $(TOPDIR)/$(ARCH_DIR)/include include/arch + @if [ -e include/arch ]; then \ + if [ -h include/arch ]; then \ + rm -f include/arch ; \ + else \ + echo "include/arch exists but is not a symbolic link" ; \ + exit 1 ; \ + fi ; \ + fi + @ln -s $(TOPDIR)/$(ARCH_DIR)/include include/arch context: check_context include/nuttx/config.h include/arch diff --git a/TODO b/TODO index 597d27bd86..cd6e9b85ee 100644 --- a/TODO +++ b/TODO @@ -13,17 +13,16 @@ Task/Scheduler - Make the system timer frequency configurable via defconfig. See: _POSIX_CLOCKRES_MIN in limits.h CLK_TCK in time.h - Definitions in sched/clock_internal.h + MSEC_PER_TICK in sched/clock_internal.h - Consider implementing wait, waitpid, waitid. At present, a parent has no information about child tasks. o Memory Managment - Add an option to free all memory allocated by a task when the task exits. - This may not be worth the overhead for a deeply embedded system. + This is probably not be worth the overhead for a deeply embedded system. o Signals -- 'Standard' signals and signal actions are not supported. Does this - make since in a deeply embedded system? +- 'Standard' signals and signal actions are not supported. o pthreads - pthread_cancel(): Should implemenent cancellation points and pthread_testcancel() @@ -40,7 +39,6 @@ o Libraries Apparently printf has some thread safety issues. o File system -- This probabaly needs some rethinking. - Add some concept like mount points to handle mounted "real" filesystems. o Console Output @@ -50,12 +48,13 @@ o Documentation - Document filesystem, library o Build system -- Something leaves garbage link 'include' in arch/*/include o Applications & Tests o C5471 +o DM320 + o pjrc-8052 / MCS51 * Current status: - Basic OS task management seems OK @@ -73,5 +72,3 @@ o pjrc-8052 / MCS51 clock_initialize.c at line 107 pthread_create.c at 330 sighand.c at 225 and 244 - -o DM320