summaryrefslogtreecommitdiffstats
path: root/common/recipes-kernel/linux-firmware/linux-firmware_git.bbappend
blob: 8f324f2cbcd7cf079598828a0956d39bf8c15edf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:"

# This exists in Yocto 1.1, but include it here for completeness
LIC_FILES_CHKSUM += "file://LICENCE.iwlwifi_firmware;md5=11545778abf78c43d7644d4f171ea1c7"

FWPATH = "/lib/firmware"

do_install_append() {
	install -m 0644 LICENCE.iwlwifi_firmware ${D}${FWPATH}
	install -m 0644 iwlwifi-6000g2a-5.ucode ${D}${FWPATH}
	install -m 0644 iwlwifi-6000g2b-6.ucode ${D}${FWPATH}
}

PACKAGES =+ "${PN}-iwlwifi-licence \
             ${PN}-iwlwifi-6000g2a-5 \
             ${PN}-iwlwifi-6000g2b-6"

RDEPENDS_${PN}-iwlwifi-6000g2a-5 = "${PN}-iwlwifi-licence"
RDEPENDS_${PN}-iwlwifi-6000g2b-6 = "${PN}-iwlwifi-licence"

FILES_${PN}-iwlwifi-licence = "${FWPATH}/LICENCE.iwlwifi_firmware"
FILES_${PN}-iwlwifi-6000g2a-5 = "${FWPATH}/iwlwifi-6000g2a-5.ucode"
FILES_${PN}-iwlwifi-6000g2b-6 = "${FWPATH}/iwlwifi-6000g2b-6.ucode"