sonic-buildimage/platform/broadcom/sonic-platform-modules-accton/as7312-54x/modules/Makefile

18 lines
426 B
Makefile
Raw Normal View History

ifneq ($(KERNELRELEASE),)
obj-m:= accton_i2c_cpld.o \
accton_as7312_54x_fan.o accton_as7312_54x_leds.o \
accton_as7312_54x_psu.o ym2651y.o
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