码迷,mamicode.com
首页 > 其他好文 > 详细

wireless_tools交叉编译

时间:2019-06-17 20:42:45      阅读:153      评论:0      收藏:0      [点我收藏+]

标签:prefix   e431   lib   index   arm-linux   The   color   cal   nbsp   

wireless_tools交叉编译:

1.cd wireless_tools.29

2.mkdir __install

3.git df Makefile

 1 diff --git a/Makefile b/Makefile
 2 index 2e43159..fcb0c30 100644
 3 --- a/Makefile
 4 +++ b/Makefile
 5 @@ -4,14 +4,15 @@
 6 
 7  ## Installation directory. By default, go in /usr/local.
 8  ## Distributions should probably use /, but they probably know better...
 9 +PREFIX = /home/trl/Documents/wifi_ap/wireless_tools.29/__install
10  ifndef PREFIX
11    PREFIX = /usr/local
12  endif
13 
14  ## Compiler to use (modify this for cross compile).
15 -CC = gcc
16 +CC = arm-linux-gnueabihf-gcc
17  ## Other tools you need to modify for cross compile (static lib only).
18 -AR = ar
19 +AR = arm-linux-gnueabihf-ar
20  RANLIB = ranlib
21 
22  ## Uncomment this to build tools using static version of the library.

4.make

5.make install

 

wireless_tools交叉编译

标签:prefix   e431   lib   index   arm-linux   The   color   cal   nbsp   

原文地址:https://www.cnblogs.com/live-program/p/11041714.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!