2 # Copyright (C) 2009 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
7 include $(TOPDIR
)/rules.mk
8 include $(INCLUDE_DIR
)/kernel.mk
13 include $(INCLUDE_DIR
)/package.mk
15 define KernelPackage
/ucmb
16 SUBMENU
:=Other modules
17 DEPENDS
:=@LINUX_2_6
+kmod-spi-gpio
18 KCONFIG
:=CONFIG_SPI
=y \
20 TITLE
:=Microcontroller Message Bus
(EXPERIMENTAL
)
21 FILES
:=$(PKG_BUILD_DIR
)/ucmb.
$(LINUX_KMOD_SUFFIX
)
22 AUTOLOAD
:=$(call AutoLoad
,93,ucmb
)
26 mkdir
-p
$(PKG_BUILD_DIR
)
27 $(CP
) .
/src
/* $(PKG_BUILD_DIR
)/
31 $(MAKE
) -C
"$(LINUX_DIR)" \
32 CROSS_COMPILE
="$(TARGET_CROSS)" \
33 ARCH
="$(LINUX_KARCH)" \
34 SUBDIRS
="$(PKG_BUILD_DIR)" \
35 EXTRA_CFLAGS
="$(BUILDFLAGS)" \
39 $(eval
$(call KernelPackage
,ucmb
))