wireless_tools交叉编译

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

猜你喜欢

转载自www.cnblogs.com/live-program/p/11041714.html
今日推荐