mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-30 02:29:01 +00:00
243a7256c1
Make use of KERNEL_MAKE in kernel packages were easily possible. This moves some more code to common places and reduces the number of lines. It is defined like this: KERNEL_MAKE = $(MAKE) $(KERNEL_MAKEOPTS) KERNEL_MAKEOPTS = -C $(LINUX_DIR) $(KERNEL_MAKE_FLAGS) Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
29 lines
648 B
Makefile
29 lines
648 B
Makefile
include $(TOPDIR)/rules.mk
|
|
include $(INCLUDE_DIR)/kernel.mk
|
|
|
|
PKG_NAME:=hwmon-gsc
|
|
PKG_RELEASE:=1
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
define KernelPackage/hwmon-gsc
|
|
SUBMENU:=Hardware Monitoring Support
|
|
DEPENDS:=@TARGET_imx +kmod-hwmon-core +kmod-i2c-core
|
|
TITLE:=Driver for the Gateworks System Controller
|
|
AUTOLOAD:=$(call AutoLoad,60,gsc)
|
|
FILES:=$(PKG_BUILD_DIR)/gsc.ko
|
|
endef
|
|
|
|
define KernelPackage/hwmon-gsc/description
|
|
Kernel module for the Gateworks System Controller chips.
|
|
endef
|
|
|
|
define Build/Compile
|
|
$(KERNEL_MAKE) \
|
|
M="$(PKG_BUILD_DIR)" \
|
|
EXTRA_CFLAGS="$(BUILDFLAGS)" \
|
|
modules
|
|
endef
|
|
|
|
$(eval $(call KernelPackage,hwmon-gsc))
|