C_INCLUDES must be under the source or output directories:

本文介绍了一个编译过程中遇到的问题及解决方案。主要问题是由于使用了绝对路径导致编译失败,通过调整为相对路径后,问题得到解决。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

https://blog.csdn.net/cigogo/article/details/94546032

参考了上面大神的链接,发现设置了绝对路径,改为相对路径后,正常。

编译报错:

LOCAL_PATH := $(abspath $(call my-dir)/../..)

CAMX_CHICDK_PATH := $(abspath $(LOCAL_PATH)/../../..)

正常:

LOCAL_PATH := $(call my-dir)/../..

CAMX_CHICDK_PATH := $(LOCAL_PATH)/../../..

### Orange Pi 5 Kernel Trimming Method For the purpose of trimming the kernel on an Orange Pi 5, one must engage with several specific steps that involve configuring and compiling a custom kernel. The procedure requires obtaining the appropriate sources for the Orange Pi 5's Linux kernel version. To begin, it is essential to ensure all necessary development tools are installed on the system where compilation will occur. This includes packages such as `build-essential`, `libncurses-dev`, `bison`, `flex`, among others which can be acquired through package managers like apt-get or yum depending upon the distribution being utilized[^1]. Once these prerequisites have been met, downloading the official source code repository from GitHub dedicated specifically towards Allwinner ARM processors (which power devices including but not limited to the Orange Pi series) becomes imperative. After cloning this repository locally: ```bash git clone https://github.com/orangepi-xunlong/u-boot-sunxi.git cd u-boot-sunxi/ ``` After setting up the environment properly by sourcing relevant scripts provided within the cloned directory structure, configuration options need adjustment according to personal requirements using menuconfig tool: ```bash make orangepi_defconfig make menuconfig ``` Herein lies the opportunity for performing actual 'trimming' – disabling unnecessary drivers/modules/features thereby reducing overall size while potentially improving performance characteristics too. Once satisfied with selections made inside menuconfig interface save changes before proceeding further. Finally compile the modified kernel image along with device tree blobs ensuring compatibility remains intact between hardware components present onboard alongside newly built software layer atop them: ```bash make -j$(nproc) ``` Upon successful completion of build process generated files should reside under output directories specified during setup phase earlier; ready now either flash directly onto eMMC/SD card attached physically via bootloader mechanisms supported natively across most single board computers similar ilk OrangPi Zero Plus2 H5/H6 etc., transfer over network interfaces available remotely connectable instances running elsewhere altogether different locations geographically dispersed widely apart yet interconnected virtually seamless manner thanks modern networking technologies employed extensively today’s world wide web infrastructure spanning globally interlinked nodes communicating effortlessly regardless physical distances separating individual entities involved interactions taking place therein.
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值