mirror of
https://github.com/systemd/systemd.git
synced 2024-12-26 03:22:00 +03:00
6d862a9dc0
This allows hacking on systemd without installing any build dependencies except mkosi on the host machine.
21 lines
619 B
Bash
Executable File
21 lines
619 B
Bash
Executable File
#!/bin/bash
|
|
# SPDX-License-Identifier: LGPL-2.1-or-later
|
|
|
|
MKOSI_CONFIG="$(mkosi --json summary | jq -r .Images[-1])"
|
|
DISTRIBUTION="$(jq -r .Distribution <<< "$MKOSI_CONFIG")"
|
|
RELEASE="$(jq -r .Release <<< "$MKOSI_CONFIG")"
|
|
ARCH="$(jq -r .Architecture <<< "$MKOSI_CONFIG")"
|
|
|
|
exec mkosi \
|
|
--incremental=strict \
|
|
--format=none \
|
|
build \
|
|
clangd \
|
|
--compile-commands-dir=/work/build \
|
|
--path-mappings="\
|
|
$(pwd)=/work/src,\
|
|
$(pwd)/build/mkosi.builddir/$DISTRIBUTION~$RELEASE~$ARCH/=/work/build,\
|
|
$(pwd)/build/mkosi.cache/$DISTRIBUTION~$RELEASE~$ARCH~build.cache/usr/include/=/usr/include" \
|
|
"$@"
|
|
|