2019-06-28 23:53:06 -05:00
|
|
|
ifneq ($(KERNELRELEASE),)
|
|
|
|
obj-m:= accton_as9716_32d_cpld.o accton_as9716_32d_fan.o \
|
2021-04-14 16:43:52 -05:00
|
|
|
accton_as9716_32d_leds.o accton_as9716_32d_psu.o accton_i2c_psu.o \
|
2022-04-09 12:51:49 -05:00
|
|
|
pddf_custom_psu.o accton_as9716_32d_ioport.o
|
2019-06-28 23:53:06 -05:00
|
|
|
|
2022-03-01 15:08:03 -06:00
|
|
|
CFLAGS_pddf_custom_psu.o := -I$(M)/../../../../pddf/i2c/modules/include
|
|
|
|
KBUILD_EXTRA_SYMBOLS := $(M)/../../../../pddf/i2c/Module.symvers.PDDF
|
|
|
|
|
2019-06-28 23:53:06 -05:00
|
|
|
else
|
|
|
|
ifeq (,$(KERNEL_SRC))
|
|
|
|
#$(error KERNEL_SRC is not defined)
|
|
|
|
KVERSION=3.16.0-8-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 *.mod.c .tmp_versions Module.markers Module.symvers modules.order
|
|
|
|
endif
|