The inclusion of preempt.c and coop.c depends on the CONFIG_KERN_PREEMPT
option, so they should never been directly included in Makefile.
Instead we must always use mtask.c.
git-svn-id: https://src.develer.com/svnoss/bertos/trunk@3222
38d2e660-2303-0410-9eaa-
f027e97ec537
fi
CPU_TARGET=$1
EXCLUDE_DIRS="$COPY_DIR $CPU_DIR $APP_DIR $OS_DIR $WIZARD_DIR $EMUL_DIR $FAT_DIR $NMEA_DIR"
-EXCLUDE_CMD="\.svn -prune "
+EXCLUDE_CMD="\.svn -or -name preempt.c -or -name coop.c -prune "
for i in $EXCLUDE_DIRS; do
EXCLUDE_CMD="$EXCLUDE_CMD -o -path $i -prune ";
done