]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
Rename src/boot/efi to just src/boot 35068/head
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Thu, 7 Nov 2024 11:45:28 +0000 (12:45 +0100)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Thu, 7 Nov 2024 13:52:06 +0000 (14:52 +0100)
I very much dislike the approach in which we were mixing Linux and UEFI C code
in the same subdirectory. No code was shared between two environments. This
layout was created in e7dd673d1e0acfe5420599588c559fd85a3a9e8f, with the
justification of "being more consistent with the rest of systemd", but I don't
see how it's supposed to be so.

Originally, when the C code was just a single bootctl.c file, this wasn't so
bad. But over time the userspace code grew quite a bit. With the moves done in
previuos commits, the intermediate subdirectory is now empty except for the
efi/ subdir, and this additional subdirectory level doesn't have a good
justification. The components is called "systemd-boot", not "systemd-efi", and
we can remove one level of indentation.

79 files changed:
meson.build
src/boot/UEFI_SECURITY.md [moved from src/boot/efi/UEFI_SECURITY.md with 100% similarity]
src/boot/addon.c [moved from src/boot/efi/addon.c with 100% similarity]
src/boot/bcd.c [moved from src/boot/efi/bcd.c with 100% similarity]
src/boot/bcd.h [moved from src/boot/efi/bcd.h with 100% similarity]
src/boot/boot.c [moved from src/boot/efi/boot.c with 100% similarity]
src/boot/chid.c [moved from src/boot/efi/chid.c with 100% similarity]
src/boot/chid.h [moved from src/boot/efi/chid.h with 100% similarity]
src/boot/console.c [moved from src/boot/efi/console.c with 100% similarity]
src/boot/console.h [moved from src/boot/efi/console.h with 100% similarity]
src/boot/cpio.c [moved from src/boot/efi/cpio.c with 100% similarity]
src/boot/cpio.h [moved from src/boot/efi/cpio.h with 100% similarity]
src/boot/device-path-util.c [moved from src/boot/efi/device-path-util.c with 100% similarity]
src/boot/device-path-util.h [moved from src/boot/efi/device-path-util.h with 100% similarity]
src/boot/devicetree.c [moved from src/boot/efi/devicetree.c with 100% similarity]
src/boot/devicetree.h [moved from src/boot/efi/devicetree.h with 100% similarity]
src/boot/drivers.c [moved from src/boot/efi/drivers.c with 100% similarity]
src/boot/drivers.h [moved from src/boot/efi/drivers.h with 100% similarity]
src/boot/efi-string.c [moved from src/boot/efi/efi-string.c with 100% similarity]
src/boot/efi-string.h [moved from src/boot/efi/efi-string.h with 100% similarity]
src/boot/efi.h [moved from src/boot/efi/efi.h with 100% similarity]
src/boot/efivars.c [moved from src/boot/efi/efivars.c with 100% similarity]
src/boot/efivars.h [moved from src/boot/efi/efivars.h with 100% similarity]
src/boot/export-vars.c [moved from src/boot/efi/export-vars.c with 100% similarity]
src/boot/export-vars.h [moved from src/boot/efi/export-vars.h with 100% similarity]
src/boot/fuzz-bcd.c [moved from src/boot/efi/fuzz-bcd.c with 100% similarity]
src/boot/fuzz-efi-osrel.c [moved from src/boot/efi/fuzz-efi-osrel.c with 100% similarity]
src/boot/fuzz-efi-printf.c [moved from src/boot/efi/fuzz-efi-printf.c with 100% similarity]
src/boot/fuzz-efi-string.c [moved from src/boot/efi/fuzz-efi-string.c with 100% similarity]
src/boot/graphics.c [moved from src/boot/efi/graphics.c with 100% similarity]
src/boot/graphics.h [moved from src/boot/efi/graphics.h with 100% similarity]
src/boot/initrd.c [moved from src/boot/efi/initrd.c with 100% similarity]
src/boot/initrd.h [moved from src/boot/efi/initrd.h with 100% similarity]
src/boot/linux.c [moved from src/boot/efi/linux.c with 100% similarity]
src/boot/linux.h [moved from src/boot/efi/linux.h with 100% similarity]
src/boot/linux_x86.c [moved from src/boot/efi/linux_x86.c with 100% similarity]
src/boot/log.c [moved from src/boot/efi/log.c with 100% similarity]
src/boot/log.h [moved from src/boot/efi/log.h with 100% similarity]
src/boot/measure.c [moved from src/boot/efi/measure.c with 100% similarity]
src/boot/measure.h [moved from src/boot/efi/measure.h with 100% similarity]
src/boot/meson.build [moved from src/boot/efi/meson.build with 100% similarity]
src/boot/part-discovery.c [moved from src/boot/efi/part-discovery.c with 100% similarity]
src/boot/part-discovery.h [moved from src/boot/efi/part-discovery.h with 100% similarity]
src/boot/pe.c [moved from src/boot/efi/pe.c with 100% similarity]
src/boot/pe.h [moved from src/boot/efi/pe.h with 100% similarity]
src/boot/proto/block-io.h [moved from src/boot/efi/proto/block-io.h with 100% similarity]
src/boot/proto/cc-measurement.h [moved from src/boot/efi/proto/cc-measurement.h with 100% similarity]
src/boot/proto/console-control.h [moved from src/boot/efi/proto/console-control.h with 100% similarity]
src/boot/proto/device-path.h [moved from src/boot/efi/proto/device-path.h with 100% similarity]
src/boot/proto/dt-fixup.h [moved from src/boot/efi/proto/dt-fixup.h with 100% similarity]
src/boot/proto/file-io.h [moved from src/boot/efi/proto/file-io.h with 100% similarity]
src/boot/proto/graphics-output.h [moved from src/boot/efi/proto/graphics-output.h with 100% similarity]
src/boot/proto/load-file.h [moved from src/boot/efi/proto/load-file.h with 100% similarity]
src/boot/proto/loaded-image.h [moved from src/boot/efi/proto/loaded-image.h with 100% similarity]
src/boot/proto/rng.h [moved from src/boot/efi/proto/rng.h with 100% similarity]
src/boot/proto/security-arch.h [moved from src/boot/efi/proto/security-arch.h with 100% similarity]
src/boot/proto/shell-parameters.h [moved from src/boot/efi/proto/shell-parameters.h with 100% similarity]
src/boot/proto/simple-text-io.h [moved from src/boot/efi/proto/simple-text-io.h with 100% similarity]
src/boot/proto/tcg.h [moved from src/boot/efi/proto/tcg.h with 100% similarity]
src/boot/random-seed.c [moved from src/boot/efi/random-seed.c with 100% similarity]
src/boot/random-seed.h [moved from src/boot/efi/random-seed.h with 100% similarity]
src/boot/secure-boot.c [moved from src/boot/efi/secure-boot.c with 100% similarity]
src/boot/secure-boot.h [moved from src/boot/efi/secure-boot.h with 100% similarity]
src/boot/shim.c [moved from src/boot/efi/shim.c with 100% similarity]
src/boot/shim.h [moved from src/boot/efi/shim.h with 100% similarity]
src/boot/smbios.c [moved from src/boot/efi/smbios.c with 100% similarity]
src/boot/smbios.h [moved from src/boot/efi/smbios.h with 100% similarity]
src/boot/splash.c [moved from src/boot/efi/splash.c with 100% similarity]
src/boot/splash.h [moved from src/boot/efi/splash.h with 100% similarity]
src/boot/stub.c [moved from src/boot/efi/stub.c with 100% similarity]
src/boot/test-bcd.c [moved from src/boot/efi/test-bcd.c with 100% similarity]
src/boot/test-efi-string.c [moved from src/boot/efi/test-efi-string.c with 100% similarity]
src/boot/ticks.c [moved from src/boot/efi/ticks.c with 100% similarity]
src/boot/ticks.h [moved from src/boot/efi/ticks.h with 100% similarity]
src/boot/ubsan.c [moved from src/boot/efi/ubsan.c with 100% similarity]
src/boot/util.c [moved from src/boot/efi/util.c with 100% similarity]
src/boot/util.h [moved from src/boot/efi/util.h with 100% similarity]
src/boot/vmm.c [moved from src/boot/efi/vmm.c with 100% similarity]
src/boot/vmm.h [moved from src/boot/efi/vmm.h with 100% similarity]

index f2b5ce5ea2b574582d76bca6dcce2305fec3efa3..6b62dfa052dc9ae52d9aaee7a8be272f11b1a5d0 100644 (file)
@@ -2345,7 +2345,7 @@ subdir('src/backlight')
 subdir('src/battery-check')
 subdir('src/binfmt')
 subdir('src/bless-boot')
-subdir('src/boot/efi')
+subdir('src/boot')
 subdir('src/bootctl')
 subdir('src/busctl')
 subdir('src/cgls')
similarity index 100%
rename from src/boot/efi/addon.c
rename to src/boot/addon.c
similarity index 100%
rename from src/boot/efi/bcd.c
rename to src/boot/bcd.c
similarity index 100%
rename from src/boot/efi/bcd.h
rename to src/boot/bcd.h
similarity index 100%
rename from src/boot/efi/boot.c
rename to src/boot/boot.c
similarity index 100%
rename from src/boot/efi/chid.c
rename to src/boot/chid.c
similarity index 100%
rename from src/boot/efi/chid.h
rename to src/boot/chid.h
similarity index 100%
rename from src/boot/efi/console.c
rename to src/boot/console.c
similarity index 100%
rename from src/boot/efi/console.h
rename to src/boot/console.h
similarity index 100%
rename from src/boot/efi/cpio.c
rename to src/boot/cpio.c
similarity index 100%
rename from src/boot/efi/cpio.h
rename to src/boot/cpio.h
similarity index 100%
rename from src/boot/efi/drivers.c
rename to src/boot/drivers.c
similarity index 100%
rename from src/boot/efi/drivers.h
rename to src/boot/drivers.h
similarity index 100%
rename from src/boot/efi/efi.h
rename to src/boot/efi.h
similarity index 100%
rename from src/boot/efi/efivars.c
rename to src/boot/efivars.c
similarity index 100%
rename from src/boot/efi/efivars.h
rename to src/boot/efivars.h
similarity index 100%
rename from src/boot/efi/fuzz-bcd.c
rename to src/boot/fuzz-bcd.c
similarity index 100%
rename from src/boot/efi/graphics.c
rename to src/boot/graphics.c
similarity index 100%
rename from src/boot/efi/graphics.h
rename to src/boot/graphics.h
similarity index 100%
rename from src/boot/efi/initrd.c
rename to src/boot/initrd.c
similarity index 100%
rename from src/boot/efi/initrd.h
rename to src/boot/initrd.h
similarity index 100%
rename from src/boot/efi/linux.c
rename to src/boot/linux.c
similarity index 100%
rename from src/boot/efi/linux.h
rename to src/boot/linux.h
similarity index 100%
rename from src/boot/efi/log.c
rename to src/boot/log.c
similarity index 100%
rename from src/boot/efi/log.h
rename to src/boot/log.h
similarity index 100%
rename from src/boot/efi/measure.c
rename to src/boot/measure.c
similarity index 100%
rename from src/boot/efi/measure.h
rename to src/boot/measure.h
similarity index 100%
rename from src/boot/efi/pe.c
rename to src/boot/pe.c
similarity index 100%
rename from src/boot/efi/pe.h
rename to src/boot/pe.h
similarity index 100%
rename from src/boot/efi/shim.c
rename to src/boot/shim.c
similarity index 100%
rename from src/boot/efi/shim.h
rename to src/boot/shim.h
similarity index 100%
rename from src/boot/efi/smbios.c
rename to src/boot/smbios.c
similarity index 100%
rename from src/boot/efi/smbios.h
rename to src/boot/smbios.h
similarity index 100%
rename from src/boot/efi/splash.c
rename to src/boot/splash.c
similarity index 100%
rename from src/boot/efi/splash.h
rename to src/boot/splash.h
similarity index 100%
rename from src/boot/efi/stub.c
rename to src/boot/stub.c
similarity index 100%
rename from src/boot/efi/test-bcd.c
rename to src/boot/test-bcd.c
similarity index 100%
rename from src/boot/efi/ticks.c
rename to src/boot/ticks.c
similarity index 100%
rename from src/boot/efi/ticks.h
rename to src/boot/ticks.h
similarity index 100%
rename from src/boot/efi/ubsan.c
rename to src/boot/ubsan.c
similarity index 100%
rename from src/boot/efi/util.c
rename to src/boot/util.c
similarity index 100%
rename from src/boot/efi/util.h
rename to src/boot/util.h
similarity index 100%
rename from src/boot/efi/vmm.c
rename to src/boot/vmm.c
similarity index 100%
rename from src/boot/efi/vmm.h
rename to src/boot/vmm.h