|
@@ -33,13 +33,14 @@ lib-y := efi-stub-helper.o gop.o secureboot.o
|
|
|
lib-$(CONFIG_RESET_ATTACK_MITIGATION) += tpm.o
|
|
lib-$(CONFIG_RESET_ATTACK_MITIGATION) += tpm.o
|
|
|
|
|
|
|
|
# include the stub's generic dependencies from lib/ when building for ARM/arm64
|
|
# include the stub's generic dependencies from lib/ when building for ARM/arm64
|
|
|
-arm-deps := fdt_rw.c fdt_ro.c fdt_wip.c fdt.c fdt_empty_tree.c fdt_sw.c sort.c
|
|
|
|
|
|
|
+arm-deps-y := fdt_rw.c fdt_ro.c fdt_wip.c fdt.c fdt_empty_tree.c fdt_sw.c
|
|
|
|
|
+arm-deps-$(CONFIG_ARM64) += sort.c
|
|
|
|
|
|
|
|
$(obj)/lib-%.o: $(srctree)/lib/%.c FORCE
|
|
$(obj)/lib-%.o: $(srctree)/lib/%.c FORCE
|
|
|
$(call if_changed_rule,cc_o_c)
|
|
$(call if_changed_rule,cc_o_c)
|
|
|
|
|
|
|
|
lib-$(CONFIG_EFI_ARMSTUB) += arm-stub.o fdt.o string.o random.o \
|
|
lib-$(CONFIG_EFI_ARMSTUB) += arm-stub.o fdt.o string.o random.o \
|
|
|
- $(patsubst %.c,lib-%.o,$(arm-deps))
|
|
|
|
|
|
|
+ $(patsubst %.c,lib-%.o,$(arm-deps-y))
|
|
|
|
|
|
|
|
lib-$(CONFIG_ARM) += arm32-stub.o
|
|
lib-$(CONFIG_ARM) += arm32-stub.o
|
|
|
lib-$(CONFIG_ARM64) += arm64-stub.o
|
|
lib-$(CONFIG_ARM64) += arm64-stub.o
|
|
@@ -90,5 +91,4 @@ quiet_cmd_stubcopy = STUBCPY $@
|
|
|
# explicitly by the decompressor linker script.
|
|
# explicitly by the decompressor linker script.
|
|
|
#
|
|
#
|
|
|
STUBCOPY_FLAGS-$(CONFIG_ARM) += --rename-section .data=.data.efistub
|
|
STUBCOPY_FLAGS-$(CONFIG_ARM) += --rename-section .data=.data.efistub
|
|
|
-STUBCOPY_RM-$(CONFIG_ARM) += -R ___ksymtab+sort -R ___kcrctab+sort
|
|
|
|
|
STUBCOPY_RELOC-$(CONFIG_ARM) := R_ARM_ABS
|
|
STUBCOPY_RELOC-$(CONFIG_ARM) := R_ARM_ABS
|