Skip to content

Commit b80a18a

Browse files
ggoodmanslp
authored andcommitted
makefile: do not couple gpu to efi feature
This tweaks the `EFI=1` make option so that it doesn't automatically bring along the `gpu` feature. Since `EFI` resets `FEATURE_FLAGS`, the test for `GPU` and `SND` (not implied by `efi` rust feature) are evaluated after. Signed-off-by: Geoffrey Goodman <[email protected]>
1 parent 05bbf88 commit b80a18a

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

Makefile

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,6 @@ ifeq ($(SEV),1)
2727
INIT_SRC += $(SNP_INIT_SRC)
2828
BUILD_INIT = 0
2929
endif
30-
ifeq ($(GPU),1)
31-
FEATURE_FLAGS += --features gpu
32-
endif
3330
ifeq ($(VIRGL_RESOURCE_MAP2),1)
3431
FEATURE_FLAGS += --features virgl_resource_map2
3532
endif
@@ -39,14 +36,17 @@ endif
3936
ifeq ($(NET),1)
4037
FEATURE_FLAGS += --features net
4138
endif
39+
ifeq ($(EFI),1)
40+
VARIANT = -efi
41+
FEATURE_FLAGS := --features efi # EFI Implies blk and net
42+
BUILD_INIT = 0
43+
endif
44+
ifeq ($(GPU),1)
45+
FEATURE_FLAGS += --features gpu
46+
endif
4247
ifeq ($(SND),1)
4348
FEATURE_FLAGS += --features snd
4449
endif
45-
ifeq ($(EFI),1)
46-
VARIANT = -efi
47-
FEATURE_FLAGS := --features efi,gpu
48-
BUILD_INIT = 0
49-
endif
5050

5151
ifeq ($(TIMESYNC),1)
5252
INIT_DEFS += -D__TIMESYNC__

0 commit comments

Comments
 (0)