Return-Path: Received: from mail5.wrs.com (mail5.windriver.com [192.103.53.11]) by mail.openembedded.org (Postfix) with ESMTP id C596661523 for ; Tue, 18 Feb 2020 03:58:19 +0000 (UTC) Received: from ALA-HCA.corp.ad.wrs.com (ala-hca.corp.ad.wrs.com [147.11.189.40]) by mail5.wrs.com (8.15.2/8.15.2) with ESMTPS id 01I3vgIs019555 (version=TLSv1 cipher=AES256-SHA bits=256 verify=FAIL); Mon, 17 Feb 2020 19:57:52 -0800 Received: from [0.0.0.0] (147.11.103.217) by ALA-HCA.corp.ad.wrs.com (147.11.189.50) with Microsoft SMTP Server (TLS) id 14.3.468.0; Mon, 17 Feb 2020 19:57:31 -0800 To: Bruce Ashfield References: <1581991613-30949-1-git-send-email-li.zhou@windriver.com> From: zhou li Message-ID: <342f0a1b-aec2-932a-2a49-cd2b896d8822@windriver.com> Date: Tue, 18 Feb 2020 11:57:28 +0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.7.1 MIME-Version: 1.0 In-Reply-To: Cc: Patches and discussions about the oe-core layer Subject: Re: [PATCH] kernel-devsrc: fix missing generated files from the packet X-BeenThere: openembedded-core@lists.openembedded.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: Patches and discussions about the oe-core layer List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 18 Feb 2020 03:58:19 -0000 Content-Type: text/plain; charset="utf-8"; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US On 2/18/20 10:12 AM, Bruce Ashfield wrote: > On Mon, Feb 17, 2020 at 9:07 PM Li Zhou wrote: >> The file arch/arm/include/generated/asm/unistd-nr.h is needed by some >> external kernel module. Error occurs when building the module with >> the SDK. >> >> Add arch/${ARCH}/include/generated dir and files under it to >> kernel-devsrc package to solve this issue. >> >> Signed-off-by: Li Zhou >> --- >> meta/recipes-kernel/linux/kernel-devsrc.bb | 6 ++++++ >> 1 file changed, 6 insertions(+) >> >> diff --git a/meta/recipes-kernel/linux/kernel-devsrc.bb b/meta/recipes-kernel/linux/kernel-devsrc.bb >> index b6f2dbc..8621fe1 100644 >> --- a/meta/recipes-kernel/linux/kernel-devsrc.bb >> +++ b/meta/recipes-kernel/linux/kernel-devsrc.bb >> @@ -108,6 +108,12 @@ do_install() { >> fi >> >> cp -a include $kerneldir/build/include >> + >> + if [ -d arch/${ARCH}/include/generated ]; then >> + mkdir -p $kerneldir/build/arch/${ARCH}/include >> + cp -r arch/${ARCH}/include/generated $kerneldir/build/arch/${ARCH}/include >> + fi > This is just papering over the real problem. > > Anything that is generated, should be regenerated when the headers are > used/prepared. > > What is missing and/or why isn't that happening with this ? > > Bruce In some old version yocto, the file arch/arm/include/generated/asm/unistd-nr.h can be directly used from our sdk. So now it isn't permitted any more? And we should figure out how to generate it again when developing the external kernel modules? Thank you. > >> + >> ) >> >> # now grab the chunks from the source tree that we need >> -- >> 1.9.1 >> >> -- >> _______________________________________________ >> Openembedded-core mailing list >> Openembedded-core@lists.openembedded.org >> http://lists.openembedded.org/mailman/listinfo/openembedded-core > > -- Best Regards! Zhou Li Phone number: 86-10-84778511