packages/linux-drivers/brcmap6xxx-aml: Add a package that provides Linux drivers for AP6xxx WLAN chips used in some devices based on Amlogic SoCs

This commit is contained in:
Alex Deryskyba 2016-07-26 15:04:48 +02:00
parent d440b53474
commit c1de385e10
4 changed files with 57 additions and 0 deletions

View File

@ -0,0 +1,5 @@
kso_enable=0
ccode=CN
regrev=38
nv_by_chip=1 \
17209 1 nvram_ap6335.txt

View File

@ -0,0 +1 @@
options dhd firmware_path=/lib/firmware/brcm/ nvram_path=/lib/firmware/brcm/

View File

@ -0,0 +1 @@
dhd

View File

@ -0,0 +1,50 @@
################################################################################
# This file is part of LibreELEC - https://LibreELEC.tv
# Copyright (C) 2016 Team LibreELEC
#
# LibreELEC is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 2 of the License, or
# (at your option) any later version.
#
# LibreELEC is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with LibreELEC. If not, see <http://www.gnu.org/licenses/>.
################################################################################
PKG_NAME="brcmap6xxx-aml"
PKG_REV="1"
PKG_ARCH="arm aarch64"
PKG_LICENSE="GPL"
PKG_SITE="http://openlinux.amlogic.com:8000/download/ARM/wifi/"
PKG_VERSION="1.201.59.5-b82e63f"
PKG_URL="$DISTRO_SRC/$PKG_NAME-$PKG_VERSION.tar.xz"
PKG_DEPENDS_TARGET="toolchain linux wlan-firmware-aml"
PKG_NEED_UNPACK="$LINUX_DEPENDS"
PKG_PRIORITY="optional"
PKG_SECTION="driver"
PKG_SHORTDESC="brcmap6xxx-aml: Linux drivers for AP6xxx WLAN chips used in some devices based on Amlogic SoCs"
PKG_LONGDESC="brcmap6xxx-aml: Linux drivers for AP6xxx WLAN chips used in some devices based on Amlogic SoCs"
PKG_IS_ADDON="no"
PKG_AUTORECONF="no"
make_target() {
cd bcmdhd_1_201_59_x
LDFLAGS="" make V=1 \
-C $(kernel_path) M=$ROOT/$PKG_BUILD/bcmdhd_1_201_59_x \
ARCH=$TARGET_KERNEL_ARCH \
CROSS_COMPILE=$TARGET_PREFIX
}
makeinstall_target() {
mkdir -p $INSTALL/lib/modules/$(get_module_dir)/bcmdhd
cp *.ko $INSTALL/lib/modules/$(get_module_dir)/bcmdhd
mkdir -p $INSTALL/lib/firmware/brcm
cp $PKG_DIR/config/config.txt $INSTALL/lib/firmware/brcm
}