summaryrefslogtreecommitdiffstats
path: root/rules/post
Commit message (Collapse)AuthorAgeFilesLines
* ptxd_make_world_extract: add <PKG>_SRC_FILTER variable to extract only part ↵Michael Olbrich2024-03-151-0/+1
| | | | | | | | | of the source archive This is especially useful in combination with <PKG>_STRIP_LEVEL when only a subdirectory is relevant. Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* rules: support host-system-python3-* packages with setup.pyMichael Olbrich2024-03-071-0/+1
| | | | | | | Provide the options with the correct prefix for packages that need to specify it explictly and use them as default when needed. Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* ptxd_make_world_report_yaml: fix source-packagesMichael Olbrich2024-03-041-1/+1
| | | | | | | | This broke during final cleanup before it was merged. Without this, the argument for world/license-part is missing and an empty source-packages: section is created. Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* ptxd_make_world_report_yaml: add list of sources for each package with more ↵Michael Olbrich2024-02-091-0/+5
| | | | | | details Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* ptxd_lib_dgen: introduce <PKG>_PARTS to replace <PKG>_SOURCESMichael Olbrich2024-02-094-22/+18
| | | | | | | | | | | | | | <PKG>_SOURCES cannot be used to match back to the package parts because the same source path may be used by multiple packages. So define <PKG>_PARTS that contains <PKG> and can be extended with <PKG>_EXTRA etc. for additional sources. In that case, <PKG>_EXTRA_SOURCE, etc. is expected to be defined. This makes it possible to extract all components in the default rule among other things. Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* systemd: version bump 254.7 -> 255Michael Olbrich2023-12-151-0/+15
| | | | Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* new license report toolingMichael Olbrich2023-10-292-1/+46
| | | | Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* ptxdist: allow 'oldconfig all' to run oldconfig for all package that support itMichael Olbrich2023-06-221-0/+5
| | | | Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* add support for nested PTXdist executionMichael Olbrich2023-06-181-0/+15
| | | | Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* install_archive: add 'strip' argumentMichael Olbrich2023-06-161-1/+2
| | | | | | | | It already implemented by the code shared with install_tree. So just add the missing bits to hook it up. This way stripping can be skipped, when an archive is extracted into the rootfs. Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* host-pkgconf: replace host-pkg-configMichael Olbrich2023-06-081-2/+2
| | | | | | | It's maintained, builds faster and works as drop-in replacement for pkg-config. Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* add cmake options for cross packagesMichael Olbrich2023-06-082-0/+6
| | | | | | This includes explicit search paths in sysroot-cross. Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* ptxd_make_meson_cross_file: specify the rust target explicitlyMichael Olbrich2023-06-021-1/+1
| | | | | | | | | This has two advantages: 1. we don't rely on a toolchain that provides the wrapper script 2. packages that use meson can use it to determine that we're cross-compiling (e.g. gst-plugins-rs). Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* rules/post: remove broken 'ptxdist make dump' rulesMichael Olbrich2023-05-061-66/+0
| | | | | | | | It has been broken for a long time because it creates command-lines that are too long. It has been superseded by 'ptxdist print' with % patterns, so just remove it. Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* host-meson: add rustc to the cross fileMichael Olbrich2023-04-261-0/+1
| | | | Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* scripts: allow more packages to use cargo indirectlyMichael Olbrich2023-04-261-0/+1
| | | | | | e.g. with meson and cargo-c Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* ptxd_make_world_{compile,install}: first steps for pyproject.toml packagesMichael Olbrich2023-04-261-0/+1
| | | | Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* allow using cargo with setuptools-rustMichael Olbrich2023-04-221-0/+1
| | | | Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* wrapper: allow per package path filter exceptionsMichael Olbrich2023-02-171-0/+1
| | | | | | | | | | | | | Currently, building out-of-tree Kernel modules fails when the kernel source tree is kernel git tree in local_src/kernel.<arch> during development. This happens because the path is outside of the expected build directories. To make this possible, the new package variable <PKG>_WRAPPER_ACCEPT_PATHS is introduced. Any paths specified here are not filtered out when the package is compiled. Kernel module packages can set it to $(KERNEL_DIR) to fix the problem mentioned above. Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* ptxd_make_world_install: remove deprecated 'install' macroMichael Olbrich2022-09-301-13/+1
| | | | | | Replace it with an error to detect remaining users. Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* add support for host cargo packagesMichael Olbrich2022-09-291-0/+2
| | | | Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* ptxd_make_world_update_md5: update md5 correctly for multiple sourcesMichael Olbrich2022-09-271-0/+1
| | | | Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* add support for MiniDebugInfo / .gnu_debugdataMichael Olbrich2022-09-091-0/+1
| | | | Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* qt4: remove after one year in stagingMichael Olbrich2022-06-061-7/+1
| | | | Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* impove compile_commands.json handlingMichael Olbrich2022-04-171-0/+4
| | | | | | | | | | This adds compile_commands.json support for kbuild based packages such as the Linux kernel and Barebox. It also adds a make macro that can be used by packages with other compile_commands.json generators. Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* ptxdist: add commands to create generic yaml reportsMichael Olbrich2022-03-182-0/+62
| | | | Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* rules: introduce new macros to install files to images/Michael Olbrich2022-03-042-0/+19
| | | | Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* ptxd_make_dtb: fix dtc selectionMichael Olbrich2022-02-111-1/+2
| | | | | | The dtc is located in the build dir not the source dir of the kernel. Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* scripts: add helper to inject files into a source directoryMichael Riesch2022-01-301-0/+19
| | | | | | | | | | | | Some packages may require certain files that are maintained or generated outside of their source repository. For example, binary firmware blobs could be excluded from the sources due to licensing issues. Add a helper that allows to inject certain files into the source directory (usually in the prepare stage). Signed-off-by: Michael Riesch <michael.riesch@wolfvision.net> Message-Id: <20220129070330.2601433-4-michael.riesch@wolfvision.net> Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* ptxd_make_world_{dtb, dtbo}: add support for device tree overlaysMichael Riesch2021-12-091-0/+21
| | | | | | | | | Make ptxd_make_dtb more general and provide suitable wrappers to support the generation of device tree overlays. Signed-off-by: Michael Riesch <michael.riesch@wolfvision.net> Message-Id: <20211209110258.3307503-2-michael.riesch@wolfvision.net> Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* add cargo config toolMichael Olbrich2021-11-262-0/+21
| | | | Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* add support for extra package makefilesMichael Olbrich2021-11-121-0/+1
| | | | | | | | | Any rules/<pkg>.<something>.make file now belongs to the corresponging package. Only one instance of this file in the regular rules/ search path is used. The content of such a file is added to the package hash to detect changes to the package. Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* spelling fixes found by codespellMichael Olbrich2021-07-162-3/+3
| | | | Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* rework device-tree handlingMichael Olbrich2021-07-162-15/+19
| | | | | | | | | | | It's not really possible to build a dtb by itself. A lot of included dtsi and header files are needed. So build the device-trees with the package that provides these files. Currently that's the kernel package. This also means, that other kernel packages can have their own device-trees as well. Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* wrapper: add package variable to blacklist compiler flagsMichael Olbrich2021-05-211-0/+1
| | | | | | Another option to prevent unwanted implicit dependencies. Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* ptxd_make_lint: sort ptx_patch_dir_allMichael Olbrich2021-02-261-1/+1
| | | | | | | This is mostly done because it also removes duplicates from host and target packages. Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* ptxd_make_world_lint: add lint check for packages without versionMichael Olbrich2021-02-121-0/+1
| | | | Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* function-touch: always define _touch_opt_output for 'lint'Michael Olbrich2021-02-011-0/+1
| | | | | | | | The new ptxdist 'lint' command complains about all macros that are not defined. Make sure that _touch_opt_output is always defined to avoid problems here. Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* ptxdist: add new command 'lint'Michael Olbrich2021-02-011-0/+21
| | | | | | | | | | | For now it contains the following checks: - unused patch directories - use of undefined symbols in menu files - use of undefined kconfig symbols in rule files and other makefiles - use of undefined macros in rule files and other makefiles Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* rules: drop source archive stamp handlingMichael Olbrich2020-08-141-7/+0
| | | | | | | This is no longer needed. The source hash contains all the necessary variables to ensure that packages are rebuilt when the souce changes. Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* urlcheck: use _ptx_source_to_pkg and ptx/nlMichael Olbrich2020-07-051-1/+1
| | | | | | | | Without _ptx_source_to_pkg the package mapping may be wrong and e.g. 'ptxdist urlcheck host-kernel-header' will run into the kernel/deprecated check. Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* ptxd_make_image_init: export the package list globallyMichael Olbrich2020-06-281-2/+0
| | | | | | | | The list can get rather long. The shell command limit has not been reached yet, but this may become a problem in the future. Avoid this entirely by exporting the package lists directly in make. They are not target specific. Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* ptxd_make_world_common: export some variables globallyMichael Olbrich2020-06-281-5/+0
| | | | | | | | | The variable names in shell and make are the same so they can just be exported in make. None of those variables are in any way target specific, so it's save to have the available everywhere. This keeps the command-line a bit shorter. Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* world/install-font: use install instead of mkdirMichael Olbrich2020-06-191-2/+2
| | | | | | | This way, the current umask will not influence the resulting directory permissions. Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* dtc: simplify dependency handlingMichael Olbrich2020-06-051-7/+0
| | | | | | | | | | | | | | | Some of the dependencies where broken because of the variable evaluation order. This was not noticed, because during dtb generation the same dependencies where generated as well. There is only one dependency not generated: When a dts is added in the platformconfigdir that overwrites a dts in the kernel source tree. This additional dependency is added here. So all other dependencies in the makefile can be removed. Also remove the dependency on kernel.extract.post. All dtbs depend on dtc.install and dtc selects the kernel. Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* ptxdist: add licensecheck commandRoland Hieber2020-05-291-0/+4
| | | | | | | | | | Make it possible to check all MD5 sums of license files by building all report stages without also building the license report (which produces tons of LaTeX output). Signed-off-by: Roland Hieber <rhi@pengutronix.de> Message-Id: <20200529091339.8396-1-rhi@pengutronix.de> Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* ipkg-push: build index with sha256 checksums if supportedSimon Falsig2020-04-191-2/+4
| | | | | | | | | | | | | Instead of always building the index with the default md5sum, the index will now be built with sha256, iff the target opkg package is configured to support sha256. Also, the ipkg support in ipkg-push has been removed, and it now always uses the opkg tools instead. The name is kept, since everything else is still using the 'ipkg' naming scheme though. Message-Id: <20200417095414.9278-1-sfalsig@veritystudios.com> Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* rules: support older make versions that don't support $(file ..)Michael Olbrich2020-04-041-1/+1
| | | | | | | | | | | For example make 3.82 from CentOS 7 does not support $(file ..). Provide a (slower) fallback for those cases. For some things use ptx/file as fallback. However, this is very slow, so it cannot be called for every PTXCONF variable. So fallback to the old, less optimal handling in that case. Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* ptxd_make_world_common: propagate recursive depsMichael Olbrich2020-01-231-0/+2
| | | | Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* image-kernel-fit: Add packageSascha Hauer2019-11-261-0/+25
| | | | | | | | | | | | | | This adds a package which generates a FIT image from the kernel image and all selected device trees in PTXCONF_DTC_OFTREE_DTS. The image will be signed if desired. ** Note ** Currently the U-Boot mkimage tool supports PKCS#11, but there is no way to specify the PIN in an environment variable like it is done in many other tools. This means you will be prompted for a PIN each time a signed FIT image is being built. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>