[Armadeus-commitlog] SF.net SVN: armadeus:[967] trunk/target/linux/modules
Brought to you by:
sszy
|
From: <ar...@us...> - 2008-12-19 13:09:45
|
Revision: 967
http://armadeus.svn.sourceforge.net/armadeus/?rev=967&view=rev
Author: artemys
Date: 2008-12-19 13:09:41 +0000 (Fri, 19 Dec 2008)
Log Message:
-----------
[LINUX] Factorizes common Makefile targets (default & clean) for Armadeus custom drivers
Modified Paths:
--------------
trunk/target/linux/modules/Makefile
trunk/target/linux/modules/backlight/Makefile
trunk/target/linux/modules/fpga/Makefile
trunk/target/linux/modules/fpga/others/Makefile
trunk/target/linux/modules/fpga/others/ps2keyboard/Makefile
trunk/target/linux/modules/generic/Makefile
trunk/target/linux/modules/gpio/Makefile
trunk/target/linux/modules/imxlkeypad/Makefile
trunk/target/linux/modules/isp1761/Makefile
trunk/target/linux/modules/max1027/Makefile
trunk/target/linux/modules/pwm/Makefile
Added Paths:
-----------
trunk/target/linux/modules/Makefile.in
Modified: trunk/target/linux/modules/Makefile
===================================================================
--- trunk/target/linux/modules/Makefile 2008-12-19 10:00:43 UTC (rev 966)
+++ trunk/target/linux/modules/Makefile 2008-12-19 13:09:41 UTC (rev 967)
@@ -21,16 +21,17 @@
ifeq ($(LINUX_DIR),)
LINUX_DIR:=$(ARMADEUS_LINUX_DIR)
endif
-PWD:= $(shell pwd)
+KDIR := $(LINUX_DIR)
+PWD := $(shell pwd)
default:
- echo "Your Linux source dir is: $(LINUX_DIR)"
- $(MAKE) -C $(LINUX_DIR) SUBDIRS=$(PWD) modules
+ $(MAKE) -C $(KDIR) SUBDIRS=$(PWD) modules
+DIRS := $(shell ls)
clean:
- echo "Your Linux source dir is: $(LINUX_DIR)"
- $(MAKE) -C $(LINUX_DIR) SUBDIRS=$(PWD) clean
-
+ $(MAKE) -C $(KDIR) SUBDIRS=$(PWD) clean
+ for directory in $(DIRS); do if [ -d "$$directory" ] && [ ! -L "$$directory" ]; then $(MAKE) -C $$directory clean; fi ; done
+
install:
echo "Installing Armadeus drivers..."
$(MAKE) -C $(LINUX_DIR) SUBDIRS=$(PWD) INSTALL_MOD_PATH=$(TARGET_DIR) modules_install
Added: trunk/target/linux/modules/Makefile.in
===================================================================
--- trunk/target/linux/modules/Makefile.in (rev 0)
+++ trunk/target/linux/modules/Makefile.in 2008-12-19 13:09:41 UTC (rev 967)
@@ -0,0 +1,13 @@
+#
+# Helpers Makefile for the Armadeus drivers
+#
+#
+
+default:
+ $(MAKE) -C $(KDIR) SUBDIRS=$(PWD) modules
+
+clean:
+ $(MAKE) -C $(KDIR) SUBDIRS=$(PWD) clean
+ rm -f modules.order
+ rm -rf .tmp_versions/
+
Property changes on: trunk/target/linux/modules/Makefile.in
___________________________________________________________________
Added: svn:executable
+ *
Modified: trunk/target/linux/modules/backlight/Makefile
===================================================================
--- trunk/target/linux/modules/backlight/Makefile 2008-12-19 10:00:43 UTC (rev 966)
+++ trunk/target/linux/modules/backlight/Makefile 2008-12-19 13:09:41 UTC (rev 967)
@@ -23,13 +23,8 @@
KDIR := $(ARMADEUS_LINUX_DIR)
PWD := $(shell pwd)
-default:
- $(MAKE) -C $(KDIR) SUBDIRS=$(PWD) modules
+# Armadeus custom drivers common targets (default, clean, etc...)
+include ../Makefile.in
-clean:
- rm -f *.*o
- rm -f Module.symvers
- rm -f .*.cmd
-
endif
Modified: trunk/target/linux/modules/fpga/Makefile
===================================================================
--- trunk/target/linux/modules/fpga/Makefile 2008-12-19 10:00:43 UTC (rev 966)
+++ trunk/target/linux/modules/fpga/Makefile 2008-12-19 13:09:41 UTC (rev 967)
@@ -20,16 +20,12 @@
ifeq ($(LINUX_DIR),)
LINUX_DIR:=$(ARMADEUS_LINUX_DIR)
endif
-PWD:= $(shell pwd)
+KDIR := $(LINUX_DIR)
+PWD := $(shell pwd)
-default:
- echo "Your Linux source dir is: $(LINUX_DIR)"
- $(MAKE) -C $(LINUX_DIR) SUBDIRS=$(PWD) zImage modules
+# Armadeus custom drivers common targets (default, clean, etc...)
+include ../Makefile.in
-clean:
- echo "Your Linux source dir is: $(LINUX_DIR)"
- $(MAKE) -C $(LINUX_DIR) SUBDIRS=$(PWD) clean
-
install:
echo "Installing Armadeus drivers..."
$(MAKE) -C $(LINUX_DIR) SUBDIRS=$(PWD) INSTALL_MOD_PATH=$(TARGET_DIR) modules_install
Modified: trunk/target/linux/modules/fpga/others/Makefile
===================================================================
--- trunk/target/linux/modules/fpga/others/Makefile 2008-12-19 10:00:43 UTC (rev 966)
+++ trunk/target/linux/modules/fpga/others/Makefile 2008-12-19 13:09:41 UTC (rev 967)
@@ -20,19 +20,15 @@
ifeq ($(LINUX_DIR),)
LINUX_DIR:=$(ARMADEUS_LINUX_DIR)
endif
-PWD:= $(shell pwd)
+KDIR := $(LINUX_DIR)
+PWD := $(shell pwd)
-default:
- echo "Your Linux source dir is: $(LINUX_DIR)"
- $(MAKE) -C $(LINUX_DIR) SUBDIRS=$(PWD) zImage modules
+# Armadeus custom drivers common targets (default, clean, etc...)
+include ../../Makefile.in
-clean:
- echo "Your Linux source dir is: $(LINUX_DIR)"
- $(MAKE) -C $(LINUX_DIR) SUBDIRS=$(PWD) clean
-
install:
echo "Installing Armadeus drivers..."
- $(MAKE) -C $(LINUX_DIR) SUBDIRS=$(PWD) INSTALL_MOD_PATH=$(TARGET_DIR) modules_install
+ $(MAKE) -C $(LINUX_DIR) SUBDIRS=$(PWD) INSTALL_MOD_PATH=$(TARGET_DIR) modules_install
endif
Modified: trunk/target/linux/modules/fpga/others/ps2keyboard/Makefile
===================================================================
--- trunk/target/linux/modules/fpga/others/ps2keyboard/Makefile 2008-12-19 10:00:43 UTC (rev 966)
+++ trunk/target/linux/modules/fpga/others/ps2keyboard/Makefile 2008-12-19 13:09:41 UTC (rev 967)
@@ -18,12 +18,8 @@
KDIR := $(ARMADEUS_LINUX_DIR)
PWD := $(shell pwd)
-default:
- $(MAKE) -C $(KDIR) SUBDIRS=$(PWD) modules
-
-clean:
- rm -f *.*o
- rm -f Module.symvers
+# Armadeus custom drivers common targets (default, clean, etc...)
+include ../../../Makefile.in
endif
Modified: trunk/target/linux/modules/generic/Makefile
===================================================================
--- trunk/target/linux/modules/generic/Makefile 2008-12-19 10:00:43 UTC (rev 966)
+++ trunk/target/linux/modules/generic/Makefile 2008-12-19 13:09:41 UTC (rev 967)
@@ -18,12 +18,8 @@
KDIR := $(ARMADEUS_LINUX_DIR)
PWD := $(shell pwd)
-default:
- $(MAKE) -C $(KDIR) SUBDIRS=$(PWD) modules
+# Armadeus custom drivers common targets (default, clean, etc...)
+include ../Makefile.in
-clean:
- rm -f *.*o
- rm -f Module.symvers
-
endif
Modified: trunk/target/linux/modules/gpio/Makefile
===================================================================
--- trunk/target/linux/modules/gpio/Makefile 2008-12-19 10:00:43 UTC (rev 966)
+++ trunk/target/linux/modules/gpio/Makefile 2008-12-19 13:09:41 UTC (rev 967)
@@ -21,14 +21,8 @@
KDIR := $(ARMADEUS_LINUX_DIR)
PWD := $(shell pwd)
-default:
- $(MAKE) -C $(KDIR) SUBDIRS=$(PWD) modules
+# Armadeus custom drivers common targets:
+include ../Makefile.in
-clean:
- rm -f *.*o \
- rm -f Module.symvers
- rm -f .*.cmd
- rm -f *.mod.c
- rm -rf .tmp_versions/
endif
Modified: trunk/target/linux/modules/imxlkeypad/Makefile
===================================================================
--- trunk/target/linux/modules/imxlkeypad/Makefile 2008-12-19 10:00:43 UTC (rev 966)
+++ trunk/target/linux/modules/imxlkeypad/Makefile 2008-12-19 13:09:41 UTC (rev 967)
@@ -17,12 +17,7 @@
KDIR := $(ARMADEUS_LINUX_DIR)
PWD := $(shell pwd)
-default:
- $(MAKE) -C $(KDIR) SUBDIRS=$(PWD) modules
-
-clean:
- rm -f .*.cmd
- rm -f *.*o
- rm -f Module.symvers
-
+# Armadeus custom drivers common targets (default, clean, etc...)
+include ../Makefile.in
+
endif
Modified: trunk/target/linux/modules/isp1761/Makefile
===================================================================
--- trunk/target/linux/modules/isp1761/Makefile 2008-12-19 10:00:43 UTC (rev 966)
+++ trunk/target/linux/modules/isp1761/Makefile 2008-12-19 13:09:41 UTC (rev 967)
@@ -16,16 +16,12 @@
ifeq ($(LINUX_DIR),)
LINUX_DIR := $(ARMADEUS_LINUX_DIR)
endif
+KDIR := $(LINUX_DIR)
PWD := $(shell pwd)
-default:
- echo "Your Linux source dir is: $(LINUX_DIR)"
- $(MAKE) -C $(LINUX_DIR) SUBDIRS=$(PWD) modules
+# Armadeus custom drivers common targets (default, clean, etc...)
+include ../Makefile.in
-clean:
- echo "Your Linux source dir is: $(LINUX_DIR)"
- $(MAKE) -C $(LINUX_DIR) SUBDIRS=$(PWD) clean
-
install:
echo "Installing Armadeus drivers..."
$(MAKE) -C $(LINUX_DIR) SUBDIRS=$(PWD) INSTALL_MOD_PATH=$(TARGET_DIR) modules_install
Modified: trunk/target/linux/modules/max1027/Makefile
===================================================================
--- trunk/target/linux/modules/max1027/Makefile 2008-12-19 10:00:43 UTC (rev 966)
+++ trunk/target/linux/modules/max1027/Makefile 2008-12-19 13:09:41 UTC (rev 967)
@@ -17,14 +17,8 @@
KDIR := $(ARMADEUS_LINUX_DIR)
PWD := $(shell pwd)
-default:
- $(MAKE) -C $(KDIR) SUBDIRS=$(PWD) modules
+# Armadeus custom drivers common targets (default, clean, etc...)
+include ../Makefile.in
-clean:
- rm -f *.*o \
- rm -f Module.symvers
- rm -f .*.cmd
- rm -f *.mod.c
- rm -rf .tmp_versions/
endif
Modified: trunk/target/linux/modules/pwm/Makefile
===================================================================
--- trunk/target/linux/modules/pwm/Makefile 2008-12-19 10:00:43 UTC (rev 966)
+++ trunk/target/linux/modules/pwm/Makefile 2008-12-19 13:09:41 UTC (rev 967)
@@ -20,12 +20,8 @@
KDIR := $(ARMADEUS_LINUX_DIR)
PWD := $(shell pwd)
-default:
- $(MAKE) -C $(KDIR) SUBDIRS=$(PWD) modules
+# Armadeus custom drivers common targets (default, clean, etc...)
+include ../Makefile.in
-clean:
- rm -f *.*o \
- rm -f Module.symvers
-
endif
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|