mirror of
https://github.com/systemd/systemd-stable.git
synced 2024-12-22 13:33:56 +03:00
d12e9bdc76
If mkosi.kernel/ exists, the mkosi script will try to build a kernel image from it. We use the architecture defconfig as a base and add our own extra configuration on top. We also add some extra tooling to the build image required to build the kernel and include some documentation in HACKING.md on how to use this new feature. To avoid the kernel sources from being copied into the build or final image (which we don't want because it takes a while), we put the mkosi.kernel/ directory in .gitignore and use "SourceFileTransfer=mount" so that the sources are still accessible in the build image.
74 lines
1.2 KiB
Plaintext
74 lines
1.2 KiB
Plaintext
# SPDX-License-Identifier: LGPL-2.1-or-later
|
|
|
|
# This is a settings file for OS image generation using mkosi (https://github.com/systemd/mkosi).
|
|
|
|
[Output]
|
|
Format=gpt_btrfs
|
|
Bootable=yes
|
|
HostonlyInitrd=yes
|
|
# Prevent ASAN warnings when building the image
|
|
Environment=ASAN_OPTIONS=verify_asan_link_order=false
|
|
OutputDirectory=mkosi.output
|
|
|
|
[Content]
|
|
BuildDirectory=mkosi.builddir
|
|
Cache=mkosi.cache
|
|
SourceFileTransfer=mount
|
|
SourceFileTransferFinal=copy-git-others
|
|
Packages=
|
|
acl
|
|
bash-completion
|
|
coreutils
|
|
diffutils
|
|
dnsmasq
|
|
findutils
|
|
gcc # For sanitizer libraries
|
|
gdb
|
|
grep
|
|
kbd
|
|
kexec-tools
|
|
kmod
|
|
less
|
|
nano
|
|
nftables
|
|
openssl
|
|
python3
|
|
qrencode
|
|
sed
|
|
strace
|
|
tree
|
|
util-linux
|
|
valgrind
|
|
wireguard-tools
|
|
zsh
|
|
|
|
BuildPackages=
|
|
bc
|
|
binutils
|
|
bison
|
|
clang
|
|
flex
|
|
gcc
|
|
gettext
|
|
git
|
|
gnu-efi
|
|
gperf
|
|
llvm
|
|
make
|
|
meson
|
|
pkgconf
|
|
rpm
|
|
rsync
|
|
tar
|
|
zstd
|
|
|
|
[Host]
|
|
QemuHeadless=yes
|
|
Netdev=yes
|
|
QemuMem=2G
|
|
ExtraSearchPaths=build/
|
|
|
|
[Validation]
|
|
Password=
|
|
Autologin=yes
|