2 ifneq (,$(findstring 2.4.
,$(LINUX_VERSION
)))
5 ifneq (,$(findstring 2.6.
,$(LINUX_VERSION
)))
9 MODULES_SUBDIR
:=lib
/modules
/$(LINUX_VERSION
)
11 LINUX_BUILD_DIR
:=$(BUILD_DIR
)/linux-
$(KERNEL
)-$(BOARD
)
12 LINUX_DIR
:= $(LINUX_BUILD_DIR
)/linux-
$(LINUX_VERSION
)
13 LINUX_KERNEL
:=$(LINUX_BUILD_DIR
)/vmlinux
15 LINUX_TARGET_DIR
:=$(LINUX_BUILD_DIR
)/root
16 IPKG_KERNEL
:=IPKG_TMP
=$(BUILD_DIR
)/tmp IPKG_INSTROOT
=$(LINUX_TARGET_DIR
) IPKG_CONF_DIR
=$(LINUX_BUILD_DIR
) $(SCRIPT_DIR
)/ipkg
-force-defaults
-force-depends
18 LINUX_KARCH
:=$(shell echo
$(ARCH
) | sed
-e
's/i[3-9]86/i386/' \
26 KMOD_BUILD_DIR
:= $(LINUX_BUILD_DIR
)/linux-modules
27 MODULES_DIR
:= $(LINUX_BUILD_DIR
)/modules
/$(MODULES_SUBDIR
)
28 TARGET_MODULES_DIR
:= $(LINUX_TARGET_DIR
)/$(MODULES_SUBDIR
)
37 ifeq ($$(strip $(4)),)
43 IDEPEND_
$(1):=kernel
($(LINUX_VERSION
)-$(BOARD
)-$(LINUX_RELEASE
)) $(foreach pkg
,$(5),", $(pkg)")
45 PKG_
$(1) := $(PACKAGE_DIR
)/kmod-
$(2)_
$(LINUX_VERSION
)-$(BOARD
)-$(LINUX_RELEASE
)_
$(ARCH
).ipk
46 I_
$(1) := $(KMOD_BUILD_DIR
)/ipkg
/$(2)
48 ifeq ($$(KDEPEND_
$(1)),m
)
49 ifneq ($(CONFIG_PACKAGE_KMOD_
$(1)),)
50 TARGETS
+= $$(PKG_
$(1))
52 ifeq ($(CONFIG_PACKAGE_KMOD_
$(1)),y
)
53 INSTALL_TARGETS
+= $$(PKG_
$(1))
57 $$(PKG_
$(1)): $(LINUX_DIR
)/.modules_done
59 $(SCRIPT_DIR
)/make-ipkg-dir.sh
$$(I_
$(1)) ..
/control
/kmod-
$(2).control
$(LINUX_VERSION
)-$(BOARD
)-$(LINUX_RELEASE
) $(ARCH
)
60 echo
"Depends: $$(IDEPEND_$(1))" >> $$(I_
$(1))/CONTROL
/control
61 ifneq ($(strip $(3)),)
62 mkdir
-p
$$(I_
$(1))/lib
/modules
/$(LINUX_VERSION
)
63 $(CP
) $(3) $$(I_
$(1))/lib
/modules
/$(LINUX_VERSION
)
66 mkdir
-p
$$(I_
$(1))/etc
/modules.d
67 for module in
$(7); do \
68 echo
$$$$module >> $$(I_
$(1))/etc
/modules.d
/$(6)-$(2); \
70 echo
"#!/bin/sh" >> $$(I_
$(1))/CONTROL
/postinst
71 echo
"[ -z \"\$$$$IPKG_INSTROOT\" ] || exit" >> $$(I_
$(1))/CONTROL
/postinst
72 echo
". /etc/functions.sh" >> $$(I_
$(1))/CONTROL
/postinst
73 echo
"load_modules /etc/modules.d/$(6)-$(2)" >> $$(I_
$(1))/CONTROL
/postinst
74 chmod
0755 $$(I_
$(1))/CONTROL
/postinst
77 $(IPKG_BUILD
) $$(I_
$(1)) $(PACKAGE_DIR
)
81 KERNEL_IPKG
:=$(LINUX_BUILD_DIR
)/kernel_
$(LINUX_VERSION
)-$(BOARD
)-$(LINUX_RELEASE
)_
$(ARCH
).ipk
82 INSTALL_TARGETS
:= $(KERNEL_IPKG
)
This page took 0.071177 seconds and 5 git commands to generate.