Received: by 2002:a05:6a10:413:0:0:0:0 with SMTP id 19csp2155518pxp; Sun, 13 Mar 2022 10:12:49 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyGAN/XtaMn3Ic7ozIOSRQepJs8Vw+pftxE7bfOWyGk35+jgwk6d4FCadUabCsMVJQ1bDKe X-Received: by 2002:a63:e5e:0:b0:380:d345:589d with SMTP id 30-20020a630e5e000000b00380d345589dmr16889433pgo.453.1647191568913; Sun, 13 Mar 2022 10:12:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1647191568; cv=none; d=google.com; s=arc-20160816; b=m289W6z5jl55aacFDVmfBF2POnZQLgCf5K7onC3+O5FBjR/SPNZ74EVBEc47f3j6lH b/60ibO58KiNmHSiBvnJ6AL6F5Wx8dMQDlG3cXa0C9wQ+xLElFP5fHamA9Lzh+gQiDfa POEuHgUL9K1muokdT6JMnZPaNrOnnK1vfZ3GxORBp20jlOVXxJ5vYj7qWyX7QYmy0zDp c0WRJp79YtXg3pI/Ug3HUkKW1XXtyuAqZ6sEgCHbZ2BCqRYNlbk88qrCJRpD/zl6DLef uCU0ZQpOwaSXCHwWwsZtbnbCKqnnx6KSqJb1yR84r/gsV/S+dmbqyey70UgCPr1ia00m sJRw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature:dkim-filter; bh=cl5EZIZji6pwKaRvzWqBIuMA6UDOCMDjUF+UkD+yEIQ=; b=xRxULOGN3Co3x2Z/zRc1pF9ViEjioc9zNlOttrJBsLqAau/F0LdOBSft/+FcgS4BRv +FQaJ/ne/+NZIuh4XjKMPujN3W6G/rKJewqr8A6FCsNU+VHymsgPfHFyS2s/kmtLVrqa NoNs2xBQ6d7jjynNF1vKev4n8Sex5J1EaLJWzlLjRZLtFW27ea2q03hIbwzbcyqFAJRN tRm7nYihGLEDMwk/OtM/MD1jcpCPZgGg9oI1OshfozvG9RCPcy7uJ0z75JFdCUgDK+EC yPPviU/bOfUvgKTb7353ELhieCltGKcRhJMP3Jie1LY4NgjKGWrIlavzUoQ8XU85UBSn wZfQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b="H0/1e5Ug"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id a18-20020a170902ecd200b00151c34a07b8si14551345plh.520.2022.03.13.10.12.36; Sun, 13 Mar 2022 10:12:48 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b="H0/1e5Ug"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 S233270AbiCMQh0 (ORCPT + 99 others); Sun, 13 Mar 2022 12:37:26 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50012 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229657AbiCMQh0 (ORCPT ); Sun, 13 Mar 2022 12:37:26 -0400 Received: from conssluserg-05.nifty.com (conssluserg-05.nifty.com [210.131.2.90]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0C91F2C11F for ; Sun, 13 Mar 2022 09:36:17 -0700 (PDT) Received: from mail-pg1-f182.google.com (mail-pg1-f182.google.com [209.85.215.182]) (authenticated) by conssluserg-05.nifty.com with ESMTP id 22DGZfZD007647 for ; Mon, 14 Mar 2022 01:35:42 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conssluserg-05.nifty.com 22DGZfZD007647 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1647189342; bh=cl5EZIZji6pwKaRvzWqBIuMA6UDOCMDjUF+UkD+yEIQ=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=H0/1e5UgD8xsh3QuBpExc4ri+FtKfT3TGYWernbeRHC/JgULZvblrkXGqv0C4q4JB AvohwxzJeAtHzzkc6HyiyAWYG4qFNl0j+y2f7+M8/CYhHDJpIG2ww1h87s5veE3mZ6 IPYXWm4vFohSzCSLIIPULQH0V89ZRtv6yDexyj1N6uCSeWZzFTzh4x6w8MpK4GWcpo aJ5aiLaLqcZjHxTyssCJaUb+flKEWfXBIPRw38eXWQJNs+vj8Q+hYCRzFYJSJZ1CU0 FWErU+6ZE6sse/4jKuzzQqtRzP79RB0aXxsqJrdMcUnEJNMR775Ujb9C1k6BWWofZk iO0IZAhc8lA7w== X-Nifty-SrcIP: [209.85.215.182] Received: by mail-pg1-f182.google.com with SMTP id c11so11750507pgu.11 for ; Sun, 13 Mar 2022 09:35:42 -0700 (PDT) X-Gm-Message-State: AOAM532iQ2NSV3/1wIrWdz+cAsEwjzrzoKahxb2MsILMwLYf3m2qTL0d 4Jf35VcYDYj8zvAf54gOLH5xq4PM0J5r7cz4nAs= X-Received: by 2002:a63:ce04:0:b0:381:3e22:4e74 with SMTP id y4-20020a63ce04000000b003813e224e74mr380242pgf.352.1647189341167; Sun, 13 Mar 2022 09:35:41 -0700 (PDT) MIME-Version: 1.0 References: <20211030175258.1716178-1-masahiroy@kernel.org> In-Reply-To: From: Masahiro Yamada Date: Mon, 14 Mar 2022 01:35:04 +0900 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH] ARM: decompressor: do not copy source files while building To: "Russell King (Oracle)" Cc: patches@arm.linux.org.uk, linux-arm-kernel , Linux Kernel Mailing List Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-1.2 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_SOFTFAIL, T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Mar 11, 2022 at 9:07 PM Russell King (Oracle) wrote: > > On Sun, Oct 31, 2021 at 02:52:58AM +0900, Masahiro Yamada wrote: > > As commit 7ae4a78daacf ("ARM: 8969/1: decompressor: simplify libfdt > > builds") stated, copying source files during the build time may not > > end up with as clean code as expected. > > > > Do similar for the other library files for further cleanups of the > > Makefile and .gitignore. > > > > Signed-off-by: Masahiro Yamada > > Hi, > > I am now seeing the following every time I run a build: > > GEN Makefile > CALL .../linux-rmk/scripts/atomic/check-atomics.sh > CALL .../linux-rmk/scripts/checksyscalls.sh > CHK include/generated/compile.h > Kernel: arch/arm/boot/Image is ready > AS arch/arm/boot/compressed/lib1funcs.o > AS arch/arm/boot/compressed/ashldi3.o > AS arch/arm/boot/compressed/bswapsdi2.o > LD arch/arm/boot/compressed/vmlinux > OBJCOPY arch/arm/boot/zImage > Kernel: arch/arm/boot/zImage is ready > > In other words, those three objects are always rebuilt even though > they haven't changed. > > I've tried removing the arch/arm/boot/compressed directory in the > build tree, but that doesn't make any difference. > > Running with V=2 shows: > > AS arch/arm/boot/compressed/lib1funcs.o - due to lib1funcs.o not in $(tar > gets) > AS arch/arm/boot/compressed/ashldi3.o - due to ashldi3.o not in $(targets) > AS arch/arm/boot/compressed/bswapsdi2.o - due to bswapsdi2.o not in $(targets) > > It looks to me like: > OBJS += lib1funcs.o ashldi3.o bswapsdi2.o > > in your patch should have been added before: > > targets := vmlinux vmlinux.lds piggy_data piggy.o \ > head.o $(OBJS) > > Please confirm. Sorry for my late reply. Yes, you are right. OBJS += lib1funcs.o ashldi3.o bswapsdi2.o should come before the 'targets' assignment. -- Best Regards Masahiro Yamada