1 ======== How to build ash/hexdump/xzcat for aarch64 ========
2 #How to get ash.config/hexdump.cofig/xzcat.config
3 #ARCH=arm64 CROSS_COMPILE=aarch64-linux- make allnoconfig
4 #ARCH=arm64 CROSS_COMPILE=aarch64-linux- make menuconfig
5 #----> enable static build
7 #get aarch64_xzcat.config
9 tar xf busybox-1.32.0.tar.bz2
11 copy aarch64_xzcat.config as .config
12 ARCH=arm64 CROSS_COMPILE=aarch64-linux- make
13 rename ./busybox to xzcat
17 ======== How to build ash/hexdump/xzcat for x86_64 ==========
18 #How to get ash.config/hexdump.cofig/xzcat.config
21 #----> enable static build
23 #get x86_64_xzcat.config
26 tar xf busybox-1.32.0.tar.bz2
28 copy x86_64_xzcat.config as .config
30 CC = gcc -specs "/usr/local/musl/lib/musl-gcc.specs"
31 MODFLAGS = -DMODULE -specs "/usr/local/musl/lib/musl-gcc.specs"
33 rename ./busybox to xzcat