mirror of
https://github.com/hardkernel/kernel_common_drivers.git
synced 2026-06-25 12:03:48 +09:00
dd5ce4f5a7
PD#SWPL-152551 Problem: read chipid fail Solution: the chipid can be read by reading registers, but the register address is set in DTS, which is prone to setting errors. It can be read through a unified command, so there will be no previous problems. Verify: s905x2 Change-Id: I2019a7b8201dedec1f71a1edf09f9b51b730f5c2 Signed-off-by: Wanwei Jiang <wanwei.jiang@amlogic.com>
16 lines
620 B
Makefile
16 lines
620 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
|
|
|
|
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)
|