diff --git a/src/security/vboot/Makefile.mk b/src/security/vboot/Makefile.mk index e9b3eb69f1..eb75975d04 100644 --- a/src/security/vboot/Makefile.mk +++ b/src/security/vboot/Makefile.mk @@ -9,8 +9,9 @@ ramstage-y += vboot_lib.c postcar-y += vboot_lib.c vboot-fixup-includes = $(patsubst -I%,-I$(top)/%,\ + $(patsubst -I$(top)/%,-I%,\ $(patsubst $(src)/%.h,$(top)/$(src)/%.h,\ - $(filter-out -I$(obj),$(1)))) + $(filter-out -I$(obj),$(1))))) # call with $1 = stage name to create rules for building the library # for the stage and adding it to the stage's set of object files.