diff --git a/zh-cn/device-dev/porting/porting-linux-kernel.md b/zh-cn/device-dev/porting/porting-linux-kernel.md index f6a70a86789003859076cf0bc2c7e89d87244b65..81d561b37f77a458c5e40540b19234e91aeecc8f 100644 --- a/zh-cn/device-dev/porting/porting-linux-kernel.md +++ b/zh-cn/device-dev/porting/porting-linux-kernel.md @@ -128,6 +128,12 @@ source "drivers/staging/hilog/Kconfig" source "drivers/staging/hievent/Kconfig" ``` +在三方内核的drivers/staging/Makefile文件内增加如下代码: +``` +obj-$(CONFIG_HILOG) += hilog/ +obj-$(CONFIG_HIEVENT) += hievent/ +``` + 在内核config项中打开对应的CONFIG控制宏:CONFIG_HILOG和CONFIG_HIEVENT。 具体日志使用说明请参见:[Hilog_lite组件介绍](https://gitee.com/openharmony/hiviewdfx_hilog_lite/blob/master/README_zh.md)。