mirror of
https://github.com/coolsnowwolf/lede.git
synced 2025-04-16 04:13:31 +00:00
47 lines
962 B
Makefile
Executable File
47 lines
962 B
Makefile
Executable File
#
|
|
# Copyright (C) 2015 OpenWrt.org
|
|
#
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
# See /LICENSE for more information.
|
|
#
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
PKG_NAME:=sprd_pcie
|
|
PKG_VERSION:=1.6
|
|
PKG_RELEASE:=1
|
|
|
|
include $(INCLUDE_DIR)/kernel.mk
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
define KernelPackage/sprd_pcie
|
|
SUBMENU:=WWAN Support
|
|
TITLE:=Kernel pcie driver for SPRD device
|
|
FILES:=$(PKG_BUILD_DIR)/sprd_pcie.ko
|
|
AUTOLOAD:=$(call AutoLoad,41,sprd_pcie)
|
|
endef
|
|
|
|
define KernelPackage/sprd_pcie/description
|
|
Kernel module for register a custom pcispd platform device.
|
|
endef
|
|
|
|
MAKE_OPTS:= \
|
|
ARCH="$(LINUX_KARCH)" \
|
|
CROSS_COMPILE="$(TARGET_CROSS)" \
|
|
CXXFLAGS="$(TARGET_CXXFLAGS)" \
|
|
M="$(PKG_BUILD_DIR)" \
|
|
$(EXTRA_KCONFIG)
|
|
|
|
define Build/Prepare
|
|
mkdir -p $(PKG_BUILD_DIR)
|
|
$(CP) ./src/* $(PKG_BUILD_DIR)/
|
|
endef
|
|
|
|
define Build/Compile
|
|
$(MAKE) -C "$(LINUX_DIR)" \
|
|
$(MAKE_OPTS) \
|
|
modules
|
|
endef
|
|
|
|
$(eval $(call KernelPackage,sprd_pcie))
|