RFC Add 'make dtbs_install'
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v3 RFC Latest2 patches 0 repliesNew
- v2 RFC2 patches 0 repliesSuperseded
Patches in v3 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/2 | scripts: dtc: build fdtget for extracting properties from dtbsscripts/ scripts/ | +10 | 2 replies | |
| 2/2 | kbuild: dtbs_install: new make targetMakefile arch/ arch/ | +50 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v3 yet.
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}.dtbIdeally, 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