build.txt 972 Bytes
Newer Older
1
2
3
4
5
6
7
8
9
10
11
======== How to build ash/hexdump/xzcat for aarch64 ======== 
#How to get ash.config/hexdump.cofig/xzcat.config
#ARCH=arm64 CROSS_COMPILE=aarch64-linux- make allnoconfig
#ARCH=arm64 CROSS_COMPILE=aarch64-linux- make menuconfig 
#----> enable static build
#----> enable xzcat
#get aarch64_xzcat.config

tar xf busybox-1.32.0.tar.bz2
cd busybox-1.32.0
copy aarch64_xzcat.config as .config
longpanda's avatar
longpanda committed
12
ARCH=arm64 CROSS_COMPILE=aarch64-linux- make 
13
rename ./busybox to xzcat
longpanda's avatar
longpanda committed
14
15
16



17
18
19
20
21
22
23
======== How to build ash/hexdump/xzcat for x86_64 ==========
#How to get ash.config/hexdump.cofig/xzcat.config
#make allnoconfig
#make menuconfig 
#----> enable static build
#----> enable xzcat
#get x86_64_xzcat.config
longpanda's avatar
longpanda committed
24
25


26
27
28
29
30
31
32
33
tar xf busybox-1.32.0.tar.bz2
cd busybox-1.32.0
copy x86_64_xzcat.config as .config
modify Makefile
CC		= gcc -specs "/usr/local/musl/lib/musl-gcc.specs"
MODFLAGS	= -DMODULE -specs "/usr/local/musl/lib/musl-gcc.specs"
make
rename ./busybox to xzcat
longpanda's avatar
longpanda committed
34
35
36