efi: stub: define DISABLE_BRANCH_PROFILING for all architectures
authorArd Biesheuvel <ard.biesheuvel@linaro.org>
Wed, 23 Dec 2015 09:29:28 +0000 (10:29 +0100)
committerAlex Shi <alex.shi@linaro.org>
Wed, 11 May 2016 09:01:09 +0000 (17:01 +0800)
commit91a6481661c6e9d8e503540decf6382a604c7893
tree6931f76e2f5ef9b62268e0b96fb8c446d0f2b1cd
parentec567e8f53127f17d757c1ac30cfe09db6d1ea66
efi: stub: define DISABLE_BRANCH_PROFILING for all architectures

This moves the DISABLE_BRANCH_PROFILING define from the x86 specific
to the general CFLAGS definition for the stub. This fixes build errors
when building for arm64 with CONFIG_PROFILE_ALL_BRANCHES_ENABLED.

Reviewed-by: Matt Fleming <matt@codeblueprint.co.uk>
Reported-by: Will Deacon <will.deacon@arm.com>
Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Signed-off-by: Will Deacon <will.deacon@arm.com>
(cherry picked from commit b523e185bba36164ca48a190f5468c140d815414)
Signed-off-by: Alex Shi <alex.shi@linaro.org>
drivers/firmware/efi/libstub/Makefile