distribution/packages/kernel/linux-drivers/RTL8188EU/package.mk

32 lines
940 B
Makefile
Raw Normal View History

2023-03-30 15:19:43 +00:00
# SPDX-License-Identifier: GPL-2.0-or-later
# Copyright (C) 2009-2016 Stephan Raue (stephan@openelec.tv)
# Copyright (C) 2018-present Team LibreELEC (https://libreelec.tv)
PKG_NAME="RTL8188EU"
PKG_VERSION="306f3e62cf7cddf8cee74f70f88a7a7b3af46f56"
2023-03-30 15:19:43 +00:00
PKG_LICENSE="GPL"
PKG_SITE="https://github.com/lwfinger/rtl8188eu"
PKG_URL="https://github.com/lwfinger/rtl8188eu/archive/${PKG_VERSION}.tar.gz"
2023-07-03 09:31:17 +00:00
PKG_DEPENDS_TARGET="toolchain linux linux kernel-firmware"
2023-03-31 01:51:46 +00:00
PKG_NEED_UNPACK="${LINUX_DEPENDS}"
2023-03-30 15:19:43 +00:00
PKG_LONGDESC="Realtek RTL81xxEU Linux 3.x driver"
PKG_IS_KERNEL_PKG="yes"
PKG_TOOLCHAIN="make"
2023-03-30 15:19:43 +00:00
pre_make_target() {
unset LDFLAGS
}
make_target() {
make modules \
ARCH=${TARGET_KERNEL_ARCH} \
KSRC=$(kernel_path) \
CROSS_COMPILE=${TARGET_KERNEL_PREFIX} \
2023-07-13 21:58:51 +00:00
CONFIG_POWER_SAVING=y
2023-03-30 15:19:43 +00:00
}
makeinstall_target() {
mkdir -p ${INSTALL}/$(get_full_module_dir)/${PKG_NAME}
cp *.ko ${INSTALL}/$(get_full_module_dir)/${PKG_NAME}
}