]> git.proxmox.com Git - efi-boot-shim.git/blame - BUILDING
Prep for releasing based on 15.4
[efi-boot-shim.git] / BUILDING
CommitLineData
1e717349
PJ
1It's pretty straightforward:
2
3cp $MY_DER_ENCODED_CERT pub.cer
4make VENDOR_CERT_FILE=pub.cer
5make EFIDIR=my_esp_dir_name install
6
7There are a couple of ways to customize the build:
8
9Install targets:
10- install
11 installs shim as if to a hard drive, including installing MokManager and
12 fallback appropriately.
13- install-as-data
14 installs shim files to /usr/share/shim/$(EFI_ARCH)-$(VERSION)/
15
16Variables you should set to customize the build:
17- EFIDIR
18 This is the name of the ESP directory. The install targets won't work
19 without it.
20- DESTDIR
21 This will be prepended to any install targets, so you don't have to
22 install to a live root directory.
23- DEFAULT_LOADER
24 defaults to \\\\grub$(EFI_ARCH).efi , but you could set it to whatever.
25 Be careful with the leading backslashes, they can be hard to get
26 correct.
27
28Variables you could set to customize the build:
207dd7dc 29- ENABLE_SHIM_CERT
c941956a 30 if this variable is defined on the make command line, shim will
207dd7dc
PJ
31 generate keys during the build and sign MokManager and fallback with
32 them, and the signed version will be what gets installed with the
33 install targets
2bdf0dd3
PJ
34- ENABLE_SHIM_DEVEL
35 If this is set, we look for SHIM_DEVEL_DEBUG instead of SHIM_DEBUG in
36 our debugger delay hook, thus meaning you can have it pause for a
37 debugger only on the development branch and not the OS you need to boot
38 to scp in a new development build.
0a1bf93d
PJ
39- DISABLE_EBS_PROTECTION
40 On systems where a second stage bootloader is not used, and the Linux
41 Kernel is embedded in the same EFI image as shim and booted directly
42 from shim, shim's ExitBootServices() hook can cause problems as the
43 kernel never calls the shim's verification protocol. In this case
44 calling the shim verification protocol is unnecessary and redundant as
45 shim has already verified the kernel when shim loaded the kernel as the
46 second stage loader. In such a case, and only in this case, you should
47 use DISABLE_EBS_PROTECTION=y to build.
5f3adcc2
PJ
48- REQUIRE_TPM
49 if tpm logging or extends return an error code, treat that as a fatal error.
1e717349
PJ
50- ARCH
51 This allows you to do a build for a different arch that we support. For
52 instance, on x86_64 you could do "setarch linux32 make ARCH=ia32" to get
53 the ia32 build instead. (DEFAULT_LOADER will be automatically adjusted
54 in that case.)
55- TOPDIR
56 You can use this along with make -f to build in a subdir. For instance,
57 on an x86_64 machine you could do:
58
59 mkdir build-ia32 build-x64 inst
60 cd build-ia32
61 setarch linux32 make TOPDIR=.. ARCH=ia32 -f ../Makefile
62 setarch linux32 make TOPDIR=.. ARCH=ia32 \
63 DESTDIR=../inst EFIDIR=debian \
64 -f ../Makefile install
65 cd ../build-x64
66 make TOPDIR=.. -f ../Makefile
67 make TOPDIR=.. DESTDIR=../inst EFIDIR=debian \
68 -f ../Makefile install
69
70 That would get you x86_64 and ia32 builds in the "inst" subdir.
71- OSLABEL
72 This is the label that will be put in BOOT$(EFI_ARCH).CSV for your OS.
73 By default this is the same value as EFIDIR .
74
dd707859
PJ
75Vendor SBAT data:
76It will sometimes be requested by reviewers that a build includes extra
77.sbat data. The mechanism to do so is to add a CSV file in data/ with the
78name sbat.FOO.csv, where foo is your EFI subdirectory name. The build
79system will automatically include any such files.
80
1e717349 81# vim:filetype=mail:tw=74