Skip to content

Makefile: build asm-generic before building scripts

Markus Mayer linux-devicetree 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest1 patch 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/1Makefile: build asm-generic before building scriptsMakefile+1 -10 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/1] Makefile: build asm-generic before building scripts

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