mirror of
https://github.com/hardkernel/kernel_common_drivers.git
synced 2026-06-25 12:03:48 +09:00
0998513606
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>
14 lines
419 B
Makefile
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
|