Patchwork Lucid: Request pull fsam7400

login
register
mail settings
Submitter Tim Gardner
Date Dec. 15, 2009, 3:24 a.m.
Message ID <4B270175.7000706@canonical.com>
Download mbox | patch
Permalink /patch/41163/
State Accepted
Delegated to: Andy Whitcroft
Headers show

Comments

Tim Gardner - Dec. 15, 2009, 3:24 a.m.
The following changes since commit 28fbaff6e5e930613fc0e1edb3e205f22d2bbcfe:
   Andy Whitcroft (1):
         UBUNTU: Ubuntu-2.6.32-8.12

are available in the git repository at:

   git://kernel.ubuntu.com/rtg/ubuntu-lucid fsam7400

Tim Gardner (1):
       UBUNTU: [Config] Cleanup fsam7400 Makefile

  ubuntu/fsam7400/Makefile |   47 
----------------------------------------------
  1 files changed, 0 insertions(+), 47 deletions(-)

 From 2e6666d5346b318ff4e9e4c7d6f31d83f0441dc1 Mon Sep 17 00:00:00 2001
From: Tim Gardner <tim.gardner@canonical.com>
Date: Mon, 14 Dec 2009 16:17:34 -0700
Subject: [PATCH] UBUNTU: [Config] Cleanup fsam7400 Makefile

Ripped out the cruft from this Makefile so as not
to confuse folks.

Signed-off-by: Tim Gardner <tim.gardner@canonical.com>
---
  ubuntu/fsam7400/Makefile |   47 
----------------------------------------------
  1 files changed, 0 insertions(+), 47 deletions(-)

-
-install: $(TARGET)
-	mkdir -p /lib/modules/$(KERNELVERSION)/extra
-	cp -v $(TARGET) /lib/modules/$(KERNELVERSION)/extra/
-	depmod -a
Andy Whitcroft - Dec. 15, 2009, 4:35 p.m.
Applied to Lucid.

-apw

Patch

diff --git a/ubuntu/fsam7400/Makefile b/ubuntu/fsam7400/Makefile
index b5a3a15..bba206f 100644
--- a/ubuntu/fsam7400/Makefile
+++ b/ubuntu/fsam7400/Makefile
@@ -1,49 +1,2 @@ 
-KERNELSRC?=/lib/modules/`uname -r`/build
-KERNELVERSION=$(shell awk -F\" '/REL/ {print $$2}' $(shell grep -s -l 
REL $(KERNELSRC)/include/linux/version.h 
$(KERNELSRC)/include/linux/utsrelease.h))
-KERNELMAJOR=$(shell echo $(KERNELVERSION)|head -c3)

-CONFIG_FSAM7400?=m
  obj-$(CONFIG_FSAM7400) += fsam7400.o
-
-EXTRA_CFLAGS+=-c -Wall -Wstrict-prototypes -Wno-trigraphs 
-fno-strict-aliasing -fno-common
-INCLUDE=-I$(KERNELSRC)/include
-
-ifeq ($(KERNELMAJOR), 2.6)
-KERNEL26 := 1
-TARGET := fsam7400.ko
-else
-TARGET := fsam7400.o
-endif
-
-SOURCE := fsam7400.c
-
-all: $(TARGET)
-
-help:
-	@echo Possible targets:
-	@echo -e all\\t- default target, builds kernel module
-	@echo -e install\\t- copies module binary to 
/lib/modules/$(KERNELVERSION)/extra/
-	@echo -e clean\\t- removes all binaries and temporary files
-
-fsam7400.ko: $(SOURCE)
-	$(MAKE) -C $(KERNELSRC) SUBDIRS=$(PWD) modules
-
-fsam7400.o: $(SOURCE)
-	$(CC) $(INCLUDE) $(EXTRA_CFLAGS) -DDEBUG -DMODVERSIONS -DMODULE 
-D__KERNEL__ -o $(TARGET) $(SOURCE)
-
-clean:
-	@echo -n "sweeping directory... "
-	@rm -f *~ *.o *.ko .fsam7400* *.mod.c *symvers .tmp_versions/*
-	@if [ -d .tmp_versions ]; then rmdir .tmp_versions; fi
-	@echo "done"
-
-load:	$(TARGET)
-	insmod $(TARGET)
-
-unload:
-	rmmod fsam7400