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
)-$(LINUX_RELEASE
))))
14 $(PKG_BUILD_DIR
)/.prepared
:
15 mkdir
-p
$(PKG_BUILD_DIR
)
16 cp
-fpR .
/src
/* $(PKG_BUILD_DIR
)/
19 $(PKG_BUILD_DIR
)/.configured
:
22 $(PKG_BUILD_DIR
)/.built
:
23 $(MAKE
) -C
"$(LINUX_DIR)" \
24 CROSS_COMPILE
="$(TARGET_CROSS)" \
25 ARCH
="$(LINUX_KARCH)" \
26 PATH
="$(TARGET_PATH)" \
27 SUBDIRS
="$(PKG_BUILD_DIR)" \
28 EXTRA_CFLAGS
="-DBCMGPIO2" \
33 install -m0755
-d
$(IDIR_KMOD_SWITCH
)/lib
/modules
/$(LINUX_VERSION
)
34 install -m0755
-d
$(IDIR_KMOD_SWITCH
)/etc
/modules.d
35 cp
-fpR
$(PKG_BUILD_DIR
)/*.
$(LINUX_KMOD_SUFFIX
) \
36 $(IDIR_KMOD_SWITCH
)/lib
/modules
/$(LINUX_VERSION
)
37 echo
"switch-core" > $(IDIR_KMOD_SWITCH
)/etc
/modules.d
/50-switch
38 echo
"switch-robo" >> $(IDIR_KMOD_SWITCH
)/etc
/modules.d
/50-switch
39 echo
"switch-adm" >> $(IDIR_KMOD_SWITCH
)/etc
/modules.d
/50-switch
40 $(IPKG_BUILD
) $(IDIR_KMOD_SWITCH
) $(PACKAGE_DIR
)
This page took 0.051184 seconds and 5 git commands to generate.