Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp430695imu; Fri, 7 Dec 2018 03:30:51 -0800 (PST) X-Google-Smtp-Source: AFSGD/VTS425KzanW5hrvJ2Sff4Alz02gpKGFc+9kpREIuOwXSNtQgrM7TL4crz0RXtqR5aiyOV9 X-Received: by 2002:a62:2547:: with SMTP id l68mr1842978pfl.131.1544182251482; Fri, 07 Dec 2018 03:30:51 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1544182251; cv=none; d=google.com; s=arc-20160816; b=AOqePoJorqxQXOcfYhyVDlQyJ0QP0Bi/Db/npxtzrt+BlCoLJEOWN8qIfypFqxrXeb zmtI0X3mSzEJqaM5uYyinhC/BTGoBfRRZg7z2Wfd+x08tGnKwhvO2csaauHoNF40v7Lz 3QV6zjOReEjmaLEscWcLpXOa7VdXhDrnSub5hsZZErj3PKs+GNFax6HmNudA2TSAyvKG NbYQbl0XZavDNBMKZcZjgcKgg/8qqVbQnN1jpwsgXYkg0aBPQK9AZS9xhVnYRkmZnt7j vWWO7y/cuGxwfmVkM4kueaqrfeyL+1PLtsjIwxQAz5lQN9a+p1+xCLmIedeUYKwLzg3c 9tMg== 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=iwC6A0NVZNWbnbBOzBmPCo0htFjf2vbG4IkovKJfXtA=; b=fv9/HkosKn8K3DgMhLz+R+NF9hbEO5HdwdM/L6amy0Yn1Z7MtH8W+qme9qKTYZEChA iSRS9DHfKqRgU4hSwgRpgf9JnFTuIxD9RIUKEvW5Fd45b0w/ZzefpyNY8OFgmhgD0S2g xxZhRHeTh15SGH/W87U1i33BqZGP9HJg5XdvG7TbcjT2nG1DHb4j7z2layglVZ4fLOCr tAcan0WlH3xFYrD6PvrDSc0BC9jVxXr78Z003B66wYevp6XjVMksta8SqGhG8vYx1myj 2g/TlHp+6KORKXwaHwI4JmSkf61EHvHZ14RzCtx+K4X3BKOO9Vuh0ZuGszCg8VuQ2uPt tCBA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b="EG2x/bkN"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v25si2933905pfg.135.2018.12.07.03.30.35; Fri, 07 Dec 2018 03:30:51 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b="EG2x/bkN"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726073AbeLGL36 (ORCPT + 99 others); Fri, 7 Dec 2018 06:29:58 -0500 Received: from conssluserg-02.nifty.com ([210.131.2.81]:36695 "EHLO conssluserg-02.nifty.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725992AbeLGL35 (ORCPT ); Fri, 7 Dec 2018 06:29:57 -0500 Received: from mail-vs1-f52.google.com (mail-vs1-f52.google.com [209.85.217.52]) (authenticated) by conssluserg-02.nifty.com with ESMTP id wB7BTlSH028832; Fri, 7 Dec 2018 20:29:48 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conssluserg-02.nifty.com wB7BTlSH028832 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1544182188; bh=iwC6A0NVZNWbnbBOzBmPCo0htFjf2vbG4IkovKJfXtA=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=EG2x/bkNlp/Fiz75DHImk0iw2bsYvbNH92UU3YpmtZ8NcziAeLZE2yGL+1uhh0Exv VYe9vcD+Ls3hIWm5QVyda9ppAiS0yNlpfo83NIxC+39Vr3HNLYXwitavKqPqrHyvZS A1Q5Emo7prGJ5cr6x9TNm3DVpDm41VPBxC2yHeLDpKE9VXnL9XnlPfB9EbpyKCTUeD 0/lAb3ro5tvfxQFABM5UBEReeBbIxPS1iJJlRNjLNH2iT4cgyuOaIaOG9C/fdXXoFv Nt5wkBAZ0NBeEppXHI6vZN5oOGUOo0gay+efA9dfz83aD+071YvRhM1RlFeC3RM2K8 YIQhhyaDsGveA== X-Nifty-SrcIP: [209.85.217.52] Received: by mail-vs1-f52.google.com with SMTP id p74so2259256vsc.0; Fri, 07 Dec 2018 03:29:48 -0800 (PST) X-Gm-Message-State: AA+aEWZSbJKHFgR/PQ8rekRFgmJ7QRbroSwz5n4w2SUJHVvSbu7I18aX KIyn95SoTVXsAvNXvzK038UHpoeHQIaDAtWVY1s= X-Received: by 2002:a67:485:: with SMTP id 127mr758418vse.54.1544182187164; Fri, 07 Dec 2018 03:29:47 -0800 (PST) MIME-Version: 1.0 References: <1543823457-32478-1-git-send-email-yamada.masahiro@socionext.com> <19c7bdab-8df8-f7c6-7921-9a4d43dbca64@monstr.eu> In-Reply-To: <19c7bdab-8df8-f7c6-7921-9a4d43dbca64@monstr.eu> From: Masahiro Yamada Date: Fri, 7 Dec 2018 20:29:11 +0900 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH 0/7] microblaze: fix various problems in building boot images To: Michal Simek Cc: Linux Kbuild mailing list , DTML , Linux Kernel Mailing List , Rob Herring , Mark Rutland , Michal Simek 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 Thu, Dec 6, 2018 at 11:55 PM Michal Simek wrote: > > On 03. 12. 18 8:50, Masahiro Yamada wrote: > > This patch set fixes various issues in microblaze Makefiles. > > > > BTW, "simpleImage.
" works like a phony target to generate the > > following four images, where the first three are just aliases. > > > > - arch/microblaze/boot/simpleImage.
: > > identical to arch/microblaze/boot/linux.bin > > > > - arch/microblaze/boot/simpleImage.
.unstrip: > > identical to vmlinux > > > > - arch/microblaze/boot/simpleImage.
.ub: > > identical to arch/microblaze/boot/linux.bin.ub > > > > - arch/microblaze/boot/simpleImage.
.strip: > > stripped vmlinux > > > > I am not sure how much useful those copies are, > > but, I tried my best to keep the same behavior. > > > > IMHO, I guess DTB=
would be more sensible, > > but it is up to Michal. > > > > > > > > Masahiro Yamada (7): > > microblaze: fix cleaning of boot images > > microblaze: adjust the help to the real behavior > > microblaze: move "... is ready" message to arch/microblaze/Makefile > > microblaze: fix multiple bugs in arch/microblaze/boot/Makefile > > microblaze: add linux.bin* and simpleImage.* to PHONY > > microblaze: fix race condition in building boot images > > microblaze: remove the unneeded code just in case file copy fails > > > > arch/microblaze/Makefile | 14 +++++++++----- > > arch/microblaze/boot/Makefile | 33 +++++++++++++++++---------------- > > arch/microblaze/boot/dts/Makefile | 5 +---- > > 3 files changed, 27 insertions(+), 25 deletions(-) > > > > One more thing I have in my mind for a while is that will be good to > configure kernel build flags from DT and completely get rid of these > symbols. > > XILINX_MICROBLAZE0_USE_MSR_INSTR > XILINX_MICROBLAZE0_USE_PCMP_INSTR > XILINX_MICROBLAZE0_USE_BARREL > XILINX_MICROBLAZE0_USE_DIV > XILINX_MICROBLAZE0_USE_HW_MUL > XILINX_MICROBLAZE0_USE_FPU > > It means setup CPUFLAGS based on extracting that values from DT that it > all the time match the hardware. > It will also simplify all the CPUFLAGS logic which is in > arch/microblaze/Makefile. > > Do you have any idea how this can be done? I have no idea. Parsing DTS with sed or something would be possible, but ugly. In my opinion, the kernel should be multi platform image, in other words, it is the least common denominator of supported platforms. So, the kernel should enable all features that may or may not be used depending on platform. I do not know if this works for MB. -- Best Regards Masahiro Yamada