]> glassweightruler.freedombox.rocks Git - Ventoy.git/blob - BUSYBOX/build.txt
Rebuild some binaries with musl-libc to avoid virus false positive (issue #660)
[Ventoy.git] / BUSYBOX / build.txt
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
6 #----> enable xzcat
7 #get aarch64_xzcat.config
8
9 tar xf busybox-1.32.0.tar.bz2
10 cd busybox-1.32.0
11 copy aarch64_xzcat.config as .config
12 ARCH=arm64 CROSS_COMPILE=aarch64-linux- make
13 rename ./busybox to xzcat
14
15
16
17 ======== How to build ash/hexdump/xzcat for x86_64 ==========
18 #How to get ash.config/hexdump.cofig/xzcat.config
19 #make allnoconfig
20 #make menuconfig
21 #----> enable static build
22 #----> enable xzcat
23 #get x86_64_xzcat.config
24
25
26 tar xf busybox-1.32.0.tar.bz2
27 cd busybox-1.32.0
28 copy x86_64_xzcat.config as .config
29 modify Makefile
30 CC = gcc -specs "/usr/local/musl/lib/musl-gcc.specs"
31 MODFLAGS = -DMODULE -specs "/usr/local/musl/lib/musl-gcc.specs"
32 make
33 rename ./busybox to xzcat
34
35
36