-
Notifications
You must be signed in to change notification settings - Fork 91
/
rkwifibt-firmware.bb
130 lines (110 loc) · 3.25 KB
/
rkwifibt-firmware.bb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
# Copyright (C) 2019, Fuzhou Rockchip Electronics Co., Ltd
# Released under the MIT license (see COPYING.MIT for the terms)
SUMMARY = "Rockchip WIFI/BT firmware files"
SECTION = "kernel"
LICENSE = "LICENSE.rockchip"
LIC_FILES_CHKSUM = "file://${RKBASE}/licenses/LICENSE.rockchip;md5=d63890e209bf038f44e708bbb13e4ed9"
inherit freeze-rev local-git
SRCREV = "983d6c05097db78f514443adc41761dd9cfbb352"
SRC_URI = "git://github.com/JeffyCN/mirrors.git;protocol=https;branch=rkwifibt;"
S = "${WORKDIR}/git"
inherit allarch deploy
do_install() {
install -d ${D}/system/etc/firmware/
install -m 0644 ${S}/firmware/broadcom/all/*/* \
-t ${D}/system/etc/firmware/
install -d ${D}/lib/firmware/rtlbt/
install -m 0644 ${S}/realtek/RTL*/* -t ${D}/lib/firmware/rtlbt/
}
PACKAGES =+ " \
${PN}-ap6181-wifi \
${PN}-ap6212a1-wifi \
${PN}-ap6212a1-bt \
${PN}-ap6236-wifi \
${PN}-ap6236-bt \
${PN}-ap6255-wifi \
${PN}-ap6255-bt \
${PN}-ap6275p-wifi \
${PN}-ap6275p-bt \
${PN}-ap6354-wifi \
${PN}-ap6354-bt \
${PN}-ap6356-wifi \
${PN}-ap6356-bt \
${PN}-ap6398s-wifi \
${PN}-ap6398s-bt \
${PN}-rtl8723ds-bt \
"
FILES:${PN}-ap6181-wifi = " \
system/etc/firmware/fw_bcm40181a2_apsta.bin \
system/etc/firmware/fw_bcm40181a2.bin \
system/etc/firmware/nvram_ap6181.txt \
"
FILES:${PN}-ap6212a1-wifi = " \
system/etc/firmware/fw_bcm43438a1_apsta.bin \
system/etc/firmware/fw_bcm43438a1.bin \
system/etc/firmware/nvram_ap6212a.txt \
"
FILES:${PN}-ap6212a1-bt = " \
system/etc/firmware/BCM43430A1.hcd \
"
FILES:${PN}-ap6236-wifi = " \
system/etc/firmware/fw_bcm43436b0_apsta.bin \
system/etc/firmware/fw_bcm43436b0.bin \
system/etc/firmware/nvram_ap6236.txt \
"
FILES:${PN}-ap6236-bt = " \
system/etc/firmware/BCM43430B0.hcd \
"
FILES:${PN}-ap6255-wifi = " \
system/etc/firmware/fw_bcm43455c0_ag.bin \
system/etc/firmware/nvram_ap6255.txt \
"
FILES:${PN}-ap6255-bt = " \
system/etc/firmware/BCM4345C0_ap.hcd \
system/etc/firmware/BCM4345C0.hcd \
"
FILES:${PN}-ap6275p-wifi = " \
system/etc/firmware/fw_bcm43752a2_pcie_ag_apsta.bin \
system/etc/firmware/fw_bcm43752a2_pcie_ag_mfg.bin \
system/etc/firmware/clm_bcm43752a2_pcie_ag.blob \
system/etc/firmware/fw_bcm43752a2_pcie_ag.bin \
system/etc/firmware/nvram_AP6275P.txt \
"
FILES:${PN}-ap6275p-bt = " \
system/etc/firmware/BCM4362A2.hcd \
"
FILES:${PN}-ap6354-wifi = " \
system/etc/firmware/fw_bcm4354a1_ag.bin \
system/etc/firmware/nvram_ap6354.txt \
"
FILES:${PN}-ap6354-bt = " \
system/etc/firmware/BCM4350C0.hcd \
"
FILES:${PN}-ap6356-wifi = " \
system/etc/firmware/fw_bcm4356a2_ag.bin \
system/etc/firmware/nvram_ap6356.txt \
system/etc/firmware/nvram_ap6356s.txt \
"
FILES:${PN}-ap6356-bt = " \
system/etc/firmware/BCM4354A2.hcd \
"
FILES:${PN}-ap6398s-wifi = " \
system/etc/firmware/fw_bcm4359c0_ag.bin \
system/etc/firmware/fw_bcm4359c0_ag_mfg.bin \
system/etc/firmware/nvram_ap6398s.txt \
"
FILES:${PN}-ap6398s-bt = " \
system/etc/firmware/BCM4359C0.hcd \
"
FILES:${PN}-rtl8723ds-bt = " \
lib/firmware/rtlbt/rtl8723d_config \
lib/firmware/rtlbt/rtl8723d_fw \
"
FILES:${PN} = "*"
# Make it depend on all of the split-out packages.
python () {
pn = d.getVar('PN')
firmware_pkgs = oe.utils.packages_filter_out_system(d)
d.appendVar('RDEPENDS:' + pn, ' ' + ' '.join(firmware_pkgs))
}
INSANE_SKIP:${PN}:append = " arch"