mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-22 23:12:32 +00:00
76378c6b9f
The build system already defines KERNEL_CROSS which defaults to TARGET_CROSS. Make use of this variable for kernel makefiles. Signed-off-by: Karl Vogel <karl.vogel@gmail.com>
30 lines
706 B
Makefile
30 lines
706 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_imx6||TARGET_cns3xxx 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
|
|
$(MAKE) -C "$(LINUX_DIR)" \
|
|
$(KERNEL_MAKE_FLAGS) \
|
|
SUBDIRS="$(PKG_BUILD_DIR)" \
|
|
EXTRA_CFLAGS="$(BUILDFLAGS)" \
|
|
modules
|
|
endef
|
|
|
|
$(eval $(call KernelPackage,hwmon-gsc))
|