From ad245bdd60434dd46d6461f585d49db1b3b0d75b Mon Sep 17 00:00:00 2001 From: Christian Gromm Date: Fri, 8 Jul 2016 13:34:29 +0200 Subject: src: most: driver: adapt makefiles This patch adapts the makefiles to the directory structure Change-Id: I310dd83921f672b64b9b8369fd816067bed5ccfe Signed-off-by: Christian Gromm --- driver/aim-cdev/Makefile | 2 +- driver/aim-network/Makefile | 2 +- driver/aim-network/networking.h | 21 --------------------- driver/aim-sound/Makefile | 2 +- driver/aim-v4l2/Makefile | 2 +- driver/hdm-dim2/Makefile | 2 +- driver/hdm-i2c/Makefile | 2 +- driver/hdm-usb/Makefile | 2 +- driver/include/networking.h | 21 +++++++++++++++++++++ 9 files changed, 28 insertions(+), 28 deletions(-) delete mode 100644 driver/aim-network/networking.h create mode 100644 driver/include/networking.h diff --git a/driver/aim-cdev/Makefile b/driver/aim-cdev/Makefile index 05853c2..c49a1f3 100644 --- a/driver/aim-cdev/Makefile +++ b/driver/aim-cdev/Makefile @@ -5,7 +5,7 @@ SRC := $(shell pwd) obj-m += aim_cdev.o aim_cdev-y := cdev.o -CFLAGS_cdev.o := -I$(src)/../../mostcore/files/ +CFLAGS_cdev.o := -I$(src)/../include/ all: $(MAKE) -C $(KERNEL_SRC) M=$(SRC) modules diff --git a/driver/aim-network/Makefile b/driver/aim-network/Makefile index 75314ff..93d6570 100644 --- a/driver/aim-network/Makefile +++ b/driver/aim-network/Makefile @@ -5,7 +5,7 @@ SRC := $(shell pwd) obj-m := aim_network.o aim_network-y := networking.o -CFLAGS_networking.o := -I$(src)/../../mostcore/files/ +CFLAGS_networking.o := -I$(src)/../include/ all: $(MAKE) -C $(KERNEL_SRC) M=$(SRC) modules diff --git a/driver/aim-network/networking.h b/driver/aim-network/networking.h deleted file mode 100644 index 6f346d4..0000000 --- a/driver/aim-network/networking.h +++ /dev/null @@ -1,21 +0,0 @@ -/* - * Networking AIM - Networking Application Interface Module for MostCore - * - * Copyright (C) 2015, Microchip Technology Germany II GmbH & Co. KG - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * This file is licensed under GPLv2. - */ -#ifndef _NETWORKING_H_ -#define _NETWORKING_H_ - -#include "mostcore.h" - -void most_deliver_netinfo(struct most_interface *iface, - unsigned char link_stat, unsigned char *mac_addr); - -#endif diff --git a/driver/aim-sound/Makefile b/driver/aim-sound/Makefile index 9defcc5..5c07108 100644 --- a/driver/aim-sound/Makefile +++ b/driver/aim-sound/Makefile @@ -5,7 +5,7 @@ SRC := $(shell pwd) obj-m += aim_sound.o aim_sound-y := sound.o -CFLAGS_sound.o := -I$(src)/../../mostcore/files/ +CFLAGS_sound.o := -I$(src)/../include/ all: $(MAKE) -C $(KERNEL_SRC) M=$(SRC) modules diff --git a/driver/aim-v4l2/Makefile b/driver/aim-v4l2/Makefile index 4bf1be7..106ed2a 100644 --- a/driver/aim-v4l2/Makefile +++ b/driver/aim-v4l2/Makefile @@ -5,7 +5,7 @@ SRC := $(shell pwd) obj-m += aim_v4l2.o aim_v4l2-y := video.o -CFLAGS_video.o := -Idrivers/media/video -I$(src)/../../mostcore/files/ +CFLAGS_video.o := -Idrivers/media/video -I$(src)/../include/ all: $(MAKE) -C $(KERNEL_SRC) M=$(SRC) modules diff --git a/driver/hdm-dim2/Makefile b/driver/hdm-dim2/Makefile index a9dc62a..8ffaa23 100644 --- a/driver/hdm-dim2/Makefile +++ b/driver/hdm-dim2/Makefile @@ -5,7 +5,7 @@ SRC := $(shell pwd) obj-m += hdm_dim2.o hdm_dim2-y := dim2_hdm.o dim2_hal.o dim2_sysfs.o -CFLAGS_dim2_hdm.o := -I$(src)/../../mostcore/files -I$(src)/../../aim-network/files +CFLAGS_dim2_hdm.o := -I$(src)/../include/ all: $(MAKE) -C $(KERNEL_SRC) M=$(SRC) modules diff --git a/driver/hdm-i2c/Makefile b/driver/hdm-i2c/Makefile index 1b96141..5117dbe 100644 --- a/driver/hdm-i2c/Makefile +++ b/driver/hdm-i2c/Makefile @@ -4,7 +4,7 @@ SRC := $(shell pwd) obj-m += hdm_i2c.o -CFLAGS_hdm_i2c.o := -I$(src)/../../mostcore/files +CFLAGS_hdm_i2c.o := -I$(src)/../include/ all: $(MAKE) -C $(KERNEL_SRC) M=$(SRC) modules diff --git a/driver/hdm-usb/Makefile b/driver/hdm-usb/Makefile index 0714f6b..28ab832 100644 --- a/driver/hdm-usb/Makefile +++ b/driver/hdm-usb/Makefile @@ -4,7 +4,7 @@ SRC := $(shell pwd) obj-m += hdm_usb.o -CFLAGS_hdm_usb.o := -I$(src)/../../aim-network/files/ -I$(src)/../../mostcore/files +CFLAGS_hdm_usb.o := -I$(src)/../include/ all: $(MAKE) -C $(KERNEL_SRC) M=$(SRC) modules diff --git a/driver/include/networking.h b/driver/include/networking.h new file mode 100644 index 0000000..6f346d4 --- /dev/null +++ b/driver/include/networking.h @@ -0,0 +1,21 @@ +/* + * Networking AIM - Networking Application Interface Module for MostCore + * + * Copyright (C) 2015, Microchip Technology Germany II GmbH & Co. KG + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * This file is licensed under GPLv2. + */ +#ifndef _NETWORKING_H_ +#define _NETWORKING_H_ + +#include "mostcore.h" + +void most_deliver_netinfo(struct most_interface *iface, + unsigned char link_stat, unsigned char *mac_addr); + +#endif -- cgit 1.2.3-korg