devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: "Markus Mayer" <mmayer-dY08KVG/lbpWk0Htik3J/w@public.gmane.org>
To: devicetree-discuss-uLR06cmDAlY/bJ5BZ2RsiQ@public.gmane.org
Subject: [PATCH 0/1] Makefile: build asm-generic before building scripts
Date: Tue, 19 Mar 2013 17:27:33 -0700	[thread overview]
Message-ID: <1363739254-9425-1-git-send-email-mmayer@broadcom.com> (raw)

Hi all,

Last week I came across the issue that building "dtbs" for ARM in a recent
(3.9-rcX) kernel fails if it's done in a clean tree, right after "make
xxx_defconfig". I am quite certain that this used to work in 3.8. The error is
"asm/types.h not found". The problem does not happen if "zImage" is built first
and "dtbs" is built second.

Eventually, I found that the root cause seems to be that "asm-generic" is not
a dependency for "dtbs" or, rather, "scripts" in the top-level makefile.
Building target "zImage" will implicitly build "asm-generic", and subsequent
"dtbs" builds will therefore succeed.

The proposed patch adds "asm-generic" as dependency of the "scripts" target.
I don't know if the proposed solution is the best possible. It does, however,
work for me.

Regards,
-Markus

             reply	other threads:[~2013-03-20  0:27 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-03-20  0:27 Markus Mayer [this message]
     [not found] ` <1363739254-9425-1-git-send-email-mmayer-dY08KVG/lbpWk0Htik3J/w@public.gmane.org>
2013-03-20  0:27   ` [PATCH 1/1] Makefile: build asm-generic before building scripts Markus Mayer

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1363739254-9425-1-git-send-email-mmayer@broadcom.com \
    --to=mmayer-dy08kvg/lbpwk0htik3j/w@public.gmane.org \
    --cc=devicetree-discuss-uLR06cmDAlY/bJ5BZ2RsiQ@public.gmane.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).