30 lines
862 B
Makefile
30 lines
862 B
Makefile
|
PKG_NAME="RTL8188FU"
|
||
|
PKG_VERSION="dfe0a50"
|
||
|
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"
|
||
|
|
||
|
pre_make_target() {
|
||
|
unset LDFLAGS
|
||
|
}
|
||
|
|
||
|
make_target() {
|
||
|
make V=1 \
|
||
|
ARCH=${TARGET_KERNEL_ARCH} \
|
||
|
KSRC=$(kernel_path) \
|
||
|
CROSS_COMPILE=${TARGET_KERNEL_PREFIX} \
|
||
|
CONFIG_POWER_SAVING=n \
|
||
|
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
|
||
|
}
|