kernel-build.git, branch master Kernel build scripts kbuild: Add -m to DT_CHECKER_FLAGS 2022-01-11T09:43:19+00:00 Laurent Pinchart laurent.pinchart@ideasonboard.com 2022-01-11T09:42:19+00:00 332b3abdd5a0c4adc7f32f7e306bfadf5d3905a1 The -m option to the DT checks catches additional errors. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
The -m option to the DT checks catches additional errors.

Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
kbuild: Remove unused options from help text 2021-09-19T23:37:13+00:00 Laurent Pinchart laurent.pinchart@ideasonboard.com 2021-09-19T23:36:03+00:00 687ea37bd60fa62a51937775e64ad96470bd959c The --no-dt, --no-image and --no-modules options have incorrectly been added to the help text. Remove them. Fixes: e7385853e45b ("kbuild: Add options to selectively compile kernel components") Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
The --no-dt, --no-image and --no-modules options have incorrectly been
added to the help text. Remove them.

Fixes: e7385853e45b ("kbuild: Add options to selectively compile kernel components")
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
kbuild: Add an option to run DT bindings checks 2021-09-19T23:37:13+00:00 Laurent Pinchart laurent.pinchart@ideasonboard.com 2021-09-19T23:34:28+00:00 56a0cc493597f8fccb99c91738b1746892d90427 Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
kbuild: Allow adding out-of-tree DTBs to image 2021-09-19T23:37:13+00:00 Laurent Pinchart laurent.pinchart@ideasonboard.com 2021-09-19T23:31:43+00:00 43764c01cd8ed103fa6e15a61030e8005757f2d2 It's useful to build a FIT image with DTBs stored outside of the kernel tree, for instance to test vendor-supplied DTBs. Support this by allowing DTB paths to be absolute. Compilation of the DTB is skipped in that case. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
It's useful to build a FIT image with DTBs stored outside of the kernel
tree, for instance to test vendor-supplied DTBs. Support this by
allowing DTB paths to be absolute. Compilation of the DTB is skipped in
that case.

Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
kbuild: Support directory names in DTB destinations 2021-06-16T21:39:25+00:00 Laurent Pinchart laurent.pinchart@ideasonboard.com 2021-06-16T21:36:38+00:00 1b9133e66ab3a75e5b81ca6746a5fb9d608b800a The kbuild.sh script strips the directory name from the DTB destination. This is correct when no destination is specified explicitly, as we want to strip the directory name of the source for arm64 platforms where DT sources are stored in per-vendor directories. However, in some cases, we want to store the DTB in a sub-directory. A common use case is Raspberry Pi platforms that store overlays in an overlays/ subdirectory. Make this possible by stripping the directory name only when the destination is implicit. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
The kbuild.sh script strips the directory name from the DTB destination.
This is correct when no destination is specified explicitly, as we want
to strip the directory name of the source for arm64 platforms where DT
sources are stored in per-vendor directories. However, in some cases, we
want to store the DTB in a sub-directory. A common use case is Raspberry
Pi platforms that store overlays in an overlays/ subdirectory.

Make this possible by stripping the directory name only when the
destination is implicit.

Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
kbuild: Avoid false matches in directory pattern 2021-06-16T21:39:25+00:00 Laurent Pinchart laurent.pinchart@ideasonboard.com 2021-06-16T21:26:05+00:00 88e32bab5084efff7bda0247e4d1a9ab50dd7a71 Require matches for the directory pattern to be a full directory name, to reduce the risk of false matches. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Require matches for the directory pattern to be a full directory name,
to reduce the risk of false matches.

Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
kbuild: Fix DT build 2021-05-11T23:21:07+00:00 Laurent Pinchart laurent.pinchart@ideasonboard.com 2021-05-11T23:19:48+00:00 2ca6e42ac500f4f9de50ad6d15dca2150cf070c4 Introduction of the kernel component selection build option broke DT build. Fix it. Fixes: e7385853e45b ("kbuild: Add options to selectively compile kernel components") Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Introduction of the kernel component selection build option broke DT
build. Fix it.

Fixes: e7385853e45b ("kbuild: Add options to selectively compile kernel components")
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
kbuild: FIT: Support custom load address for DTB 2021-04-24T02:30:47+00:00 Laurent Pinchart laurent.pinchart@ideasonboard.com 2021-04-24T01:57:52+00:00 cfb9e844939965574d06ebda0b02c4b87788a991 This is required to merge overlays, as the base DTB needs to be relocated. Only the base address needs to be specified by platforms, addresses for all DTBs are calculated automatically. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
This is required to merge overlays, as the base DTB needs to be
relocated. Only the base address needs to be specified by platforms,
addresses for all DTBs are calculated automatically.

Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
kbuild: FIT: Add basic overlay support 2021-04-24T01:00:29+00:00 Laurent Pinchart laurent.pinchart@ideasonboard.com 2021-04-24T00:58:23+00:00 a5ae32015259200047a1105f05608c80c2e1696c Include DT overlays specified by the platform in the FIT image. Overlay compilation should ideally be handled by kbuild, but as a first step, the overlay files have to be manually copied to the output directory. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Include DT overlays specified by the platform in the FIT image. Overlay
compilation should ideally be handled by kbuild, but as a first step,
the overlay files have to be manually copied to the output directory.

Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
kbuild: Add variables for kernel root and kernel output directories 2021-04-24T01:00:29+00:00 Laurent Pinchart laurent.pinchart@ideasonboard.com 2021-04-24T00:40:52+00:00 2725722e55b7e745663e848eff40385c970d2fa2 Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>