kernel: relocate sources under device/soc/rockchip, simplify args Move kernel sources from kernel/linux/${KERNEL_VERSION} to device/soc/rockchip/kernel/linux/${KERNEL_VERSION}, drop the KERNEL_CONFIG / KERNEL_DTSNAME / KERNEL_IMAGE arguments from the BUILD.gn action (these are now derived from PRODUCT_NAME inside build_kernel.sh — only rk3588x0 is wired up for now), update build.sh to point at the relocated build_kernel.sh, and tighten the scripts: collapse execute_cmd's defensive argument handling, inline the boot-image pack error check, replace the per-line header banners with a compact dbg block, and switch the HDF copy/symlink loops to bash arrays. The rktools path also moves from rktools/bin/mkimage to device/soc/rockchip/rktools/bin/mkimage to match where the loader commit places the U-Boot toolchain. Change-Id: I225fd65b65d427384a04859b08a91bce8829d6ca
kernel: allow appending extra kernel config fragments Enable RT without editing the product switch in build_kernel.sh, by merging an extra kernel config fragment after the product config. KERNEL_CONFIG_EXTRA holds the name of the extra fragment. It is appended to KERNEL_CONFIG with a ',' and main() already replaces ',' with a space before invoking make, so the fragments are merged in order and the extra one overrides the product config. An empty value skips the extra fragment entirely. The default assignment stays commented out: # KERNEL_CONFIG_EXTRA="${KERNEL_CONFIG_EXTRA-rockchip_rt.config}" RT is therefore off by default and only gets enabled once that line is uncommented by hand. The fragment can also be selected from the environment without touching the script, e.g. KERNEL_CONFIG_EXTRA=my.config ./build.sh --product-name rk3588x0 ... Document the variable and the opt-in default in README_zh.md. Change-Id: I47bb9d7b2246be4cf1e03a0648de0bdcae51804e
kernel: ship stdarg.h shim for bounds_checking_function The kernel build runs with -nostdinc, so the toolchain's <stdarg.h> is not reachable. bounds_checking_function's securec.h unconditionally #includes <stdarg.h>, which fails to resolve and aborts the build at securec.h:27. Add a tiny __builtin_*-based stdarg.h and copy it into third_party/bounds_checking_function/include/stdarg.h from build_kernel.sh whenever bounds_checking_function is staged into the kernel tree. Change-Id: I19fbae1246ae571544ba03183894672f9351d6d3
kernel: relocate sources under device/soc/rockchip, simplify args Move kernel sources from kernel/linux/${KERNEL_VERSION} to device/soc/rockchip/kernel/linux/${KERNEL_VERSION}, drop the KERNEL_CONFIG / KERNEL_DTSNAME / KERNEL_IMAGE arguments from the BUILD.gn action (these are now derived from PRODUCT_NAME inside build_kernel.sh — only rk3588x0 is wired up for now), update build.sh to point at the relocated build_kernel.sh, and tighten the scripts: collapse execute_cmd's defensive argument handling, inline the boot-image pack error check, replace the per-line header banners with a compact dbg block, and switch the HDF copy/symlink loops to bash arrays. The rktools path also moves from rktools/bin/mkimage to device/soc/rockchip/rktools/bin/mkimage to match where the loader commit places the U-Boot toolchain. Change-Id: I225fd65b65d427384a04859b08a91bce8829d6ca
kernel: allow appending extra kernel config fragments Enable RT without editing the product switch in build_kernel.sh, by merging an extra kernel config fragment after the product config. KERNEL_CONFIG_EXTRA holds the name of the extra fragment. It is appended to KERNEL_CONFIG with a ',' and main() already replaces ',' with a space before invoking make, so the fragments are merged in order and the extra one overrides the product config. An empty value skips the extra fragment entirely. The default assignment stays commented out: # KERNEL_CONFIG_EXTRA="${KERNEL_CONFIG_EXTRA-rockchip_rt.config}" RT is therefore off by default and only gets enabled once that line is uncommented by hand. The fragment can also be selected from the environment without touching the script, e.g. KERNEL_CONFIG_EXTRA=my.config ./build.sh --product-name rk3588x0 ... Document the variable and the opt-in default in README_zh.md. Change-Id: I47bb9d7b2246be4cf1e03a0648de0bdcae51804e
13 days ago
Rockchip Linux Kernel Build
仓库说明
本目录是 OpenHarmony 项目中针对 Rockchip SoC 的 Linux 内核构建脚本仓库,支持 rk3588x0、rk3576_evb1 等芯片平台。