From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by yocto-www.yoctoproject.org (Postfix, from userid 118) id 60B70E014FD; Fri, 20 Jul 2018 10:27:29 -0700 (PDT) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on yocto-www.yoctoproject.org X-Spam-Level: X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, FREEMAIL_FROM, RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.1 X-Spam-HAM-Report: * 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider * (max.oss.09[at]gmail.com) * -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at http://www.dnswl.org/, no * trust * [209.85.208.42 listed in list.dnswl.org] * -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% * [score: 0.0000] * -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's * domain * 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily * valid * -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature Received: from mail-ed1-f42.google.com (mail-ed1-f42.google.com [209.85.208.42]) by yocto-www.yoctoproject.org (Postfix) with ESMTP id 9EBA8E00B6D for ; Fri, 20 Jul 2018 10:27:28 -0700 (PDT) Received: by mail-ed1-f42.google.com with SMTP id h1-v6so10347871eds.1 for ; Fri, 20 Jul 2018 10:27:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=message-id:subject:from:to:cc:date:in-reply-to:references :mime-version:content-transfer-encoding; bh=yTqlb17f1RkIhtW6DsIf3+LQMTn0rPwCL8dFxz8aIk4=; b=TCl+/3VE/VIIqw5eeWyO31d3TIKnCIRlNYcYugKaAVuH/Puy7on3+VXRk9ukivXXVh rSIy92Q2uFUN6J/UOl+vqBvyqC6Y783wWbWpnA2HX+VDyROmKI7SllMuUgwZFZ0OArE5 CnaAp+lwc4oMxooiTWY0oeCjpvGYA2Sip1fwKjuYXOkFikvG3VEBCNY9IudvYTM2fARu gMt7OR1K1V25v7nulHa28TI/tbrqdjwHzTrn9BLGrsyz+PX10YohiNeBv5Ym9ZUhUxv5 lT+F8vrt07rroiO2dMPn3WbfzSL5cFF22ZHK5fLZ+3lmpbWJS104r7KkaMuMbjB1mrCl ku4w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:message-id:subject:from:to:cc:date:in-reply-to :references:mime-version:content-transfer-encoding; bh=yTqlb17f1RkIhtW6DsIf3+LQMTn0rPwCL8dFxz8aIk4=; b=OYINw3xzENlo4ggR6kmqYKLu69823a+Gb+E7ZcM5T+50ITHMgKW4NNXB1B0Hnffvpg TmzwnEfwGGFYavAbLmdEn9GyBSEuMk4O7VE/uhr5wC1soOjFXohLPWa4E7MQNv8MQSE9 A2703Am67mRk1A9chqN2cd3LK+YG0t3TFqWAz3F36mo0Cspdwda9BCt/xQvxFwn/AfOE s8jr254rWgyEuV63tzX+nW285avo+VGANvD2CDAx0z3NiyxIomj/dh2yHXytL83YTUB0 IE7hYYrz7GLX5mgplOeeJ+yfGKNzrIiJvPT0Nky5wbHLXvi7hr74PIKBdSu6ZIr9my9M c95Q== X-Gm-Message-State: AOUpUlG9V71/3GVCqB8tqUU4/Rf3OzcWAusr5nl0HZ+1V40L0lC8Qiba A6dxfiAkh/pD6DRejTFAcqE= X-Google-Smtp-Source: AAOMgpdnp19cj6pCh5iWlCU+JzfzPaKFvwzvTYZ69s0pVZ5mkibN0eXU4IJ64HNBhAN33DuTM/xtcw== X-Received: by 2002:a50:8f66:: with SMTP id 93-v6mr3379412edy.248.1532107647603; Fri, 20 Jul 2018 10:27:27 -0700 (PDT) Received: from Saturn.local.all ([195.48.14.138]) by smtp.gmail.com with ESMTPSA id a13-v6sm3377726edf.84.2018.07.20.10.27.26 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 20 Jul 2018 10:27:26 -0700 (PDT) Message-ID: <1532107646.3165.9.camel@gmail.com> From: Max Krummenacher To: Fabio Berton Date: Fri, 20 Jul 2018 19:27:26 +0200 In-Reply-To: References: <20180716123136.42280-1-max.krummenacher@toradex.com> X-Mailer: Evolution 3.26.6 Mime-Version: 1.0 Cc: meta-freescale Mailing List , Max Krummenacher , stefan.agner@toradex.com Subject: Re: [PATCH 1/2] imx-base.inc: remove bootloader from image_wks depends X-BeenThere: meta-freescale@yoctoproject.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: Usage and development list for the meta-fsl-* layers List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 20 Jul 2018 17:27:29 -0000 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit Hi Fabio Am Donnerstag, den 19.07.2018, 17:46 -0300 schrieb Fabio Berton: > Hi Max! > > The virtual/bootloader it's in WKS_FILE_DEPENDS because the default > WKS_FILE is imx-uboot-bootpart.wks, this wks uses u-boot.imx file to > create final image. My bad. I thought that in my use case U-Boot is also installed and that it got build and deployed through some other magical dependency and I failed to check its existence after removing virtual/bootloader. > > I saw this "File exists ibfdt.h" error and I'll try to figure out > other solution, because e.g. imx6ullevk need to use dtc-145 and need > to has virtual/bootloader. > > For machines the use sdimage-bootpart.wks and dtc-145, like > apalis-imx6, we can add WKS_FILE_DEPENDS = "" in machine config file. Eventually for one image type or another these machines also like to have U-Boot built and deployed, so that would only be a shortterm solution. I looked a bit into this and found two possible ways out: - change the dtc-145 recipe so that only a renamed dtc binary gets installed, none of the libraries, none of the headers. Thus in the image_wic tasks there is no clash between files. Then the U-Boot Makefile must be patched to use the renamed dtc binary. - Drop the dtc-145 recipe and build the dtc as part of the U-Boot build. That way the dtc 1.4.5. is contained in the U-Boot work area and never gets deployed. Seems a bit hackish to me though. I could prepare a proper patch for one or the other. What you think? Regards Max > > Thanks! > > Fabio Berton > > On Mon, Jul 16, 2018 at 9:31 AM, Max Krummenacher wrote: > > With virtual/bootloader in WKS_FILE_DEPENDS the recipe-sysroot(-native) gets > > populated by whatever virtual/bootloader and its DEPENDS put in the > > recipe-sysroot. > > > > For U-Boot recipes which work around the fdt.h et. al. include mess by using > > the older dtc-145-native this results in a error during do_image_wic on first > > build. A second run of bitbake succeeds, but has some releated warning in > > the log.do_image_wks logfile. > > > > > Exception: FileExistsError: [Errno 17] File exists: '...tmp/sysroots-components/x86_64/dtc- > > > 145-native/usr/include/libfdt.h' -> '.../tmp/work/apalis_imx6-fslc-linux-gnueabi/core-image- > > > minimal/1.0-r0/recipe-sysroot-native/usr/include/libfdt.h' > > > ERROR: core-image-minimal-1.0-r0 do_image_wic: Function failed: extend_recipe_sysroot > > > $ find tmp/sysroots-components/ -name libfdt.h > > > tmp/sysroots-components/x86_64/dtc-145-native/usr/include/libfdt.h > > > tmp/sysroots-components/x86_64/dtc-native/usr/include/libfdt.h > > > > Signed-off-by: Max Krummenacher > > --- > > conf/machine/include/imx-base.inc | 2 -- > > 1 file changed, 2 deletions(-) > > > > diff --git a/conf/machine/include/imx-base.inc b/conf/machine/include/imx-base.inc > > index bd2a2aa3..24058c45 100644 > > --- a/conf/machine/include/imx-base.inc > > +++ b/conf/machine/include/imx-base.inc > > @@ -285,8 +285,6 @@ IMAGE_BOOT_FILES ?= " \ > > > > ### wic default support > > WKS_FILE_DEPENDS ?= " \ > > - virtual/bootloader \ > > - \ > > e2fsprogs-native \ > > bmap-tools-native \ > > " > > -- > > 2.13.6 > > > > -- > > _______________________________________________ > > meta-freescale mailing list > > meta-freescale@yoctoproject.org > > https://lists.yoctoproject.org/listinfo/meta-freescale