From d5374c27286219e85fb978b1961a1503247c7ef4 Mon Sep 17 00:00:00 2001 From: Christian Schneider Date: Thu, 26 May 2016 12:17:01 +0200 Subject: [PATCH 1/2] Adding apps dir to clean target --- Makefile | 3 +-- apps/Makefile | 7 ++++++- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index e422cb6..8945c55 100644 --- a/Makefile +++ b/Makefile @@ -15,5 +15,4 @@ install: all clean: rm -rf */*.o */*.ko */*.mod.c */.*.cmd .tmp_versions Module* modules* - - + $(MAKE) -C apps clean diff --git a/apps/Makefile b/apps/Makefile index 65ec4df..3fda1f8 100644 --- a/apps/Makefile +++ b/apps/Makefile @@ -1,4 +1,6 @@ -all: cit citin flashprog modt ddtest setmod ddflash +APPS = cit citin flashprog modt ddtest setmod ddflash + +all: $(APPS) cit: cit.c gcc -o cit cit.c -lpthread @@ -17,3 +19,6 @@ ddtest: ddtest.c ddflash: ddflash.c gcc -o ddflash ddflash.c + +clean: + rm -rf $(APPS) From b633f74265660c6522282c47bf9ce27d445da864 Mon Sep 17 00:00:00 2001 From: Christian Schneider Date: Thu, 26 May 2016 12:20:00 +0200 Subject: [PATCH 2/2] changed include path to linux/pci-dma-compat.h (propably for newer kernels) --- ddbridge/octonet.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ddbridge/octonet.c b/ddbridge/octonet.c index a8687b3..8d4b781 100644 --- a/ddbridge/octonet.c +++ b/ddbridge/octonet.c @@ -25,7 +25,7 @@ #include "ddbridge.h" #include "ddbridge-regs.h" -#include +#include static int adapter_alloc = 3; module_param(adapter_alloc, int, 0444);