The -m option to the DT checks catches additional errors. 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>
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>
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>
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>
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>
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>
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>
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>