2018-08-08 02:43:00 -05:00
|
|
|
ifneq ($(KERNELRELEASE),)
|
|
|
|
obj-m:= accton_i2c_cpld.o \
|
|
|
|
accton_as7326_56x_fan.o accton_as7326_56x_leds.o \
|
2022-04-01 11:55:04 -05:00
|
|
|
accton_as7326_56x_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
|
2018-08-08 02:43:00 -05:00
|
|
|
|
|
|
|
else
|
|
|
|
ifeq (,$(KERNEL_SRC))
|
|
|
|
$(error KERNEL_SRC is not defined)
|
|
|
|
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
|