Skip to content

RFC Add 'make dtbs_install'

Jason Cooper linux-arm-kernel linux-devicetree linux-kbuild lkml 2 versions New

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 RFC Latest2 patches 0 repliesNew
  2. v2 RFC2 patches 0 repliesSuperseded

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2scripts: dtc: build fdtget for extracting properties from dtbsscripts/dtc/.gitignore scripts/dtc/Makefile+10 -22 replies
2/2kbuild: dtbs_install: new make targetMakefile arch/arm/Makefile arch/arm/boot/installdtbs.sh+50 -10 replies

Reviews trailers per patch

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

Read the v3 thread

Cover letter [RFC PATCH V3 0/2] Add 'make dtbs_install'

Detailed changelog can be found in each patch.

The kernel community never created a 'dtbs_install' make target for properly handling the build output of the kernel's devicetree files. Currently, the dtb files are simply their source file, s/dts/dtb/. Users have recently begun retrieving these files from inside the kernel tree. Any change to the dts filenames breaks the scripts of those users.

Before this gets too far along, we'd like to create a standardized method of installing the dtb files for users to find and use. In addition, some vendors have done a diligent job naming their devicetree source files appropriately and we don't want to break their setups.

This patch series solves both problems by creating a dtbs_install make target which calls arch/arm/boot/installdtbs.sh. If /sbin/installdtbs or ~/bin/installdtbs is present, they will be run instead of the default behavior.

The default action is to install a given dtb to

  /lib/modules/${kernel_version}/devicetree/${board_compatible}.dtb

Ideally, the devicetree file should be independent of the kernel version, however, we aren't there yet. So, while the devicetree files live in the kernel source tree, we'll install them as above. Once they are in their own repository, this install target can be removed, and users can adjust their workflow to getting the dtbs from a new location.

Jason Cooper (2):
scripts: dtc: build fdtget for extracting properties from dtbs
kbuild: dtbs_install: new make target

 Makefile                     |  3 ++-
 arch/arm/Makefile            |  4 ++++
 arch/arm/boot/installdtbs.sh | 44 ++++++++++++++++++++++++++++++++++++++++++++
 scripts/dtc/.gitignore       |  2 +-
 scripts/dtc/Makefile         | 10 +++++++++-
 5 files changed, 60 insertions(+), 3 deletions(-)
 create mode 100644 arch/arm/boot/installdtbs.sh
Signature · 1 line
1.8.4.3