嵌入式板子tftpd交叉编译及使用

1.下载ftfp

tftp-hpa源码下载地址:https://mirrors.edge.kernel.org/pub/software/network/tftp/

我们选用的是0.4的版本

wget https://mirrors.edge.kernel.org/pub/software/network/tftp/tftp-hpa-0.40.tar.gz
tar xvf
tftp-hpa-0.40.tar.gz
cd tftp-hpa-0.40.tar.gz

 

 2.交叉编译

mkdir build
./configure --host=arm-none-linux-gnueabi --prefix=/root/projects/tftp2/tftp-hpa-0.40/build/

 

 

 

CC = gcc 改为
CC = arm-linux-gnueabihf-gcc

 

 

 

make 

 

 

 

至此.编译完成

 

感谢 https://www.cnblogs.com/live-program/p/11599087.html

 

posted @ 2021-07-02 15:51  流逝的轻风  阅读(973)  评论(0编辑  收藏  举报