3 include $(TOPDIR
)/rules.mk
6 PKG_NAME
:= kmod-switch
8 PKG_BUILD_DIR
:= $(BUILD_DIR
)/$(PKG_NAME
)
10 include $(TOPDIR
)/package
/rules.mk
12 $(eval
$(call PKG_template
,KMOD_SWITCH
,$(PKG_NAME
),$(LINUX_VERSION
)-$(BOARD
)-$(PKG_RELEASE
),$(ARCH
),kernel
($(LINUX_VERSION
)-$(BOARD
)-$(KERNEL_RELEASE
))))
15 KERNEL_DIR
:=$(LINUX_DIR
)
17 KERNEL_VERSION
=$(shell echo
"$(LINUX_VERSION)" | cut
-d.
-f1
,2)
19 $(PKG_BUILD_DIR
)/.prepared
:
20 mkdir
-p
$(PKG_BUILD_DIR
)
21 cp
-fpR .
/src
/* $(PKG_BUILD_DIR
)/
24 $(PKG_BUILD_DIR
)/.built
:
25 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
26 PATH
="$(TARGET_PATH)" \
27 ARCH
="$(LINUX_KARCH)" \
28 CROSS_COMPILE
="$(TARGET_CROSS)" \
29 KERNEL_VERSION
="$(KERNEL_VERSION)" \
30 KERNEL_DIR
="$(KERNEL_DIR)" \
31 EXTRA_CFLAGS
="-DBCMGPIO2" \
36 install -m0755
$(IDIR_KMOD_SWITCH
)/lib
/modules
/$(LINUX_VERSION
)
37 install -m0755
-d
$(IDIR_KMOD_SWITCH
)/etc
/modules.d
38 cp
-fpR
$(PKG_BUILD_DIR
)/*.
$(LINUX_KMOD_SUFFIX
) \
39 $(IDIR_KMOD_SWITCH
)/lib
/modules
/$(LINUX_VERSION
)
40 echo
"switch-core" > $(IDIR_KMOD_SWITCH
)/etc
/modules.d
/05-switch
41 echo
"switch-robo" >> $(IDIR_KMOD_SWITCH
)/etc
/modules.d
/05-switch
42 echo
"switch-adm" >> $(IDIR_KMOD_SWITCH
)/etc
/modules.d
/05-switch
43 $(IPKG_BUILD
) $(IDIR_KMOD_SWITCH
) $(PACKAGE_DIR
)
This page took 0.049199 seconds and 5 git commands to generate.