Hello,
thanks for posting the patches! Unfortunately I can not apply the patches. create-this-bsp works, but patching the libraries always results in the error-code bellow (e.g. when trying to patch the interniche library. same problem with TSE lib ). Any ideas about the reasons?
thanks a lot,
Frank
--- Quote Start ---
[NiosII EDS]$ ./create-this-lib
Copying library sources from installation tree...
................................................................................
................................................................................
...................................................
create-this-lib: Running "nios2-lib-generate-makefile --bsp-dir ../bsp --lib-dir
. --lib-name superloop_iniche --src-rdir ./iniche/ --public-inc-dir ./iniche/i
nc --public-inc-dir ./iniche/src/h --public-inc-dir ./iniche/src/h/nios2 --publi
c-inc-dir ./iniche/src/nios2 --set LIB_CFLAGS_DEFINED_SYMBOLS -DSUPERLOOP -DALT_
INICHE -DALTERA_TRIPLE_SPEED_MAC --set LIB_CFLAGS_OPTIMIZATION -O0 "
INFO: nios2-lib-generate-makefile --bsp-dir ../bsp --lib-dir . --lib-name superl
oop_iniche --src-rdir ./iniche/ --public-inc-dir ./iniche/inc --public-inc-dir .
/iniche/src/h --public-inc-dir ./iniche/src/h/nios2 --public-inc-dir ./iniche/sr
c/nios2 --set LIB_CFLAGS_DEFINED_SYMBOLS -DSUPERLOOP -DALT_INICHE -DALTERA_TRIPL
E_SPEED_MAC --set LIB_CFLAGS_OPTIMIZATION -O0
INFO: Generating library makefile
FINE: Generated file ".\Makefile"
FINE: Generated file ".\
public.mk"
INFO: Library makefile generated
patching file ../iniche/src/h/nios2/ipport.h
Hunk# 1 FAILED at 1.
1 out of 1 hunk FAILED -- saving rejects to file ../iniche/src/h/nios2/ipport.h.
rej
patching file ../iniche/src/h/sockvar.h
patching file ../iniche/src/nios2/targnios.c
Hunk# 1 FAILED at 1.
1 out of 1 hunk FAILED -- saving rejects to file ../iniche/src/nios2/targnios.c.
rej
patching file ../iniche/src/tftp/tftpcli.c
Hunk# 1 FAILED at 1.
1 out of 1 hunk FAILED -- saving rejects to file ../iniche/src/tftp/
tftpcli.c.re j
patching file ../iniche/src/tftp/tftpsrv.c
patching file ../iniche/src/tftp/tftputil.c
patching file ../iniche/src/allports/timeouts.c
create-this-lib: Running make
Info: Building ../bsp/
make --no-print-directory -C ../bsp/
[BSP build complete]
Info: Compiling iniche/src/allports/allports.c to obj/iniche/src/allports/allpor
ts.o
nios2-elf-gcc -xc -MP -MMD -c -Iiniche/inc/ -Iiniche/src/h/ -Iiniche/src/h/nios2
/ -Iiniche/src/nios2/ -I../bsp/ -I../bsp//drivers/inc -I../bsp//HAL/inc -DSYSTE
M_BUS_WIDTH=32 -D__hal__ -pipe -DALT_NO_INSTRUCTION_EMULATION -DALT_SINGLE_THREA
DED -DSUPERLOOP -DALT_INICHE -DALTERA_TRIPLE_SPEED_MAC -O0 -g -Wall -mno-hw-
div -mhw-mul -mhw-mulx -o obj/iniche/src/allports/allports.o iniche/src/allport
s/allports.c
In file included from iniche/src/allports/allports.c:26:
iniche/src/h/nios2/ipport.h:506:22: includes.h: No such file or directory
In file included from iniche/src/h/nios2/ipport.h:507,
from iniche/src/allports/allports.c:26:
iniche/src/h/tk_crnos.h:115: error: syntax error before '*' token
iniche/src/h/tk_crnos.h:115: warning: type defaults to `int' in declaration of `
rcvdq_sem_ptr'
iniche/src/h/tk_crnos.h:115: warning: data definition has no type or storage cla
ss
In file included from iniche/src/allports/allports.c:77:
iniche/src/allports/../nios2/osport.h:25:22: includes.h: No such file or directo
ry
make: *** [obj/iniche/src/allports/allports.o] Error 1
--- Quote End ---