-
firmware
-
firmware-nonfree
-
bluez-firmware
-
pi-bluetooth
-
raspberrypi-sys-mods
-
kernel
-
raspberrypi-kernel
其中,kernel 仓库是我编译的树莓派内核,raspberrypi-kernel 仓库是内核源码
rootfs-sample- 构建镜像需要的一些配置文件
yum.repos.d- 构建镜像时需要的 repo 配置
-
build-image.sh- 用于构建精简树莓派镜像
-
build-kernel.sh- 用于编译收集树莓派精简内核
克隆仓库
git clone https://isrc.iscas.ac.cn/gitlab/summer2020/students/proj-2021101.git openeuler-raspberrypi-ws执行 build-image.sh
cd openeuler-raspberrypi-ws
./build-image.sh
手动清理构建过程中的产物
./build-image.sh clean
编辑 shrink_defconfig
#!/bin/bash
cd raspberrypi-kernel/
export ARCH=arm64
export CROSS_COMPILE=aarch64-linux-gnu-
export target=shrink_defconfig
make ${target}
make menuconfig
\cp .config arch/${ARCH}/configs/${target}编译 shrink_defconfig 并收集编译产物至 kernel 目录,记录大小作为 git commit message
./build-kernel.sh