mirror of
https://github.com/libretro/Lakka-LibreELEC.git
synced 2024-12-15 06:19:47 +00:00
30 lines
1.1 KiB
Makefile
30 lines
1.1 KiB
Makefile
# 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)
|
|
|
|
# Downloadlocation:
|
|
# http://www.broadcom.com/support/802.11/linux_sta.php
|
|
|
|
PKG_NAME="bcm_sta"
|
|
PKG_VERSION="6.30.223.271"
|
|
PKG_SHA256="959bcd1e965d294304a4e290cb8e47b7c74b9763094eff4d0b8e6cfb68a6895b"
|
|
PKG_ARCH="x86_64"
|
|
[ "${DISTRO}" = "Lakka" ] && PKG_ARCH+=" i386" || true
|
|
PKG_LICENSE="nonfree"
|
|
PKG_SITE="http://www.broadcom.com/"
|
|
PKG_URL="${DISTRO_SRC}/${PKG_NAME}-${PKG_VERSION}.tar.xz"
|
|
PKG_LONGDESC="Broadcom's BCM4311-, BCM4312-, BCM4313-, BCM4321-, BCM4322-, BCM43224-, and BCM43225-based WLAN driver."
|
|
PKG_TOOLCHAIN="manual"
|
|
PKG_IS_KERNEL_PKG="yes"
|
|
|
|
make_target() {
|
|
[ "${TARGET_ARCH}" = "i386" ] && DRV_ARCH="x86-32" || DRV_ARCH="x86-64"
|
|
cd ${DRV_ARCH}
|
|
KBUILD_NOPEDANTIC=1 kernel_make V=1 CC=${CC} -C $(kernel_path) M=$(pwd) BINARCH=${TARGET_KERNEL_ARCH}
|
|
}
|
|
|
|
makeinstall_target() {
|
|
mkdir -p ${INSTALL}/$(get_full_module_dir)/bcm_sta
|
|
cp *.ko ${INSTALL}/$(get_full_module_dir)/${PKG_NAME}
|
|
}
|