Return-Path: Received: from mail1.windriver.com (mail1.windriver.com [147.11.146.13]) by mail.openembedded.org (Postfix) with ESMTP id BA76A7E465 for ; Fri, 24 May 2019 05:53:50 +0000 (UTC) Received: from ALA-HCB.corp.ad.wrs.com ([147.11.189.41]) by mail1.windriver.com (8.15.2/8.15.1) with ESMTPS id x4O5rpL0027254 (version=TLSv1 cipher=AES128-SHA bits=128 verify=FAIL) for ; Thu, 23 May 2019 22:53:51 -0700 (PDT) Received: from pek-lpggp3.wrs.com (128.224.153.76) by ALA-HCB.corp.ad.wrs.com (147.11.189.41) with Microsoft SMTP Server id 14.3.439.0; Thu, 23 May 2019 22:53:34 -0700 From: Liwei Song To: openembedded-devel Date: Fri, 24 May 2019 01:52:17 -0400 Message-ID: <20190524055217.36249-1-liwei.song@windriver.com> X-Mailer: git-send-email 2.18.1 MIME-Version: 1.0 Subject: [meta-oe][PATCH 1/1] turbostat: copy bits.h from kernel to turbostat X-BeenThere: openembedded-devel@lists.openembedded.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: Using the OpenEmbedded metadata to build Distributions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 24 May 2019 05:53:50 -0000 Content-Type: text/plain because bits.h was included in msr-index.h, so we also need copy bits.h from kernel to tubostat to aviod compile error. Signed-off-by: Liwei Song --- meta-oe/recipes-kernel/turbostat/turbostat_3.4.bb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/meta-oe/recipes-kernel/turbostat/turbostat_3.4.bb b/meta-oe/recipes-kernel/turbostat/turbostat_3.4.bb index dc3e78febb11..3f25e6f004db 100644 --- a/meta-oe/recipes-kernel/turbostat/turbostat_3.4.bb +++ b/meta-oe/recipes-kernel/turbostat/turbostat_3.4.bb @@ -41,11 +41,13 @@ do_configure_prepend() { mkdir -p ${S} cp -r ${STAGING_KERNEL_DIR}/arch/x86/include/asm/msr-index.h ${S} cp -r ${STAGING_KERNEL_DIR}/arch/x86/include/asm/intel-family.h ${S} + cp -r ${STAGING_KERNEL_DIR}/include/linux/bits.h ${S} cp -r ${STAGING_KERNEL_DIR}/tools/power/x86/turbostat/* ${S} cp -r ${WORKDIR}/COPYING ${S} } do_compile() { + sed -i 's##"bits.h"#' msr-index.h sed -i 's#MSRHEADER#"msr-index.h"#' turbostat.c sed -i 's#INTEL_FAMILY_HEADER#"intel-family.h"#' turbostat.c sed -i 's#\$(CC) \$(CFLAGS) \$< -o \$(BUILD_OUTPUT)/\$@#\$(CC) \$(CFLAGS) \$(LDFLAGS) \$< -o \$(BUILD_OUTPUT)/\$@#' Makefile -- 2.18.1