Files
kernel_common_drivers/drivers/pm/Makefile
T
Wanwei Jiang 0998513606 optimize: Makefile and header files [1/1]
PD#SWPL-195997

Problem:
optimize the Makefile and header files

Solution:
optimize the Makefile and header files

Verify:
sc2

Test:
PB

Change-Id: Ia90d24a18d125e162a2eaa26ffe4720095f101ac
Signed-off-by: Wanwei Jiang <wanwei.jiang@amlogic.com>
2025-02-25 04:17:41 -08:00

14 lines
419 B
Makefile

# SPDX-License-Identifier: (GPL-2.0+ OR MIT)
MODULE_NAME = amlogic-pm
PR_FMT = $(subst amlogic-,,$(MODULE_NAME))
PR_FMT_DEFINE="-Dpr_fmt(fmt)= \"[$(PR_FMT)]: \" fmt"
ccflags-y += $(PR_FMT_DEFINE)
ccflags-y += -I$(srctree)/kernel/power
obj-$(CONFIG_AMLOGIC_PM) = $(MODULE_NAME).o
$(MODULE_NAME)-y += main.o
$(MODULE_NAME)-$(CONFIG_AMLOGIC_GX_SUSPEND) += gx_pm.o
$(MODULE_NAME)-$(CONFIG_AMLOGIC_GX_REBOOT) += reboot.o