30 lines
916 B
Makefile
30 lines
916 B
Makefile
PKG_NAME="RTL8188FU"
|
|
PKG_VERSION="68ced40d862d13663294496bac2e9a91ffa0e5c7"
|
|
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"
|
|
|
|
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=y \
|
|
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
|
|
}
|