Need to use cygpath consistently for compilation in subdirectories

git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@1439 42af7a65-404d-4744-a932-0658087f49c3
This commit is contained in:
patacongo 2008-12-08 21:21:46 +00:00
parent a3cb7e9483
commit b38a17351f
12 changed files with 31 additions and 30 deletions

View File

@ -142,12 +142,13 @@ endef
define COMPILE define COMPILE
@#echo "CC: $1" @#echo "CC: $1"
@$(CC) $(CFLAGS) $1 @(wfile=`cygpath -w $1`; $(CC) $(CFLAGS) $$wfile)
endef endef
define ASSEMBLE define ASSEMBLE
@#echo "AS: $1" @#echo "AS: $1"
@$(AS) -c $(AFLAGS) $1 @$(AS) -c $(AFLAGS) $1
@(wfile=`cygpath -w $1`; $(AS) $(AFLAGS) $$wfile)
endef endef
define ARCHIVE define ARCHIVE

View File

@ -61,7 +61,7 @@ $(AOBJS): %$(OBJEXT): %$(ASMEXT)
$(call ASSEMBLE, $<, $@) $(call ASSEMBLE, $<, $@)
$(COBJS) $(LINKOBJS): %$(OBJEXT): %.c $(COBJS) $(LINKOBJS): %$(OBJEXT): %.c
$(call COMPILE, `cygpath -w $<`, $@) $(call COMPILE, $<, $@)
libboard$(LIBEXT): $(OBJS) libboard$(LIBEXT): $(OBJS)
@( for obj in $(OBJS) ; do \ @( for obj in $(OBJS) ; do \

View File

@ -142,12 +142,12 @@ endef
define COMPILE define COMPILE
@#echo "CC: $1" @#echo "CC: $1"
@$(CC) $(CFLAGS) $1 @(wfile=`cygpath -w $1`; $(CC) $(CFLAGS) $$wfile)
endef endef
define ASSEMBLE define ASSEMBLE
@#echo "AS: $1" @#echo "AS: $1"
@$(AS) -c $(AFLAGS) $1 @(wfile=`cygpath -w $1`; $(AS) $(AFLAGS) $$wfile)
endef endef
define ARCHIVE define ARCHIVE

View File

@ -38,11 +38,11 @@
-sort NAME=ascending -warn -NOdebug -NOigcase -sort NAME=ascending -warn -NOdebug -NOigcase
RANGE ROM $000000 : $03FFFF RANGE ROM $000000 : $03FFFF
RANGE RAM $B7E000 : $B7FFFF RANGE RAM $B80000 : $BFFFFF
RANGE EXTIO $000000 : $00FFFF RANGE EXTIO $0 : $FFFF
RANGE INTIO $000000 : $0000FF RANGE INTIO $0 : $FF
CHANGE STRSECT = ROM CHANGE STRSECT is ROM
ORDER .RESET,.IVECTS,.STARTUP,CODE,DATA ORDER .RESET,.IVECTS,.STARTUP,CODE,DATA
COPY DATA ROM COPY DATA ROM
@ -64,17 +64,17 @@ DEFINE __CS0_LBR_INIT_PARAM = $10
DEFINE __CS0_UBR_INIT_PARAM = $1f DEFINE __CS0_UBR_INIT_PARAM = $1f
DEFINE __CS0_CTL_INIT_PARAM = $a8 DEFINE __CS0_CTL_INIT_PARAM = $a8
DEFINE __CS0_BMC_INIT_PARAM = $02 DEFINE __CS0_BMC_INIT_PARAM = $02
DEFINE __CS1_LBR_INIT_PARAM = $b8 DEFINE __CS1_LBR_INIT_PARAM = $c0
DEFINE __CS1_UBR_INIT_PARAM = $b9 DEFINE __CS1_UBR_INIT_PARAM = $c7
DEFINE __CS1_CTL_INIT_PARAM = $28 DEFINE __CS1_CTL_INIT_PARAM = $28
DEFINE __CS1_BMC_INIT_PARAM = $02 DEFINE __CS1_BMC_INIT_PARAM = $02
DEFINE __CS2_LBR_INIT_PARAM = $80 DEFINE __CS2_LBR_INIT_PARAM = $80
DEFINE __CS2_UBR_INIT_PARAM = $bf DEFINE __CS2_UBR_INIT_PARAM = $bf
DEFINE __CS2_CTL_INIT_PARAM = $28 DEFINE __CS2_CTL_INIT_PARAM = $28
DEFINE __CS2_BMC_INIT_PARAM = $02 DEFINE __CS2_BMC_INIT_PARAM = $81
DEFINE __CS3_LBR_INIT_PARAM = $60 DEFINE __CS3_LBR_INIT_PARAM = $00
DEFINE __CS3_UBR_INIT_PARAM = $7f DEFINE __CS3_UBR_INIT_PARAM = $00
DEFINE __CS3_CTL_INIT_PARAM = $a8 DEFINE __CS3_CTL_INIT_PARAM = $00
DEFINE __CS3_BMC_INIT_PARAM = $02 DEFINE __CS3_BMC_INIT_PARAM = $02
DEFINE __RAM_CTL_INIT_PARAM = $C0 DEFINE __RAM_CTL_INIT_PARAM = $C0
DEFINE __RAM_ADDR_U_INIT_PARAM = $B7 DEFINE __RAM_ADDR_U_INIT_PARAM = $B7
@ -84,9 +84,9 @@ DEFINE __FLASH_ADDR_U_INIT_PARAM = $00
define _SYS_CLK_FREQ = 50000000 define _SYS_CLK_FREQ = 50000000
define _OSC_FREQ = 5000000 define _OSC_FREQ = 5000000
define _SYS_CLK_SRC = 1 define _SYS_CLK_SRC = 0
define _OSC_FREQ_MULT = 10 define _OSC_FREQ_MULT = 1
define __PLL_CTL0_INIT_PARAM = $41 define __PLL_CTL0_INIT_PARAM = $40
define _zsl_g_clock_xdefine = 50000000 define _zsl_g_clock_xdefine = 50000000

View File

@ -68,7 +68,7 @@ $(AOBJS): %$(OBJEXT): %$(ASMEXT)
$(call ASSEMBLE, $<, $@) $(call ASSEMBLE, $<, $@)
$(COBJS) $(LINKOBJS): %$(OBJEXT): %.c $(COBJS) $(LINKOBJS): %$(OBJEXT): %.c
$(call COMPILE, `cygpath -w $<`, $@) $(call COMPILE, $<, $@)
libboard$(LIBEXT): $(OBJS) libboard$(LIBEXT): $(OBJS)
@( for obj in $(OBJS) ; do \ @( for obj in $(OBJS) ; do \

View File

@ -136,12 +136,12 @@ endef
define COMPILE define COMPILE
@#echo "CC: $1" @#echo "CC: $1"
@$(CC) $(CFLAGS) $1 @(wfile=`cygpath -w $1`; $(CC) $(CFLAGS) $$wfile)
endef endef
define ASSEMBLE define ASSEMBLE
@#echo "AS: $1" @#echo "AS: $1"
@$(AS) -c $(AFLAGS) $1 @(wfile=`cygpath -w $1`; $(AS) $(AFLAGS) $$wfile)
endef endef
define ARCHIVE define ARCHIVE

View File

@ -136,12 +136,12 @@ endef
define COMPILE define COMPILE
@#echo "CC: $1" @#echo "CC: $1"
@$(CC) $(CFLAGS) $1 @(wfile=`cygpath -w $1`; $(CC) $(CFLAGS) $$wfile)
endef eendef
define ASSEMBLE define ASSEMBLE
@#echo "AS: $1" @#echo "AS: $1"
@$(AS) -c $(AFLAGS) $1 @(wfile=`cygpath -w $1`; $(AS) $(AFLAGS) $$wfile)
endef endef
define ARCHIVE define ARCHIVE

View File

@ -61,7 +61,7 @@ $(AOBJS): %$(OBJEXT): %$(ASMEXT)
$(call ASSEMBLE, $<, $@) $(call ASSEMBLE, $<, $@)
$(COBJS) $(LINKOBJS): %$(OBJEXT): %.c $(COBJS) $(LINKOBJS): %$(OBJEXT): %.c
$(call COMPILE, `cygpath -w $<`, $@) $(call COMPILE, $<, $@)
libboard$(LIBEXT): $(OBJS) libboard$(LIBEXT): $(OBJS)
@( for obj in $(OBJS) ; do \ @( for obj in $(OBJS) ; do \

View File

@ -162,12 +162,12 @@ endef
define COMPILE define COMPILE
@#echo "CC: $1" @#echo "CC: $1"
@$(CC) $(CFLAGS) $1 @(wfile=`cygpath -w $1`; $(CC) $(CFLAGS) $$wfile)
endef endef
define ASSEMBLE define ASSEMBLE
@#echo "AS: $1" @#echo "AS: $1"
@$(AS) -c $(AFLAGS) $1 @(wfile=`cygpath -w $1`; $(AS) $(AFLAGS) $$wfile)
endef endef
define ARCHIVE define ARCHIVE

View File

@ -61,7 +61,7 @@ $(AOBJS): %$(OBJEXT): %$(ASMEXT)
$(call ASSEMBLE, $<, $@) $(call ASSEMBLE, $<, $@)
$(COBJS) $(LINKOBJS): %$(OBJEXT): %.c $(COBJS) $(LINKOBJS): %$(OBJEXT): %.c
$(call COMPILE, `cygpath -w $<`, $@) $(call COMPILE, $<, $@)
libboard$(LIBEXT): $(OBJS) libboard$(LIBEXT): $(OBJS)
@( for obj in $(OBJS) ; do \ @( for obj in $(OBJS) ; do \

View File

@ -162,12 +162,12 @@ endef
define COMPILE define COMPILE
@#echo "CC: $1" @#echo "CC: $1"
@$(CC) $(CFLAGS) $1 @(wfile=`cygpath -w $1`; $(CC) $(CFLAGS) $$wfile)
endef endef
define ASSEMBLE define ASSEMBLE
@#echo "AS: $1" @#echo "AS: $1"
@$(AS) -c $(AFLAGS) $1 @(wfile=`cygpath -w $1`; $(AS) $(AFLAGS) $$wfile)
endef endef
define ARCHIVE define ARCHIVE

View File

@ -61,7 +61,7 @@ $(AOBJS): %$(OBJEXT): %$(ASMEXT)
$(call ASSEMBLE, $<, $@) $(call ASSEMBLE, $<, $@)
$(COBJS) $(LINKOBJS): %$(OBJEXT): %.c $(COBJS) $(LINKOBJS): %$(OBJEXT): %.c
$(call COMPILE, `cygpath -w $<`, $@) $(call COMPILE, $<, $@)
libboard$(LIBEXT): $(OBJS) libboard$(LIBEXT): $(OBJS)
@( for obj in $(OBJS) ; do \ @( for obj in $(OBJS) ; do \