From b9c7f168c4013ef3ebf731e37db7317b8747eb3a Mon Sep 17 00:00:00 2001 From: maminjie Date: Fri, 17 Dec 2021 10:19:31 +0800 Subject: [PATCH] busybox: use SYSROOT/usr/include/tirpc first Configure CFLAGS in the bb file, using the rpc/rpc.h header file in tirpc under sysroot. Configure CONFIG_EXTRA_CFLAGS="-I/usr/include/tirpc" in .config, using the rpc/rpc.h header file under the host machine /usr/include/tirpc. If CFLAGS is not configured, when the host does not have tirpc header files, the compilation will fail. CFLAGS and CONFIG_EXTRA_CFLAGS are compatible, where CFLAGS is first, and the tirpc header file under sysroot is used first. Signed-off-by: maminjie --- meta-openeuler/recipes-core/busybox/busybox_1.33.1.bb | 1 + 1 file changed, 1 insertion(+) diff --git a/meta-openeuler/recipes-core/busybox/busybox_1.33.1.bb b/meta-openeuler/recipes-core/busybox/busybox_1.33.1.bb index c04d71af9ca..afcb1162477 100644 --- a/meta-openeuler/recipes-core/busybox/busybox_1.33.1.bb +++ b/meta-openeuler/recipes-core/busybox/busybox_1.33.1.bb @@ -12,6 +12,7 @@ PR = "r1" DEPENDS += "virtual/libc" DEPENDS += "libtirpc" +CFLAGS += "-I${STAGING_INCDIR}/tirpc" #get arch info inherit kernel-arch -- Gitee