summaryrefslogtreecommitdiff
path: root/kbuild.sh
AgeCommit message (Collapse)Author
2022-01-11kbuild: Add -m to DT_CHECKER_FLAGSHEADmasterLaurent Pinchart
The -m option to the DT checks catches additional errors. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
2021-09-20kbuild: Remove unused options from help textLaurent Pinchart
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>
2021-09-20kbuild: Add an option to run DT bindings checksLaurent Pinchart
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
2021-09-20kbuild: Allow adding out-of-tree DTBs to imageLaurent Pinchart
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>
2021-06-17kbuild: Support directory names in DTB destinationsLaurent Pinchart
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>
2021-06-17kbuild: Avoid false matches in directory patternLaurent Pinchart
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>
2021-05-12kbuild: Fix DT buildLaurent Pinchart
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>
2021-04-24kbuild: Add variables for kernel root and kernel output directoriesLaurent Pinchart
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
2021-04-24Turn dtbs platform variable into arrayLaurent Pinchart
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
2021-04-24kbuild: Add options to selectively compile kernel componentsLaurent Pinchart
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
2021-02-16kbuild: Add --help argumentLaurent Pinchart
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
2020-12-14kbuild: Allow building documentation subsetsLaurent Pinchart
Add an optional argument to the --doc option to select documentation directories to build. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
2020-12-14kbuild: Run documentation build in virtualenvLaurent Pinchart
To avoid depending on the sphinx version installed on the host, run the documentation build in a python virtual environment. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
2020-12-14kbuild: Pass build options to bindeb-pkgLaurent Pinchart
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
2020-09-02Support overriding the image file nameLaurent Pinchart
Add support for overriding the image file name, using the same mechanism as for DTB files. The 'image' parameter can specify both the image make target and image destination file name, separated by a ':'. If no ':' is found, the image make target is used as the image destination file name. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
2020-09-02kbuild: Support custom make arguments on the command lineLaurent Pinchart
Add support for passing additional arguments to make. The arguments can be specified after the platform name, or, if no platform name is specified, after an empty option (--). Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
2020-02-26kbuild.sh: Don't disable the implicit-fallthrough warning by defaultLaurent Pinchart
This was done due to the latest stable version of the kernel not having implicit-fallthrough warnings fixed for ARM architectures. Now that this has been fixed, enable the warning again. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
2020-02-18Add simple mechanism to specify version-based extra CFLAGSLaurent Pinchart
Platform files can specify extra CFLAGS by extending the kcflags environment variable. When a kernel tree for a platform contains both BSP and mainline branches, different CFLAGS may be needed, as BSPs are usually littered with warnings. Make it possible to specify extra CFLAGS per kernel version through a new extra_kcflags array. This mechanism can be extended later if needed by storing version comparison strings as array keys (e.g. "<=4.19"). Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
2019-08-22Ignore implicit fallthrough warningLaurent Pinchart
The kernel has enabled the implicit fallthrough warning without fixing all warnings on ARM first. Disable the warning until this gets addressed. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
2019-06-24Fix incorrect ARCH variable nameLaurent Pinchart
The architecture is stored in a variable called $arch, not $ARCH. Fix it. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
2019-05-19Move target directory configuration to config.shLaurent Pinchart
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
2019-05-19Move cross compiler configuration to separate config.sh fileLaurent Pinchart
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
2019-05-19Convert all shell variables to lowercaseLaurent Pinchart
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
2019-05-19Modularise image handlingLaurent Pinchart
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
2019-05-19Modularise architecture handlingLaurent Pinchart
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
2019-05-19Modularise platform handlingLaurent Pinchart
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
2019-05-19Initial importLaurent Pinchart
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>