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

31 lines
916 B
Makefile
Raw Normal View History

2022-09-11 22:55:53 +00:00
PKG_NAME="RTL8188FU"
2023-11-13 12:47:16 +00:00
PKG_VERSION="68ced40d862d13663294496bac2e9a91ffa0e5c7"
2022-09-11 22:55:53 +00:00
PKG_LICENSE="GPL"
PKG_SITE="https://github.com/kelebek333/rtl8188fu"
PKG_URL="${PKG_SITE}.git"
PKG_DEPENDS_TARGET="toolchain linux kernel-firmware"
PKG_NEED_UNPACK="${LINUX_DEPENDS}"
PKG_LONGDESC="Realtek RTL81xxFU Linux firmware"
PKG_IS_KERNEL_PKG="yes"
PKG_TOOLCHAIN="make"
2022-09-11 22:55:53 +00:00
pre_make_target() {
unset LDFLAGS
}
make_target() {
make V=1 \
ARCH=${TARGET_KERNEL_ARCH} \
KSRC=$(kernel_path) \
CROSS_COMPILE=${TARGET_KERNEL_PREFIX} \
2023-07-13 21:58:51 +00:00
CONFIG_POWER_SAVING=y \
2022-09-11 22:55:53 +00:00
USER_EXTRA_CFLAGS="-Wno-error=date-time"
}
makeinstall_target() {
mkdir -p ${INSTALL}/$(get_full_module_dir)/${PKG_NAME}
cp *.ko ${INSTALL}/$(get_full_module_dir)/${PKG_NAME}
mkdir -p ${INSTALL}/usr/lib/kernel-overlays/base/lib/firmware/rtlwifi
cp firmware/rtl8188fufw.bin ${INSTALL}/usr/lib/kernel-overlays/base/lib/firmware/rtlwifi
}