linux kernel配置编译内核
配置编译器路径
export PATH=XXX/XXX/bin:$PATH
编译armv7平台
make ARCH=arm CROSS_COMPILE=arm-linux-gnueabi- ?multi_v7_defconfig
make ARCH=arm CROSS_COMPILE=arm-linux-gnueabi- ?menuconfig
make ARCH=arm CROSS_COMPILE=arm-linux-gnueabi- ?all -j32
编译aarch64平台
make ARCH=arm64 CROSS_COMPILE=aarch64-linux-gnu- defconfig
make ARCH=arm64 CROSS_COMPILE=aarch64-linux-gnu- menuconfig
make ARCH=arm64 CROSS_COMPILE=aarch64-linux-gnu- all -j32?
musl交叉编译alsa 下载toolchains
https://musl.cc/#binaries
下载lib-alsa
https://www.alsa-project.org/files/pub/lib/
编译构建 ?
CFLAGS=-O2 CC=/xxx/xxx/arm-linux-musleabi-cross/bin/arm-linux-musleabi-gcc ./configure --host=arm-linux LDFLAGS=--static --build=x86_64-linux-gnu
make ARCH=arm CROSS_COMPILE=arm-linux-musleabi-
|