]> git.ipfire.org Git - people/pmueller/ipfire-2.x.git/commitdiff
prepared build of dm9601 module
authorarne_f <arne_f@ea5c0bd1-69bd-2848-81d8-4f18e57aeed8>
Sat, 26 Jan 2008 12:24:04 +0000 (12:24 +0000)
committerarne_f <arne_f@ea5c0bd1-69bd-2848-81d8-4f18e57aeed8>
Sat, 26 Jan 2008 12:24:04 +0000 (12:24 +0000)
fixed directory of mcs7380 module
added usb-net patched kudzu to core 6

git-svn-id: http://svn.ipfire.org/svn/ipfire/branches/2.1/trunk@1159 ea5c0bd1-69bd-2848-81d8-4f18e57aeed8

config/rootfiles/core/6/files
doc/packages-list.txt
lfs/dm9601 [new file with mode: 0644]
lfs/kudzu
lfs/mcs7830
make.sh
src/patches/kudzu-usbnet.patch [moved from src/patches/kudzu-mcs7830.patch with 84% similarity]

index 2e18d32a4fefea5bad4079fb5d7627dfb1f7f704..31e0858f791e3f4a1006edb5696c229bca394fd4 100644 (file)
@@ -2,9 +2,10 @@ lib/modules/2.6.16.57-ipfire/kernel/fs/fuse
 lib/modules/2.6.16.57-ipfire-smp/kernel/fs/fuse
 lib/modules/2.6.16.57-ipfire/kernel/drivers/net/r8169.ko
 lib/modules/2.6.16.57-ipfire/kernel/drivers/net/r8168.ko
-lib/modules/2.6.16.57-ipfire/kernel/drivers/net/mcs7830.ko
+lib/modules/2.6.16.57-ipfire/kernel/drivers/usb/net/mcs7830.ko
 lib/modules/2.6.16.57-ipfire-smp/kernel/drivers/ieee1394/sbp2.ko
 lib/modules/2.6.16.57-ipfire-smp/kernel/drivers/net/r8169.ko
 lib/modules/2.6.16.57-ipfire-smp/kernel/drivers/net/r8168.ko
-lib/modules/2.6.16.57-ipfire-smp/kernel/drivers/net/mcs7830.ko
+lib/modules/2.6.16.57-ipfire-smp/kernel/drivers/usb/net/mcs7830.ko
 lib/modules/2.6.16.57-ipfire-smp/kernel/drivers/ieee1394/sbp2.ko
+/sbin/kudzu
index 1a7bd0401c63f80d7e3bacb9ed7790f67c0fa4a2..2ef6eeccc93f860682fa8dcc9c3c7b28d913c84d 100644 (file)
@@ -64,6 +64,7 @@
 * dhcp-3.1.0
 * dhcpcd-2.0.8
 * diffutils-2.8.1
+* dm9601-1.01
 * dnsmasq-2.40
 * dosfstools-2.11
 * e2fsprogs-1.39
diff --git a/lfs/dm9601 b/lfs/dm9601
new file mode 100644 (file)
index 0000000..99ac57e
--- /dev/null
@@ -0,0 +1,92 @@
+###############################################################################
+#                                                                             #
+# IPFire.org - A linux based firewall                                         #
+# Copyright (C) 2007  Michael Tremer & Christian Schmidt                      #
+#                                                                             #
+# This program is free software: you can redistribute it and/or modify        #
+# it under the terms of the GNU General Public License as published by        #
+# the Free Software Foundation, either version 3 of the License, or           #
+# (at your option) any later version.                                         #
+#                                                                             #
+# 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.                                #
+#                                                                             #
+# You should have received a copy of the GNU General Public License           #
+# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
+#                                                                             #
+###############################################################################
+
+###############################################################################
+# Definitions
+###############################################################################
+
+include Config
+
+VER        = 1.01
+
+THISAPP    = dm9601-$(VER)
+DL_FILE    = $(THISAPP).tar.bz2
+DL_FROM    = $(URL_IPFIRE)
+DIR_APP    = $(DIR_SRC)/$(THISAPP)
+ifeq "$(SMP)" "1"
+       TARGET     = $(DIR_INFO)/$(THISAPP)-smp
+else
+       TARGET     = $(DIR_INFO)/$(THISAPP)
+endif
+
+
+###############################################################################
+# Top-level Rules
+###############################################################################
+
+objects = $(DL_FILE)
+
+$(DL_FILE) = $(DL_FROM)/$(DL_FILE)
+
+$(DL_FILE)_MD5 = c84094aea1f89831762eaa5dcc910ccd
+
+install : $(TARGET)
+
+check : $(patsubst %,$(DIR_CHK)/%,$(objects))
+
+download :$(patsubst %,$(DIR_DL)/%,$(objects))
+
+md5 : $(subst %,%_MD5,$(objects))
+
+dist: 
+       $(PAK)
+
+###############################################################################
+# Downloading, checking, md5sum
+###############################################################################
+
+$(patsubst %,$(DIR_CHK)/%,$(objects)) :
+       @$(CHECK)
+
+$(patsubst %,$(DIR_DL)/%,$(objects)) :
+       @$(LOAD)
+
+$(subst %,%_MD5,$(objects)) :
+       @$(MD5)
+
+###############################################################################
+# Installation Details
+###############################################################################
+
+$(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects))
+       @$(PREBUILD)
+       @rm -rf $(DIR_APP) && cd $(DIR_SRC) && tar jxf $(DIR_DL)/$(DL_FILE)
+       
+ifeq "$(SMP)" "1"
+       cd $(DIR_APP) && make clean
+       cd $(DIR_APP) && make -C /lib/modules/$(KVER)-ipfire-smp/build/ SUBDIRS=$(DIR_APP) modules
+       cd $(DIR_APP) && install -m 644 dm9601.ko /lib/modules/$(KVER)-ipfire-smp/kernel/drivers/usb/net 
+else
+       cd $(DIR_APP) && make clean
+       cd $(DIR_APP) && make -C /lib/modules/$(KVER)-ipfire/build/ SUBDIRS=$(DIR_APP) modules
+       cd $(DIR_APP) && install -m 644 dm9601.ko /lib/modules/$(KVER)-ipfire/kernel/drivers/usb/net 
+endif
+       @rm -rf $(DIR_APP)
+       @$(POSTBUILD)
index b6a1a6677c888e6c27968dcb9fa18da1fd8f1b5e..f66c3252ffc7a7925d488c919e7f83f78eb519a6 100644 (file)
--- a/lfs/kudzu
+++ b/lfs/kudzu
@@ -74,7 +74,7 @@ $(subst %,%_MD5,$(objects)) :
 $(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects))
        @$(PREBUILD)
        @rm -rf $(DIR_APP) && cd $(DIR_SRC) && tar zxf $(DIR_DL)/$(DL_FILE)
-       cd $(DIR_APP) && patch -Np1 < $(DIR_SRC)/src/patches/kudzu-mcs7830.patch
+       cd $(DIR_APP) && patch -Np1 < $(DIR_SRC)/src/patches/kudzu-usbnet.patch
 ifeq "$(LFS_PASS)" "install"
        cd $(DIR_APP) && patch -N < $(DIR_SRC)/src/patches/kudzu-link-lintl.diff
        cd $(DIR_APP) && make RPM_OPT_FLAGS="-O2 -I/opt/$(MACHINE)-uClibc/include" \
index 2d1be4022510b0b315d166d9d164a20cf91b7654..e5eb43bf8f05175c5b114a7de01e6e39f1842e7b 100644 (file)
@@ -82,11 +82,11 @@ $(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects))
 ifeq "$(SMP)" "1"
        cd $(DIR_APP) && make clean
        cd $(DIR_APP) && make -C /lib/modules/$(KVER)-ipfire-smp/build/ SUBDIRS=$(DIR_APP) modules
-       cd $(DIR_APP) && install -m 644 mcs7830.ko /lib/modules/$(KVER)-ipfire-smp/kernel/drivers/net 
+       cd $(DIR_APP) && install -m 644 mcs7830.ko /lib/modules/$(KVER)-ipfire-smp/kernel/drivers/usb/net 
 else
        cd $(DIR_APP) && make clean
        cd $(DIR_APP) && make -C /lib/modules/$(KVER)-ipfire/build/ SUBDIRS=$(DIR_APP) modules
-       cd $(DIR_APP) && install -m 644 mcs7830.ko /lib/modules/$(KVER)-ipfire/kernel/drivers/net 
+       cd $(DIR_APP) && install -m 644 mcs7830.ko /lib/modules/$(KVER)-ipfire/kernel/drivers/usb/net 
 endif
        @rm -rf $(DIR_APP)
        @$(POSTBUILD)
diff --git a/make.sh b/make.sh
index b3e32127c145698b793e312341627544f089e133..db032cd1c1f9984122028da5365d88ac33cc589f 100755 (executable)
--- a/make.sh
+++ b/make.sh
@@ -332,12 +332,14 @@ buildipfire() {
   ipfiremake r8169                     SMP=1
   ipfiremake r8168                     SMP=1
   ipfiremake mcs7830                   SMP=1
+#  ipfiremake dm9601                   SMP=1
   ipfiremake linux
   ipfiremake ipp2p
   ipfiremake zaptel
   ipfiremake r8169
   ipfiremake r8168
   ipfiremake mcs7830
+#  ipfiremake dm9601
   ipfiremake pkg-config
   ipfiremake linux-atm
   ipfiremake cpio
similarity index 84%
rename from src/patches/kudzu-mcs7830.patch
rename to src/patches/kudzu-usbnet.patch
index f170bef7c57ad63aaa1667c3bbe07e6d4178a26f..a33c6fb708182c7fbba5753e8bc8dab6ad247b6e 100644 (file)
@@ -5,7 +5,7 @@ diff -Naur kudzu.org/usb.c kudzu-1.2.64/usb.c
                            !strcmp(t->driver, "ax8817x") ||
                            !strcmp(t->driver, "zd1201") ||
                            !strcmp(t->driver, "asix") ||
-+                          !strcmp(t->driver, "mcs7830") ||
++                          !strcmp(t->driver, "mcs7830") || !strcmp(t->driver, "dm9601") ||
                            !strcmp(t->driver, "usbnet"))) {
                                if (t->type == CLASS_OTHER)
                                        t->type = CLASS_NETWORK;