31 lines
804 B
Makefile
31 lines
804 B
Makefile
ifneq ($(srctree),)
|
|
KERNEL_DIR := $(srctree)
|
|
SDK_DIR := $(shell cd $(KERNEL_DIR)/../../.. && /bin/pwd)
|
|
else
|
|
SDK_DIR := $(shell cd $(CURDIR)/../../../.. && /bin/pwd)
|
|
endif
|
|
|
|
include $(SDK_DIR)/build/base.mk
|
|
include $(SDK_DIR)/build/version.mk
|
|
|
|
MOD_NAME := xm_pm
|
|
|
|
SRCS := pmoc_init.c
|
|
SRCS += temperature.c
|
|
SRCS += drv_svb.c
|
|
SRCS += drv_pmc.c
|
|
|
|
SDK_KER_CFLAGS += -I$(GMP_DIR)/include
|
|
SDK_KER_CFLAGS += -I$(GMP_DIR)/drv/osal/include
|
|
SDK_KER_CFLAGS += -I$(GMP_DIR)/drv/common/include
|
|
SDK_KER_CFLAGS += -I$(GMP_DIR)/drv/common/task
|
|
SDK_KER_CFLAGS += -I$(GMP_DIR)/drv/include
|
|
SDK_KER_CFLAGS += -I$(GMP_DIR)/usr/include
|
|
SDK_KER_CFLAGS += -I$(GMP_DIR)/usr/common/include
|
|
|
|
$(info SDK_KER_CFLAGS=$(SDK_KER_CFLAGS))
|
|
$(info SRCS=$(SRCS))
|
|
$(info SDK_DIR=$(SDK_DIR))
|
|
|
|
include $(SDK_DIR)/build/sdk_ko_rules.mk
|