mirror of
https://dev.iopsys.eu/feed/iopsys.git
synced 2025-12-09 23:34:51 +01:00
Use a more modern approach for building kernel modules out-of-tree. Remove a lot of unused stuff.
44 lines
1.3 KiB
Makefile
44 lines
1.3 KiB
Makefile
# Copyright (c) 2017 Genexis B.V.
|
|
#
|
|
# This program is free software; you can redistribute it and/or
|
|
# modify it under the terms of the GNU General Public License
|
|
# version 2 as published by the Free Software Foundation.
|
|
#
|
|
# This program is distributed in the hope that it will be useful, but
|
|
# WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
# General Public License for more details.
|
|
#
|
|
# You should have received a copy of the GNU General Public License
|
|
# along with this program; if not, write to the Free Software
|
|
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
|
|
# 02110-1301 USA
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
include $(INCLUDE_DIR)/kernel.mk
|
|
|
|
PKG_NAME:=gryphon-led-kernel-module
|
|
PKG_VERSION:=1.0.0
|
|
PKG_LICENSE:=GPL-2.0
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
define KernelPackage/$(PKG_NAME)
|
|
SUBMENU:=LED modules
|
|
TITLE:=LED driver for Gryphon
|
|
FILES:=$(PKG_BUILD_DIR)/$(PKG_NAME).$(LINUX_KMOD_SUFFIX)
|
|
AUTOLOAD:=$(call AutoLoad,60,$(PKG_NAME))
|
|
endef
|
|
|
|
define KernelPackage/$(PKG_NAME)/description
|
|
This package contains the LED driver for Gryphon devices.
|
|
endef
|
|
|
|
# support compilation against BCM SDK kernel
|
|
-include ../../broadcom/bcmkernel/bcm-kernel-toolchain.mk
|
|
|
|
define Build/Compile
|
|
$(KERNEL_MAKE) M="$(PKG_BUILD_DIR)" modules
|
|
endef
|
|
|
|
$(eval $(call KernelPackage,$(PKG_NAME)))
|