diff --git a/packages/linux-drivers/brcmap6xxx-aml/config/config.txt b/packages/linux-drivers/brcmap6xxx-aml/config/config.txt new file mode 100644 index 0000000000..aaf4855509 --- /dev/null +++ b/packages/linux-drivers/brcmap6xxx-aml/config/config.txt @@ -0,0 +1,5 @@ +kso_enable=0 +ccode=CN +regrev=38 +nv_by_chip=1 \ +17209 1 nvram_ap6335.txt diff --git a/packages/linux-drivers/brcmap6xxx-aml/modprobe.d/dhd.conf b/packages/linux-drivers/brcmap6xxx-aml/modprobe.d/dhd.conf new file mode 100644 index 0000000000..c200d67e84 --- /dev/null +++ b/packages/linux-drivers/brcmap6xxx-aml/modprobe.d/dhd.conf @@ -0,0 +1 @@ +options dhd firmware_path=/lib/firmware/brcm/ nvram_path=/lib/firmware/brcm/ diff --git a/packages/linux-drivers/brcmap6xxx-aml/modules-load.d/dhd.conf b/packages/linux-drivers/brcmap6xxx-aml/modules-load.d/dhd.conf new file mode 100644 index 0000000000..46b277676f --- /dev/null +++ b/packages/linux-drivers/brcmap6xxx-aml/modules-load.d/dhd.conf @@ -0,0 +1 @@ +dhd diff --git a/packages/linux-drivers/brcmap6xxx-aml/package.mk b/packages/linux-drivers/brcmap6xxx-aml/package.mk new file mode 100644 index 0000000000..3beb2ee085 --- /dev/null +++ b/packages/linux-drivers/brcmap6xxx-aml/package.mk @@ -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 . +################################################################################ + +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 +}