9c5f38b9f3
* [AS7726-32X] Add to support mulit PSU in PDDF Signed-off-by: Jostar Yang <jostar_yang@accton.com.tw> * Modify SN offset and include path * Fix device_name to PSU2-EEPROM in PSU2 Co-authored-by: Jostar Yang <jostar_yang@accton.com.tw>
24 lines
702 B
Makefile
Executable File
24 lines
702 B
Makefile
Executable File
ifneq ($(KERNELRELEASE),)
|
|
obj-m:= accton_as7726_32x_cpld.o accton_as7726_32x_fan.o \
|
|
accton_as7726_32x_leds.o accton_as7726_32x_psu.o ym2651y.o \
|
|
pddf_custom_psu.o
|
|
|
|
CFLAGS_pddf_custom_psu.o := -I$(M)/../../../../pddf/i2c/modules/include
|
|
KBUILD_EXTRA_SYMBOLS := $(M)/../../../../pddf/i2c/Module.symvers.PDDF
|
|
|
|
else
|
|
ifeq (,$(KERNEL_SRC))
|
|
#$(error KERNEL_SRC is not defined)
|
|
KVERSION=3.16.0-6-amd64
|
|
KERNEL_DIR = /usr/src/linux-headers-$(KVERSION)/
|
|
KERNELDIR:=$(KERNEL_DIR)
|
|
else
|
|
KERNELDIR:=$(KERNEL_SRC)
|
|
endif
|
|
PWD:=$(shell pwd)
|
|
default:
|
|
$(MAKE) -C $(KERNELDIR) M=$(PWD) modules
|
|
clean:
|
|
rm -rf *.o *.mod.o *.mod.o *.ko .*cmd .tmp_versions Module.markers Module.symvers modules.order
|
|
endif
|