fix kernel package and kernel modules dependency on it
authorNicolas Thill <nico@openwrt.org>
Tue, 15 Nov 2005 08:23:42 +0000 (08:23 +0000)
committerNicolas Thill <nico@openwrt.org>
Tue, 15 Nov 2005 08:23:42 +0000 (08:23 +0000)
SVN-Revision: 2492

openwrt/target/linux/control/kernel.control
openwrt/target/linux/linux-2.4/Makefile
openwrt/target/linux/linux-2.6/Makefile
openwrt/target/linux/rules.mk

index 32e6fdc3136327709ba845b7e41523062a08f2ea..5432d21a0f2032e7756f9309df361477020ef6a0 100644 (file)
@@ -1,3 +1,4 @@
+Package: kernel
 Priority: optional
 Section: sys
 Maintainer: Felix Fietkau <nbd@vd-s.ath.cx>
index d487446209d20a018f8a10307d1d95a081daf0d2..39828963ebc3959d5f639408d781806138b6cb7f 100644 (file)
@@ -426,8 +426,7 @@ $(TARGET_MODULES_DIR):
 $(KERNEL_IPKG):
        rm -rf $(KERNEL_IDIR)
        mkdir -p $(KERNEL_IDIR)/etc
-       $(SCRIPT_DIR)/make-ipkg-dir.sh $(KERNEL_IDIR) ../control/kernel.control $(PKG_RELEASE) $(ARCH) 
-       echo 'Package: kernel-$(LINUX_VERSION)-$(BOARD)' >> $(KERNEL_IDIR)/CONTROL/control
+       $(SCRIPT_DIR)/make-ipkg-dir.sh $(KERNEL_IDIR) ../control/kernel.control $(LINUX_VERSION)-$(BOARD)-$(PKG_RELEASE) $(ARCH)
        if [ -f ./config/$(BOARD).modules ]; then \
                cp ./config/$(BOARD).modules $(KERNEL_IDIR)/etc/modules; \
        fi
index ce4993047084906f288b49e1991d3798ce4c603f..212a4a76ab639b5d558b2f87cb3197297353d89e 100644 (file)
@@ -444,8 +444,7 @@ $(TARGET_MODULES_DIR):
 $(KERNEL_IPKG):
        rm -rf $(KERNEL_IDIR)
        mkdir -p $(KERNEL_IDIR)/etc
-       $(SCRIPT_DIR)/make-ipkg-dir.sh $(KERNEL_IDIR) ../control/kernel.control $(PKG_RELEASE) $(ARCH) 
-       echo 'Package: kernel-$(LINUX_VERSION)-$(BOARD)' >> $(KERNEL_IDIR)/CONTROL/control
+       $(SCRIPT_DIR)/make-ipkg-dir.sh $(KERNEL_IDIR) ../control/kernel.control $(LINUX_VERSION)-$(BOARD)-$(PKG_RELEASE) $(ARCH)
        if [ -f ./config/$(BOARD).modules ]; then \
                cp ./config/$(BOARD).modules $(KERNEL_IDIR)/etc/modules; \
        fi
index be151ea10f5ba7e94a3e89dc173e95741f21b33e..8871fa442e92457eb5da3c40c5025750ab0953df 100644 (file)
@@ -17,11 +17,7 @@ else
 KDEPEND_$(1):=$($(4))
 endif
 
-ifeq ($$(strip $(5)),)
-IDEPEND_$(1):=kernel-$(LINUX_VERSION)-$(BOARD) ($(PKG_RELEASE))
-else
-IDEPEND_$(1):=kernel-$(LINUX_VERSION)-$(BOARD) ($(PKG_RELEASE)), $(5)
-endif
+IDEPEND_$(1):=kernel ($(LINUX_VERSION)-$(BOARD)-$(PKG_RELEASE)) $(foreach pkg,$(5),", $(pkg)")
 
 PKG_$(1) := $(PACKAGE_DIR)/kmod-$(2)_$(LINUX_VERSION)-$(BOARD)-$(PKG_RELEASE)_$(ARCH).ipk
 I_$(1) := $(PKG_BUILD_DIR)/ipkg/$(2)