summaryrefslogtreecommitdiffstats
path: root/src/udev/meson.build (follow)
Commit message (Collapse)AuthorAgeFilesLines
* meson: move files' closing brace to separate lineZbigniew Jędrzejewski-Szmek2022-03-031-2/+4
|
* meson: use files() for libudevd_core_sources tooZbigniew Jędrzejewski-Szmek2022-03-021-5/+5
| | | | I'm not sure why a plain-text list was used in this case.
* meson: do not use split() in file listsZbigniew Jędrzejewski-Szmek2022-03-021-42/+40
| | | | | | | | | | | The approach to use '''…'''.split() instead of a list of strings was initially used when converting from automake because it allowed identical blocks of lines to be used for both, making the conversion easier. But over the years we have been using normal lists more and more, especially when there were just a few filenames listed. This converts the rest. No functional change.
* meson: Add missing test dependenciesDaan De Meyer2022-01-211-1/+1
| | | | | | Currently, running "meson build" followed by "meson test -C build" will result in many failed tests due to missing dependencies. This commit adds the missing dependencies to make sure no tests fail.
* meson: Use files() for fuzzersJan Janssen2022-01-111-6/+5
| | | | | | Not having to provide the full path in the source tree is much nicer and the produced lists can also be used anywhere in the source tree.
* meson: Use files() for testsJan Janssen2022-01-111-8/+8
| | | | | | Not having to provide the full path in the source tree is much nicer and the produced lists can also be used anywhere in the source tree.
* dmi: add LoongArch 64bit supportXiaotian Wu2021-12-221-1/+1
|
* meson: stop building out convenience libraries by defaultZbigniew Jędrzejewski-Szmek2021-12-161-1/+3
| | | | | | | | | | | | | | | | | The meson default for static_library() are: build_by_default=true, install=false. We never interact with the static libraries, and we only care about them as a stepping-stone towards the installable executables or libraries. Thus let's only build them if they are a dependency of something else we are building. While at it, let's drop install:false, since this appears to be the default. This change would have fixed the issue with lib_import_common failing to build too: we wouldn't attempt to build it. In practice this changes very little, because we generally only declare static libraries where there's something in the default target that will make use of them. But it seems to be a better pattern to set build_by_default to false.
* build: preserve correct mode when generating files via jinja2Christian Brauner2021-11-081-2/+1
| | | | | | | | | When using "capture : true" in custom_target()s the mode of the source file is not preserved when the generated file is not installed and so needs to be tweaked manually. Switch from output capture to creating the target file and copy the permissions from the input file. Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
* udev: rename udev-builtin-net_id-netlink.[ch]Yu Watanabe2021-10-061-5/+5
|
* udev: introduce link_info_get()Yu Watanabe2021-08-311-0/+6
|
* meson: use a/b instead of join_paths(a,b)Zbigniew Jędrzejewski-Szmek2021-07-271-2/+2
| | | | It is nicer and shorter.
* meson: use maps for udev program pathsZbigniew Jędrzejewski-Szmek2021-07-271-20/+18
|
* test: add tests for udev_node_escape_path()Yu Watanabe2021-06-041-0/+6
|
* meson: use jinja2 in src/udevZbigniew Jędrzejewski-Szmek2021-05-191-3/+6
|
* udev: make sure UdevBuiltinCommand is properly convertedZbigniew Jędrzejewski-Szmek2021-02-101-0/+6
|
* test: add test for udev_event_spawn()Yu Watanabe2021-02-011-0/+6
|
* meson: fix indentation in one spotZbigniew Jędrzejewski-Szmek2021-01-281-12/+12
|
* udev: stop to use LOG_REALM_UDEVYu Watanabe2021-01-251-2/+0
| | | | | | | | Before this commit, udevd is built with LOG_REALM=LOG_REALM_UDEV. However, log level specified by e.g. environment variable or kernel command line option are also passed to LOG_REALM_SYSTEMD. So, the maximum log level for the two realms are always equivalent, and it is not necessary to specify the build option. Hence drop it.
* meson: move test or fuzzer definitions to relevant meson.build in subdirectoriesYu Watanabe2021-01-181-0/+8
|
* meson: slightly disentangle code dependenciesYu Watanabe2021-01-181-3/+4
| | | | But, still sd-id128 is used in src/basic.
* meson: move libudev related definitions to src/libudev/meson.buildYu Watanabe2021-01-181-46/+0
| | | | Also, this makes libudev.so built in build directory.
* meson: make the second and third elements of tests or fuzzers optionalYu Watanabe2021-01-181-8/+4
| | | | Then, we can shorten many test definitions.
* login: move src/login/logind-acl.[ch] -> src/shared/devnode-acl.[ch]Yu Watanabe2021-01-181-3/+1
| | | | | | The files are used by logind and udevd. And the functions in the files are not specific to logind, and quite general enough to move to libshared.
* Add install-sysconfdir=no-samples option for (non-)installation of sample ↵Josh Triplett2021-01-141-1/+1
| | | | | | | | | | | | | configs By default, systemd installs various sample configuration files containing commented-out defaults. Systems seeking to minimize the number of files in /etc may wish to install directories and configuration files that have semantic effects, but not install not commented-out sample configuration files. Turn install-sysconfdir into a multi-valued option, with a "no-samples" value to skip installing sample-only configuration files.
* meson: make each dmidecode a separate testZbigniew Jędrzejewski-Szmek2020-12-171-9/+17
| | | | | | | | This allows them to be executed in parallel and also gives us better reporting. The dump files are renamed to avoid repeating "dmidecode-dump", since that string is already present in the subdirectory name.
* meson: Disable dmi_memory_id on arches without DMIBastien Nocera2020-12-161-1/+5
|
* meson: Split off udev helper programs arrayBastien Nocera2020-12-161-1/+2
|
* udev: Extract RAM properties from DMI informationBastien Nocera2020-12-161-0/+1
| | | | | | | | | Add memory_id program to set properties about the physical memory devices in the system. This is useful on machines with removable memory modules to show how the machine can be upgraded, and on all devices to detect the actual RAM size, without relying on the OS accessible amount. Closes: #16651
* meson: do not link with libudevYu Watanabe2020-12-151-17/+20
|
* Merge pull request #17478 from yuwata/split-network-internalYu Watanabe2020-11-271-1/+0
|\ | | | | libsystemd-network: split network-internal.c
| * meson: drop libsystemd_network from several binariesYu Watanabe2020-10-291-1/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This reduces the size of udevadm: Before: ``` $ ll udevadm -rwxrwxr-x 1 watanabe watanabe 1203800 Oct 29 01:36 udevadm ``` After: ``` $ ll udevadm -rwxrwxr-x 1 watanabe watanabe 1094384 Oct 29 01:38 udevadm ```
* | meson: add option to skip installing to $sysconfdirJörg Thalheim2020-11-121-4/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is useful for development where overwriting files out side the configured prefix will affect the host as well as stateless systems such as NixOS that don't let packages install to /etc but handle configuration on their own. Alternative to https://github.com/systemd/systemd/pull/17501 tested with: $ mkdir inst build && cd build $ meson \ -Dcreate-log-dirs=false \ -Dsysvrcnd-path=$(realpath ../inst)/etc/rc.d \ -Dsysvinit-path=$(realpath ../inst)/etc/init.d \ -Drootprefix=$(realpath ../inst) \ -Dinstall-sysconfdir=false \ --prefix=$(realpath ../inst) .. $ ninja install
* | license: LGPL-2.1+ -> LGPL-2.1-or-laterYu Watanabe2020-11-091-1/+1
|/
* udev: single binary replacing udevd and udevadmNorbert Lange2020-06-011-2/+1
| | | | | | | | | | | | | | | Since the separate binaries contain mostly the same code, this almost halves the size of the installation. before: 398K /bin/udevadm 391K /lib/systemd/systemd-udevd after: 431K /bin/udevadm 0 /lib/systemd/systemd-udevd -> ../../bin/udevadm Fixes: #14200
* udev: move naming-scheme.[ch] into src/shared/Lennart Poettering2020-01-021-2/+0
| | | | That way we can use it from non-udev code too, for example nspawn.
* test: move {test,fuzz}-fido-id-desc.c into src/udev/fido_idYu Watanabe2019-10-311-1/+13
|
* udev: Add id program and rule for FIDO security tokensFabian Henneke2019-09-061-0/+3
| | | | | | | | | | | | | | Add a fido_id program meant to be run for devices in the hidraw subsystem via an IMPORT directive. The program parses the HID report descriptor and assigns the ID_SECURITY_TOKEN environment variable if a declared usage matches the FIDO_CTAPHID_USAGE declared in the FIDO CTAP specification. This replaces the previous approach of whitelisting all known security token models manually. This commit is accompanied by a test suite and a fuzzer target for the descriptor parsing routine. Fixes: #11996.
* ethtool-util: move from src/udev/net/ to src/shared/Yu Watanabe2019-06-191-2/+0
|
* udev: modernize udev-rules.cYu Watanabe2019-06-021-2/+2
| | | | | | | | | | | This does the following: - rename enum udev_builtin_cmd -> UdevBuiltinCmd - rename struct udev_builtin -> UdevBuiltin - move type definitions to udev-rules.h - move prototypes of functions defined in udev-rules.c to udev-rules.h - drop to use strbuf - propagate critical errors in applying rules, - drop limitation for number of tokens per line.
* meson: declare version.h as dep for various targets that include build.hZbigniew Jędrzejewski-Szmek2019-02-251-0/+1
| | | | Should fix #11565.
* fuzz: add fuzzer for parsing .link filesYu Watanabe2019-02-251-0/+11
| | | | This also renames load_link() to link_load_one()
* udev: move naming-scheme bits into their own fileZbigniew Jędrzejewski-Szmek2019-01-171-0/+2
|
* meson: simplify handling of pkgconfigdatadir=no, pkgconfiglibdir=noZbigniew Jędrzejewski-Szmek2018-12-211-4/+3
| | | | | | | | | | | The idea was that those vars could be configured to 'no' to not install the .pc files, or they could be set to '', and then they would be built but not installed. This was inherited from the autoconf build system. This couldn't work because '' is replaced by the default value. Also, having this level of control doesn't seem necessary, since creating those files is very quick. Skipping with 'no' was implemented only for systemd.pc and not the other .pc files. Let's simplify things and skip installation if the target dir is configured as 'no' for all .pc files.
* meson: rename two more variables from _c to _sourcesZbigniew Jędrzejewski-Szmek2018-12-181-1/+1
| | | | | | | | _c is misleading because .h files should be included in those lists too (this tells meson that the build outputs should be rebuilt if the header files change). Follow-up for 1437822638ff9468fa78c7cfe56f8f55f955a61d.
* Merge pull request #10176 from yuwata/udev-cleanup-7Lennart Poettering2018-10-121-2/+6
|\ | | | | udev: replace udev_device by sd_device
| * udev-builtin: move definitions related to builtin commands to udev-builtin.hYu Watanabe2018-10-101-0/+1
| |
| * udev-ctrl: move prototypes of udev_ctrl_*() to udev-ctrl.hYu Watanabe2018-10-101-0/+1
| |
| * udev-node: replace udev_device by sd_device and modernize code a bitYu Watanabe2018-10-101-0/+1
| |
| * udev-watch: replace udev_device by sd_device and modernize code a bitYu Watanabe2018-10-101-2/+3
| |