Skip to content

V3 Add ability to link device blob(s) into vmlinux

[email protected] linux-arch linux-devicetree linuxppc-dev lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest4 patches 4 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4of: Add support for linking device tree blobs into vmlinuxDocumentation/kbuild/makefiles.txt include/asm-generic/vmlinux.lds.h scripts/Makefile.lib+49 -22 replies
2/4x86/of: Add building device tree blob(s) into image.arch/x86/platform/ce4100/Makefile+10 -01 reply
3/4of/powerpc: Use generic rule to build dtb'sarch/powerpc/boot/Makefile+3 -50 replies
4/4microblaze/of: Use generic rule to build dtb'sarch/microblaze/boot/Makefile+3 -90 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/4] V3 Add ability to link device blob(s) into vmlinux

From: Dirk Brandewie <[email protected]>

This patch set adds the ability to link device tree blobs into vmlinux.

Patch 1 implements the changes to include/asm-generic/vmlinux.lds.h and adds a generic rule for generating DTB objects to be linked vmlinux.

Patch 2 implements linking a DTB into an x86 image.

Patch 3-4 move {powerpc,microblaze}/boot/Makefile to use the dtc rule in patch 1.

This patch set has been tested on x86.

Powerpc and Microblaze have been compile tested with and without patch 3 and 4 applied.

Changes from V1:

Documentation added for dtc command in Makefile.lib to Documentation/kbuild/makefiles.txt
Separate DTB_ALIGNMENT define removed.
FORCE removed from dtc rule.
Removed hardcoded path to dts files from dtc command. Moved %.dtb: %.dts rule to arch specific makefiles.

Patch for adding kernel command line option to pass in dtb_compat string dropped from this set will be submitted seperately.

Changes from V2:

Rule to create assembly wrapper for blob changed to use Sam Ravnborgs suggested implementation.

Rules in architecture specific Makefiles changed to use the cmd function instead of the if_changed function.

Dirk Brandewie (4):
of: Add support for linking device tree blobs into vmlinux x86/of: Add building device tree blob(s) into image. of/powerpc: Use generic rule to build dtb's microblaze/of: Use generic rule to build dtb's

 Documentation/kbuild/makefiles.txt |   15 +++++++++++++++
 arch/microblaze/boot/Makefile      |   12 +++---------
 arch/powerpc/boot/Makefile         |    8 +++-----
 arch/x86/platform/ce4100/Makefile  |   10 ++++++++++
 include/asm-generic/vmlinux.lds.h  |   13 +++++++++++--
 scripts/Makefile.lib               |   23 +++++++++++++++++++++++
 6 files changed, 65 insertions(+), 16 deletions(-)
Signature · 1 line
1.7.2.3