Received: by 2002:a25:e74b:0:0:0:0:0 with SMTP id e72csp111226ybh; Tue, 21 Jul 2020 17:54:10 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyNVO9UJ+n42P/Koxqsj9zdSaVBk4va1eVb1VFvd2khsbNJ8vmaHG9sHIsxVN1iS1uO9Iux X-Received: by 2002:aa7:c714:: with SMTP id i20mr28832759edq.215.1595379249972; Tue, 21 Jul 2020 17:54:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1595379249; cv=none; d=google.com; s=arc-20160816; b=02QgYYauro1SCH3lrvTinCWpoQMvyl4mACkqPXLhKjUFnegoif0Ewc9tvfEwVABrwF Yfzwa1zjLw0LewP6o/RxXRKiiN6/FybM/tsESus8NWP63wmj8T6jABSgXuuHOIoFVvUY A+xXCSOLq/3YxDILFiZKRF1KlRhu4XD0+jrkbzLE9o5Hm5SMPM9bH2hIWAYpWhqBFEl2 2ixZEjEWO0hQHdPfXwBcxQvM6i2To9wW9m+oZ90eDAsmK24CVr2IopEgAXEItusofAKq 2x9GV4Jn+m65Yga7jFClhIQV6YZIp3HEypX62SXQp8mPgKtp8e2Iv+fRUX2RLWliVdmZ yQpA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature:dkim-filter; bh=Rmd1MC2JpL/qsW+KJXGi9dvkbRqpp67uHrZvlZPqnnQ=; b=xrRzE8OWU3p4NVJzsYDKiHuvkG7oskHORGm6RWfNS3KYyBJ4nDwK8I/eZBgUBwk18j lWPDuThOQRUtSkCxtQdfK7lnWjK/6+VPZGGYK3nnXqhXFDyLLxFVBML1cXbUGkMbdafz j51nBxBwqXAkBG1yrvhWk68l4J93pd8oP/mPzK1xdqUd8TTTqpqWKJAJ0e1pqez39i0x 5GrKO1D5umqthuoyrfZJhjBBu9/lhjYUhlf2a090Pqvuy/HlHu4aQUcW1TNU8Hz3XM+o Zqp331JT8zHJb8Qs6g/s21z8QNJBMIX+usISYEPdIIT8kPaO37ia5dbxDSZjp4o7STKO 13Cg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=fCuRqEo5; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id rn4si14466653ejb.569.2020.07.21.17.53.36; Tue, 21 Jul 2020 17:54:09 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=fCuRqEo5; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731449AbgGVAxZ (ORCPT + 99 others); Tue, 21 Jul 2020 20:53:25 -0400 Received: from conssluserg-04.nifty.com ([210.131.2.83]:27157 "EHLO conssluserg-04.nifty.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726468AbgGVAxZ (ORCPT ); Tue, 21 Jul 2020 20:53:25 -0400 Received: from mail-vs1-f53.google.com (mail-vs1-f53.google.com [209.85.217.53]) (authenticated) by conssluserg-04.nifty.com with ESMTP id 06M0qpba008736 for ; Wed, 22 Jul 2020 09:52:51 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conssluserg-04.nifty.com 06M0qpba008736 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1595379172; bh=Rmd1MC2JpL/qsW+KJXGi9dvkbRqpp67uHrZvlZPqnnQ=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=fCuRqEo5R7tsBimcwvosMA5r7zoLn83XhCF9ewj70bkCQZBAFUtqrMHXymUzdkY4C sADO9gy+Kb+fylP06zV5KB40k47skKqunCe6Q+qMhwGhAt0jUefZzOPe4CfoAnj07q HiyNY9od0hNuVoYOuy33uo9GXO5SMqk0VBtdDi+6dR4NSv1Q9fcoCv6RqFwD3zimuk +rsYlUwpNvPMy/NABxgXh+mETbiAkpSfhaPgzXaTTteHMkts/ALYis51vqfz7oei3y lSk586KJ4N4dG0Qcbvih+fNd8BVO2BaXGFJQnHBQxHs9b4G+MLEBSKOBSRBW/YLu3u Vcq2JUC4F5VHg== X-Nifty-SrcIP: [209.85.217.53] Received: by mail-vs1-f53.google.com with SMTP id s20so257989vsq.5 for ; Tue, 21 Jul 2020 17:52:51 -0700 (PDT) X-Gm-Message-State: AOAM533trHN1d/YLRFdYkW6ZJHEyArMLaHNGf5CJE2piuwwZbjqK2YSG idcWtn6NsFPW992JlzButa0pLrO20/zRNiqO8FI= X-Received: by 2002:a67:694d:: with SMTP id e74mr23382636vsc.155.1595379170484; Tue, 21 Jul 2020 17:52:50 -0700 (PDT) MIME-Version: 1.0 References: <20200721093748.26627-1-jcmvbkbc@gmail.com> In-Reply-To: <20200721093748.26627-1-jcmvbkbc@gmail.com> From: Masahiro Yamada Date: Wed, 22 Jul 2020 09:52:14 +0900 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v2] xtensa: add boot subdirectories targets to extra-y To: Max Filippov Cc: "open list:TENSILICA XTENSA PORT (xtensa)" , Chris Zankel , Linux Kernel Mailing List Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Jul 21, 2020 at 6:37 PM Max Filippov wrote: > > The commit 8fe87a92f262 ("kbuild: always create directories of targets") > exposed an issue in the xtensa makefiles that results in the following > build error in a clean directory: > scripts/Makefile.build:374: arch/xtensa/boot/boot-elf/boot.lds] Error 1 > arch/xtensa/boot/boot-elf/bootstrap.S:21: fatal error: > opening dependency file arch/xtensa/boot/boot-elf/.bootstrap.o.d: > No such file or directory > > Intermediate targets in arch/xtensa/boot/boot-elf don't get into > 'targets' and build directory is not created for them. > Add boot.lds and bootstrap.o to extra-y in subdirectories of > arch/xtensa/boot. > > Cc: Masahiro Yamada > Signed-off-by: Max Filippov > --- > Changes v1->v2: > - update boot-redboot/Makefile in the same manner as boot-elf/Makefile. Oops, sorry and thanks. But, we need to fix this in the kbuild tree to retain the bisectability. I will insert the following before the offending commit. https://patchwork.kernel.org/patch/11676883/ I used 'targets' instead of 'extra-y' because they are built on demand while building the final boot image. > arch/xtensa/boot/boot-elf/Makefile | 1 + > arch/xtensa/boot/boot-redboot/Makefile | 1 + > 2 files changed, 2 insertions(+) > > diff --git a/arch/xtensa/boot/boot-elf/Makefile b/arch/xtensa/boot/boot-elf/Makefile > index 12ae1e91cb75..ad341c0fff15 100644 > --- a/arch/xtensa/boot/boot-elf/Makefile > +++ b/arch/xtensa/boot/boot-elf/Makefile > @@ -15,6 +15,7 @@ export CPPFLAGS_boot.lds += -P -C > export KBUILD_AFLAGS += -mtext-section-literals > > boot-y := bootstrap.o > +extra-y := boot.lds $(boot-y) > > OBJS := $(addprefix $(obj)/,$(boot-y)) > > diff --git a/arch/xtensa/boot/boot-redboot/Makefile b/arch/xtensa/boot/boot-redboot/Makefile > index 8632473ad319..022a76a2282a 100644 > --- a/arch/xtensa/boot/boot-redboot/Makefile > +++ b/arch/xtensa/boot/boot-redboot/Makefile > @@ -13,6 +13,7 @@ endif > LD_ARGS = -T $(srctree)/$(obj)/boot.ld > > boot-y := bootstrap.o > +extra-y := $(boot-y) > > OBJS := $(addprefix $(obj)/,$(boot-y)) > LIBS := arch/xtensa/boot/lib/lib.a arch/xtensa/lib/lib.a > -- > 2.20.1 > -- Best Regards Masahiro Yamada