We already define pointer size constants for use in assembly. Make use of this header. No functional change. Signed-off-by: Ahmad Fatoum <a.fatoum@xxxxxxxxxxxxxx> --- firmware/Makefile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/firmware/Makefile b/firmware/Makefile index 75812cb6bf24..80c498994cce 100644 --- a/firmware/Makefile +++ b/firmware/Makefile @@ -41,12 +41,12 @@ obj-pbl-y := $(addsuffix .gen.o, $(firmware-y)) FWNAME = $(patsubst $(obj)/%.extgen.S,%,$(patsubst $(obj)/%.gen.S,%,$@)) FWSTR = $(subst /,_,$(subst .,_,$(subst -,_,$(FWNAME)))) -ASM_ALIGN = $(if $(CONFIG_64BIT),3,2) filechk_fwbin = { \ echo "/* Generated by $(src)/Makefile */" ;\ + echo "\#include <asm-generic/pointer.h>" ;\ echo " .section $2,\"$3\"" ;\ - echo " .p2align $(ASM_ALIGN)" ;\ + echo " .p2align $(ASM_LGPTR)" ;\ echo ".global _fw_$(FWSTR)_start" ;\ echo "_fw_$(FWSTR)_start:" ;\ echo " .incbin \"$(fwdir)/$(FWNAME)\"" ;\ @@ -56,7 +56,7 @@ filechk_fwbin = { \ __fwbin_sha = { \ echo " .section .rodata.$(FWSTR).sha" ;\ - echo " .p2align $(ASM_ALIGN)" ;\ + echo " .p2align $(ASM_LGPTR)" ;\ echo ".global _fw_$(FWSTR)_sha_start" ;\ echo "_fw_$(FWSTR)_sha_start:" ;\ echo " .incbin \"$(fwobjdir)/$(FWNAME).sha.bin\"" ;\ -- 2.39.2