This commit is contained in:
Loïc Guégan 2023-08-24 12:59:13 +02:00
parent cdcc342c2e
commit 93fdebd96d
2 changed files with 783 additions and 2 deletions

View file

@ -1,13 +1,13 @@
# Linux Makefile Location:
#LML="/usr/src/linux-headers-$(shell uname -r)/"
LML="/lib/modules/$(shell uname -r)/build/" # Change if required on your system
obj-m += ina260_hwmon.o ina260.o
obj-m += ina2xx.o ina260.o
TEST_BUS=i2c-2
TEST_DEV_ADDR=0x41
TEST_DRV=ina260_hwmon
all: ina260_hwmon.c ina260.c
all: ina2xx.c ina260.c
make -C $(LML) M=$(PWD) modules
run: $(TEST_DRV).ko