From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-it0-f67.google.com (mail-it0-f67.google.com [209.85.214.67]) by mail.openembedded.org (Postfix) with ESMTP id D4F3B76060 for ; Thu, 12 Jul 2018 17:03:03 +0000 (UTC) Received: by mail-it0-f67.google.com with SMTP id y124-v6so2483311itc.0 for ; Thu, 12 Jul 2018 10:03:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:cc:references:from:openpgp:autocrypt:message-id:date :user-agent:mime-version:in-reply-to; bh=2xzi5vNAk+M792uFqF8QSs+1J5DIVjGmxqfqxTZAlJM=; b=CxoTavRD/SwCFTg/J+xum24QS9E8R8rved4YqEdxXWwrO1aj8k4wtLiY5eCNvDgVA0 JnUNEhdgAo2KuewcsYKTlf8OA8CtozloiuIpeWiUuMmrl2VTuLbmNweYuZSc9RCGBVWq j1hApArW8G8nuLtqtYkoS434z1CtKppz1Jhn9H9a0n2KZuIhG2cfkS5h4goTGjBzH+XV qjA9uVnV4qI6wt8S5BQUh5QvPHhrEpjxY35NG4QF9Oze02zKOx+p9/3RQ438h/winyJn 0LH6R4qoe92y/iTdhd3yt+dURpKgYwj43R+B2M1s+OzWCR6qLp9QHjOxyT672x9+x++W 8J/g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:openpgp:autocrypt :message-id:date:user-agent:mime-version:in-reply-to; bh=2xzi5vNAk+M792uFqF8QSs+1J5DIVjGmxqfqxTZAlJM=; b=rewLofVOx85sMO0f4qJTCuhSENbtB4ENIgW487qpAAvO9PiGi69Obd2axrWLAWTboW ojXa5/tyn3HH+aEpxRGR/6z5CoQEBNh5PBfpwH1slmAU3Qvt7kzjg/p0p7mJ3d9jCj3/ jTK004n52G3FNZPWY7jWSlBGtDZm9xuq5Qnx/PH1YkN6xLYdM+OzvdOYZ7ofHcew4aGU O/6692EOtSzbe2h+VT0UOiYszpVO6MpPO9L8TB8oBbtP+LM+nL832SOrhEfeeqioIiwo sLkTDnmNgwjMohCH72/bfo5srXBwG6t08eDN7P+IRRX8KEB+vJwTazWvrEoQL9LPgDTG qdUA== X-Gm-Message-State: AOUpUlERYtMPWOkemXyviQFM6RR/2bph8vL3/0M7V+XrVAgYxUWdrmYe t/5TA5S0xolqTyRPYFcJE90gvLv2 X-Google-Smtp-Source: AAOMgpc2esge2KfwDrRLvb9zRnO7pH7YRHaqSjMUUQ/j8+u81ODOPV0YvfLZvL5ECrWYQS94J5cpew== X-Received: by 2002:a02:c50b:: with SMTP id s11-v6mr2306354jam.61.1531414984313; Thu, 12 Jul 2018 10:03:04 -0700 (PDT) Received: from ?IPv6:2620::2b10:e6:4878:c77d:126d:9c0? ([2620:0:2b10:e6:4878:c77d:126d:9c0]) by smtp.gmail.com with ESMTPSA id u12-v6sm1053651ita.1.2018.07.12.10.03.03 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 12 Jul 2018 10:03:03 -0700 (PDT) To: Bruce Ashfield , Richard Purdie References: <1531151586-30557-1-git-send-email-bruce.ashfield@windriver.com> <8e3f9ec13333061ecb0125e153df668abe8da1b9.camel@linuxfoundation.org> <47b99eac-867c-9cca-ac43-4d5a06760ed3@windriver.com> From: Khem Raj Openpgp: preference=signencrypt Autocrypt: addr=raj.khem@gmail.com; prefer-encrypt=mutual; keydata= xsDiBEqXaJERBACUvFofpD3FsxD9675wcPv+rzguIfsRWilrrpSZ61JHjLHwkUnmDLpLSdfv Zw2ZDXeaQbGU2thctxXTyYf6N1fY6P5Tww6mWKInuGU3yAv8Mg5p+Xd8itwOoVR41DOBkftV miO2G7FtXsnqonB6F43a2yvc+h9OwPRVxAFss5mSmwCglSXPWndN1Ka4M/hzt7g+FmeyEssD /1V/G8lLeAS9gQCNjS7jch+uHMFJuWgHzMXdw99e1ywlIkvXN77NPkW+FLVxKxNAHyWZZ3wO 4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k27shOdUvaiynep8OsVGqAzS seL4qZIJ5XzCcyV4KJCmwmdQzt5+ZylcVmeq6R4ob+d8JIDU0ELqdwxwIDiTj0cAAwUP/inN 3/r8IFDms4g5xafPrCw31o2jIYahkIfN0WVPWI5K/hFCo2PczPStzDcTsZx7mN2qwpGOe3Lz 9/0krZeksrz1ZIHNi5LTasuzXyFJbO05Y+eiHgV1rV7VVEipOrpV1496w112Y/0SZ/FhOfEm EA1TeDejy2sZiTOUW4gyzewbHMpE07d27F2qM2NfMMhKQCcvzr+N0VJmAOeATEivxPUHn+Dp X/NniBWOcWv++wHlxv0Xr63gsRKSt62eFKGjgF50hHD5lM31ziqycc42sbgcqAZ+rYFlb9k0 3JcKyq1XdVUSm+xcC2DMSstTI6iqFMGo6FnEO+gyE5VdceajbuZ1GOmJXJUCyYIdGuvCyIoK jTE9lcIYSEEDZQej5xdiGk9eUz0MPmZEUwSR/nLmmwjHDJi0prVvs9xqe5bvS3ddPAqepvZ5 UrisgtWD+TDI8ktkt5VLh3XsG9FuXUVAaahOvFMGiZtsioDXTorL4AfMeuA9f+yLwrCVQO3x mH/WA0Tgf/5gYB3t9KoHPjLBNruVOuQbAjubi0pvRAOUcMdBfmPofksK4uWS1zGtPWS7Uu1c suq7Hnb7vszlFYdbzeqjY81LSyxA0kcpgJxdLv9o7UuCEnHDZLPbHdQ83PmyyBKSI31AKe7R XlQNlB5grwH9o6uNtPbV7q/uRqmKq5EiwkkEGBECAAkFAkqXaJECGwwACgkQuwUzVZGdMxR1 VACcCkdaO3rb8/gRprldmAH6eR49eo4AnjD3h3aTwv/1bl+BAz1twmZmz8ul Message-ID: Date: Thu, 12 Jul 2018 11:02:58 -0600 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.13; rv:60.0) Gecko/20100101 Thunderbird/60.0 MIME-Version: 1.0 In-Reply-To: Cc: openembedded-core@lists.openembedded.org Subject: Re: [PATCH v2] kernel-devsrc: restructure for out of tree (and on target) module builds 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: Thu, 12 Jul 2018 17:03:04 -0000 X-Groupsio-MsgNum: 113446 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="ZpnjRXW3XZLLSAMhHjOpw9tDGU4o9ESgd" --ZpnjRXW3XZLLSAMhHjOpw9tDGU4o9ESgd Content-Type: multipart/mixed; boundary="kmlUv89gJDG2uQqFfEkf3kEOcl26LO32B"; protected-headers="v1" From: Khem Raj To: Bruce Ashfield , Richard Purdie Cc: openembedded-core@lists.openembedded.org Message-ID: Subject: Re: [OE-core] [PATCH v2] kernel-devsrc: restructure for out of tree (and on target) module builds References: <1531151586-30557-1-git-send-email-bruce.ashfield@windriver.com> <8e3f9ec13333061ecb0125e153df668abe8da1b9.camel@linuxfoundation.org> <47b99eac-867c-9cca-ac43-4d5a06760ed3@windriver.com> In-Reply-To: --kmlUv89gJDG2uQqFfEkf3kEOcl26LO32B Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: quoted-printable On 7/12/18 7:55 AM, Bruce Ashfield wrote: > On 2018-07-12 9:53 AM, Richard Purdie wrote: >> On Thu, 2018-07-12 at 09:49 -0400, Bruce Ashfield wrote: >>> On 2018-07-10 5:41 PM, Richard Purdie wrote: >>>> On Tue, 2018-07-10 at 12:38 -0400, Bruce Ashfield wrote: >>>>> On 07/10/2018 06:21 AM, Richard Purdie wrote: >>>>>> On Mon, 2018-07-09 at 11:53 -0400, Bruce Ashfield wrote: >>>>> >>>>> I'll try the other configs, but clearly I have something >>>>> different in >>>>> my x86-64 build. >>>>> >>>>> I can't run the self tests directly, but am copying the files >>>>> onto my >>>>> qemu session and running things myself: >>>>> >>>>> root@qemux86-64:/lib/modules/4.14.48-yocto-standard/build# make >>>>> ARCH=3Dx86 >>>>> scripts prepare >>>>> Makefile:950: "Cannot use CONFIG_STACK_VALIDATION=3Dy, please >>>>> install >>>>> libelf-dev, libelf-devel or elfutils-libelf-devel" >>>>> =C2=A0=C2=A0=C2=A0=C2=A0 CHK=C2=A0=C2=A0=C2=A0=C2=A0 scripts/mod/de= vicetable-offsets.h >>>>> =C2=A0=C2=A0=C2=A0=C2=A0 SYSTBL=C2=A0 arch/x86/include/generated/as= m/syscalls_32.h >>>>> =C2=A0=C2=A0=C2=A0=C2=A0 SYSHDR=C2=A0 arch/x86/include/generated/as= m/unistd_32_ia32.h >>>>> =C2=A0=C2=A0=C2=A0=C2=A0 SYSHDR=C2=A0 arch/x86/include/generated/as= m/unistd_64_x32.h >>>>> =C2=A0=C2=A0=C2=A0=C2=A0 SYSTBL=C2=A0 arch/x86/include/generated/as= m/syscalls_64.h >>>>> =C2=A0=C2=A0=C2=A0=C2=A0 SYSHDR=C2=A0 arch/x86/include/generated/ua= pi/asm/unistd_32.h >>>>> =C2=A0=C2=A0=C2=A0=C2=A0 SYSHDR=C2=A0 arch/x86/include/generated/ua= pi/asm/unistd_64.h >>>>> =C2=A0=C2=A0=C2=A0=C2=A0 SYSHDR=C2=A0 arch/x86/include/generated/ua= pi/asm/unistd_x32.h >>>>> =C2=A0=C2=A0=C2=A0=C2=A0 HOSTCC=C2=A0 arch/x86/tools/relocs_32.o >>>>> =C2=A0=C2=A0=C2=A0=C2=A0 HOSTCC=C2=A0 arch/x86/tools/relocs_64.o >>>>> =C2=A0=C2=A0=C2=A0=C2=A0 HOSTCC=C2=A0 arch/x86/tools/relocs_common.= o >>>>> =C2=A0=C2=A0=C2=A0=C2=A0 HOSTLD=C2=A0 arch/x86/tools/relocs >>>>> =C2=A0=C2=A0=C2=A0=C2=A0 CHK=C2=A0=C2=A0=C2=A0=C2=A0 include/config= /kernel.release >>>>> =C2=A0=C2=A0=C2=A0=C2=A0 CHK=C2=A0=C2=A0=C2=A0=C2=A0 include/genera= ted/uapi/linux/version.h >>>>> =C2=A0=C2=A0=C2=A0=C2=A0 CHK=C2=A0=C2=A0=C2=A0=C2=A0 include/genera= ted/utsrelease.h >>>>> Makefile:950: "Cannot use CONFIG_STACK_VALIDATION=3Dy, please >>>>> install >>>>> libelf-dev, libelf-devel or elfutils-libelf-devel" >>>>> >>>>> root@qemux86-64:/tmp# make >>>>> make -C /usr/src/kernel M=3D/tmp modules >>>>> make[1]: Entering directory '/lib/modules/4.14.48-yocto- >>>>> standard/build' >>>>> Makefile:950: "Cannot use CONFIG_STACK_VALIDATION=3Dy, please >>>>> install >>>>> libelf-dev, libelf-devel or elfutils-libelf-devel" >>>>> =C2=A0=C2=A0=C2=A0=C2=A0 Building modules, stage 2. >>>>> =C2=A0=C2=A0=C2=A0=C2=A0 MODPOST 1 modules >>>>> make[1]: Leaving directory '/lib/modules/4.14.48-yocto- >>>>> standard/build' >>>>> root@qemux86-64:/tmp# insmod hellomod.ko >>>>> [=C2=A0 419.211616] hellomod: loading out-of-tree module taints >>>>> kernel. >>>>> [=C2=A0 419.212586] Hello world! >>>>> >>>>> This is on the core-image-kernel-dev image, which is the one that >>>>> I created to test all this. >>>>> >>>>> What image is that using ? some sato sdk one ? >>>> >>>> We really need to find you a way to run these. The problem is the >>>> qemu >>>> graphics piece? You can't have a dummy vncserver or something to >>>> direct >>>> them at? >>>> >>>> The image is a core-image-sato-sdk... >>> >>> I was able to trigger the objtool issue with this image, looking at >>> fixing it and the other arches now. >> >> Since its image related, is it a missing package dependency? Just >> curious why its happening with some images but not your test ones... >=20 > It is. I have extra toolchain elements being installed in > core-image-kernel-dev > that hold things together (i.e. the kernel's objtool doesn't need to > be built). >=20 > The obvious fix is to just add an RDEPENDS, but I'm being stubborn > and trying to make it build on target, since the build of objtool from > the kernel source is showing me some sort of include path issue that > I'd like to sort out: >=20 > =C2=A0 CC /lib/modules/4.14.48-yocto-standard/build/tools/objtool/exec-= cmd.o > exec-cmd.c: In function 'get_pwd_cwd': > exec-cmd.c:49:4: error: implicit declaration of function 'strlcpy'; did= > you mean 'strncpy'? [-Werror=3Dimplicit-function-declaration] > =C2=A0=C2=A0=C2=A0 strlcpy(cwd, pwd, PATH_MAX); > =C2=A0=C2=A0=C2=A0 ^~~~~~~ > =C2=A0=C2=A0=C2=A0 strncpy > exec-cmd.c:49:4: error: nested extern declaration of 'strlcpy' > [-Werror=3Dnested-externs] > cc1: all warnings being treated as errors >=20 Kernel has this function defined in tools/include/linux/string.h so however it has it like this #if defined(__GLIBC__) && !defined(__UCLIBC__) extern size_t strlcpy(char *dest, const char *src, size_t size); #endif Which means it will not work for musl and we need to ensure that we use -D_GNU_SOURCE for it to be included from standard musl headers > Cheers, >=20 > Bruce >=20 >> >> Cheers, >> >> Richard >> >=20 --kmlUv89gJDG2uQqFfEkf3kEOcl26LO32B-- --ZpnjRXW3XZLLSAMhHjOpw9tDGU4o9ESgd Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- iF0EARECAB0WIQSPpVvapDR0rgZCCc27BTNVkZ0zFAUCW0eJwgAKCRC7BTNVkZ0z FLeOAJ436QheT1ivyh9+CNo8vPQquPxhUgCbB9clzLRpAoXEzOuUoZeLNfxZFhU= =m09g -----END PGP SIGNATURE----- --ZpnjRXW3XZLLSAMhHjOpw9tDGU4o9ESgd--