Ujwal wrote:
Hi Ujwal, If u want to cross compile only for stand alone application, then just do mb-gcc hello.c But I think u want to make uClinux executable file of hello world program, right ? Then u need to do out of tree cross compilation in linux. Write a make file with 3 targets clean,all & romfs. Copy both Makefile & c file into a directory which u will create parallel to uClinux-dist. Then go to this directory , -make clean -make all -make romfs, which will put ur application into uClinux-dist/romfs/bin. Now go to uClinux-dist folder -make image So now ur image contains /bin/hello. Run this fine, that's it.. -- Sweta Bhatt Embedded Engineer, eInfochips Ltd. +919898087805eInfochips Business Disclaimer: This message may contain confidential, proprietary or legally Privileged information. In case you are not the original intended Recipient of the message, you must not, directly or indirectly, use, Disclose, distribute, print, or copy any part of this message and you are requested to delete it and inform the sender. Any views expressed in this message are those of the individual sender unless otherwise stated. Nothing contained in this message shall be construed as an offer or acceptance of any offer by eInfochips Limited and/or eInfochips Inc("eInfochips") unless sent with that express intent and with due authority of eInfochips. eInfochips has taken enough precautions to prevent the spread of viruses. However the company accepts no liability for any damage caused by any virus transmitted by this email. ___________________________ microblaze-uclinux mailing list microblaze-uclinux@xxxxxxxxxxxxxx Project Home Page : http://www.itee.uq.edu.au/~jwilliams/mblaze-uclinux Mailing List Archive : http://www.itee.uq.edu.au/~listarch/microblaze-uclinux/ |