blob: 6b46af4097b3271c27ee0bbca40592be73f062f8 [file] [log] [blame]
# Copyright 2015 The Chromium OS Authors. All rights reserved.
# Distributed under the terms of the GNU General Public License v2
EAPI="5"
DESCRIPTION="Atheros 10k firmware"
HOMEPAGE="http://wireless.kernel.org/en/users/Drivers/ath10k/firmware"
GIT_SHA1="75ae958bedb3528a597662a605dbb958a34c33ed"
MY_P=${PN}-75ae958
SRC_URI="http://github.com/kvalo/ath10k-firmware/archive/${GIT_SHA1}.tar.gz -> ${MY_P}.tar.gz"
LICENSE="LICENSE.qca_firmware"
SLOT="0"
KEYWORDS="*"
IUSE=""
S=${WORKDIR}/${PN}-${GIT_SHA1}
src_prepare() {
# Remove Makefile. It causes the ebuild to run make on the Makefile
# resulting in a failure. All we need is firmware binary and board bin.
rm Makefile
}
src_install() {
insinto /lib/firmware/ath10k/QCA988X/hw2.0
doins QCA988X/hw2.0/board.bin
newins QCA988X/hw2.0/10.2.4.70/firmware-5.bin-10.2.70.56 firmware-5.bin
newins QCA988X/hw2.0/10.2.4.70/notice.txt_10.2.4.70.54 notice.txt
}