I succesfuly added and compiled Ncurses within petalinux but testing is still missing. I'm not good in creating patch files but it is so easy to do it manually, if anyone can create the patch file and upload it that will be so nice of him.
Here are the steps I did:
1- download the blackfin dist.
2- cd to lib
3- copy ncurses into petalinux-dest/lib
4- add the folloing lines in the make file in the lib directory(lin93-94):
dir_3_$(CONFIG_LIB_NCURSES_FORCE) += ncurses
dir_3_$(CONFIG_LIB_NCURSES) += ncurses
5- add the following in the same file(line 140):
$(ROOTDIR)/lib/ncurses/lib/*.a \
6- in the petalinux-dist add the following to the make file(line 45):
STAGEDIR = $(ROOTDIR)/staging
I don't know the use of the last directory (staging). After compilation it is created and all the Ncurses libs and bins are added to it. I think this directory should be replaced to be (ROMFS). If anyone knows the use of it please reply.
That's all folk.
Wait for testing