From 18a486a759d10043082ca39b95066ab4e84d99e3 Mon Sep 17 00:00:00 2001 From: Yaroslav Furman Date: Fri, 4 Dec 2020 19:43:41 +0300 Subject: [PATCH] power: supply: force disable frame pointers and optimize for size Holy fucking shit this is so retarded, it doesn't boot with frame pointers. Signed-off-by: Yaroslav Furman --- drivers/power/supply/Makefile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/power/supply/Makefile b/drivers/power/supply/Makefile index 8970cdc481b0..b796cb663d1c 100644 --- a/drivers/power/supply/Makefile +++ b/drivers/power/supply/Makefile @@ -87,3 +87,5 @@ obj-$(CONFIG_ARCH_QCOM) += ti/ obj-$(CONFIG_ARCH_QCOM) += maxim/ # obj-$(CONFIG_ARCH_QCOM) += sc8551_charger.o pd_policy_manager.o +subdir-ccflags-y += -Os +subdir-ccflags-y += -fomit-frame-pointer -foptimize-sibling-calls