mirror of
https://github.com/hardkernel/kernel_common_drivers.git
synced 2026-06-25 12:03:48 +09:00
c343fc0af6
PD#SWPL-87897 Problem: print build time and kernel uprade information Solution: print build time and kernel uprade information Verify: sc2 Change-Id: Id6b4c93c4926f9cdd470931c32bffb485353cb75 Signed-off-by: Wanwei Jiang <wanwei.jiang@amlogic.com>
16 lines
634 B
Makefile
16 lines
634 B
Makefile
# SPDX-License-Identifier: (GPL-2.0+ OR MIT)
|
|
|
|
MODULE_NAME = amlogic-cpuinfo
|
|
obj-$(CONFIG_AMLOGIC_CPU_INFO) = $(MODULE_NAME).o
|
|
$(MODULE_NAME)-y += cpu_info.o cpu_version.o
|
|
|
|
PR_FMT = $(subst amlogic-,,$(MODULE_NAME))
|
|
PR_FMT_DEFINE="-Dpr_fmt(fmt)= \"[$(PR_FMT)]: \" fmt"
|
|
ccflags-y += $(PR_FMT_DEFINE)
|
|
BUILD_TIME := $(shell date +%Y.%m.%d-%H.%M.%S)
|
|
ccflags-y += "-DBUILD_TIME=\"$(BUILD_TIME)\""
|
|
|
|
COMMON_DRIVER_RELEASE=$(subst -g,, $(shell $(srctree)/scripts/setlocalversion $(srctree)/$(COMMON_DRIVERS_DIR)))
|
|
COMMON_DRIVER_RELEASE_DEFINE="-DCOMMON_DRIVER_RELEASE=\"$(COMMON_DRIVER_RELEASE)\""
|
|
ccflags-y += $(COMMON_DRIVER_RELEASE_DEFINE)
|