-
Notifications
You must be signed in to change notification settings - Fork 92
Expand file tree
/
Copy pathlinux-raspberrypi_5.15.bbappend
More file actions
237 lines (201 loc) · 6.42 KB
/
Copy pathlinux-raspberrypi_5.15.bbappend
File metadata and controls
237 lines (201 loc) · 6.42 KB
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
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
FILESEXTRAPATHS:prepend := "${THISDIR}/${PN}_${LINUX_VERSION}:${THISDIR}/${PN}:${THISDIR}/${MACHINE}:"
SRC_URI:append:fincm3 = " \
file://0001-overlays-fin-add-internal-pull-ups-to-i2c_soft.patch \
file://0004-mmc-pwrseq-Repurpose-for-Marvell-SD8777.patch \
file://0005-balena-fin-wifi-sta-uap-mode.patch \
file://0007-overlays-Add-spyfly.dts.patch \
"
SRC_URI:append:raspberrypi4-superhub = " \
file://0001-Add-gpio-wdt-DT-overlay-for-Phoenix-Board.patch \
file://0002-Add-infineon-tpm-DT-overlay-for-Phoenix-Board.patch \
file://0003-Add-spi1-DT-overlay-for-Phoenix-Board.patch \
file://0004-Add-SD-host-DT-overlay-for-Phoenix-Board.patch \
"
SRC_URI:append = " \
file://0002-wireless-wext-Bring-back-ndo_do_ioctl-fallback.patch \
file://0001-Add-npe-x500-m3-overlay.patch \
file://0001-seeed-studio-can-bus-v2-Add-dtbo-for-this-can-bus.patch \
file://0011-USB-serial-Add-support-for-more-Quectel-modules.patch \
file://0001-waveshare-sim7600-Add-dtbo-for-this-modem.patch \
file://0001-overlays-Add-overlay-for-Seeed-reComputer-R1000.patch \
"
SRC_URI:append:rt-rpi-300 = " \
file://rt-rpi-300-Add-changes-for-this-dt.patch \
file://rt-rpi-Add-ch-432t-driver-for-this-chip.patch \
"
BALENA_CONFIGS:append = " fbtft"
BALENA_CONFIGS[fbtft] = " \
CONFIG_STAGING=y \
CONFIG_FB_TFT=m \
CONFIG_FB_TFT_AGM1264K_FL=m \
CONFIG_FB_TFT_BD663474=m \
CONFIG_FB_TFT_HX8340BN=m \
CONFIG_FB_TFT_HX8347D=m \
CONFIG_FB_TFT_HX8353D=m \
CONFIG_FB_TFT_ILI9163=m \
CONFIG_FB_TFT_ILI9320=m \
CONFIG_FB_TFT_ILI9325=m \
CONFIG_FB_TFT_ILI9340=m \
CONFIG_FB_TFT_ILI9341=m \
CONFIG_FB_TFT_ILI9481=m \
CONFIG_FB_TFT_ILI9486=m \
CONFIG_FB_TFT_PCD8544=m \
CONFIG_FB_TFT_RA8875=m \
CONFIG_FB_TFT_S6D02A1=m \
CONFIG_FB_TFT_S6D1121=m \
CONFIG_FB_TFT_SSD1289=m \
CONFIG_FB_TFT_SSD1306=m \
CONFIG_FB_TFT_SSD1331=m \
CONFIG_FB_TFT_SSD1351=m \
CONFIG_FB_TFT_ST7735R=m \
CONFIG_FB_TFT_TINYLCD=m \
CONFIG_FB_TFT_TLS8204=m \
CONFIG_FB_TFT_UC1701=m \
CONFIG_FB_TFT_UPD161704=m \
CONFIG_FB_TFT_WATTEROTT=m \
"
BALENA_CONFIGS:append = " pca955_gpio_expander"
BALENA_CONFIGS[pca955_gpio_expander] = " \
CONFIG_GPIO_PCA953X=y \
CONFIG_GPIO_PCA953X_IRQ=y \
"
# requested by customer (support for Kontron PLD devices)
BALENA_CONFIGS:append = " gpio_i2c_kempld"
BALENA_CONFIGS_DEPS[gpio_i2c_kempld] = " \
CONFIG_GPIOLIB=y \
CONFIG_I2C=y \
CONFIG_HAS_IOMEM=y \
CONFIG_MFD_KEMPLD=m \
"
BALENA_CONFIGS[gpio_i2c_kempld] = " \
CONFIG_GPIO_KEMPLD=m \
CONFIG_I2C_KEMPLD=m \
"
# make sure watchdog gets enabled no matter of the BSP changes
BALENA_CONFIGS:append = " rpi_watchdog"
BALENA_CONFIGS_DEPS[rpi_watchdog] = " \
CONFIG_WATCHDOG=y \
"
BALENA_CONFIGS[rpi_watchdog] = " \
CONFIG_BCM2835_WDT=y \
"
BALENA_CONFIGS:append = " kvaser_usb_can_driver"
BALENA_CONFIGS[kvaser_usb_can_driver] = " \
CONFIG_CAN_KVASER_USB=m \
"
BALENA_CONFIGS:append = " mcp251x_can_driver"
BALENA_CONFIGS[mcp251x_can_driver] = " \
CONFIG_CAN_MCP251X=m \
"
BALENA_CONFIGS_DEPS[mcp251x_can_driver] = " \
CONFIG_SPI=y \
CONFIG_HAS_DMA=y \
"
BALENA_CONFIGS:append = " can_calc_bittiming"
BALENA_CONFIGS[can_calc_bittiming] = " \
CONFIG_CAN_CALC_BITTIMING=y \
"
BALENA_CONFIGS_DEPS[can_calc_bittiming] = " \
CONFIG_CAN_DEV=y \
"
BALENA_CONFIGS:append = " ds1307_rtc_driver"
BALENA_CONFIGS[ds1307_rtc_driver] = " \
CONFIG_RTC_DRV_DS1307=m \
"
BALENA_CONFIGS_DEPS[ds1307_rtc_driver] = " \
CONFIG_I2C=y \
"
BALENA_CONFIGS:append = " sc16is7xx_serial_driver"
BALENA_CONFIGS[sc16is7xx_serial_driver] = " \
CONFIG_SERIAL_SC16IS7XX=m \
"
BALENA_CONFIGS_DEPS[sc16is7xx_serial_driver] = " \
CONFIG_I2C=y \
"
BALENA_CONFIGS:append = " mcp3422_adc_driver"
BALENA_CONFIGS[mcp3422_adc_driver] = " \
CONFIG_MCP3422=m \
"
BALENA_CONFIGS_DEPS[mcp3422_adc_driver] = " \
CONFIG_I2C=y \
"
BALENA_CONFIGS:append = " sd8787_pwrseq_driver"
BALENA_CONFIGS[sd8787_pwrseq_driver] = " \
CONFIG_PWRSEQ_SD8787=m \
"
BALENA_CONFIGS_DEPS[sd8787_pwrseq_driver] = " \
CONFIG_OF=y \
"
BALENA_CONFIGS:append = " serial_8250"
BALENA_CONFIGS[serial_8250] = " \
CONFIG_SERIAL_8250=y \
CONFIG_SERIAL_8250_CONSOLE=y \
CONFIG_SERIAL_8250_NR_UARTS=1 \
CONFIG_SERIAL_8250_EXTENDED=y \
CONFIG_SERIAL_8250_SHARE_IRQ=y \
CONFIG_SERIAL_8250_BCM2835AUX=y \
"
BALENA_CONFIGS:append:rt-rpi-300 = " rtrpi300cfgs"
BALENA_CONFIGS[rtrpi300cfgs] = " \
CONFIG_RTC_DRV_RX8010=m \
CONFIG_SPI=y \
CONFIG_SPI_BCM2835=m \
CONFIG_CH432T_SPI=m \
"
# The Pi3-64 and Pi4-64 are the only boards very low on rootfs space for now
# so we add this as per https://github.com/balena-os/meta-balena/pull/2411
BALENA_CONFIGS:append:raspberrypi4-64 = " optimize-size"
BALENA_CONFIGS:append:raspberrypi3-64 = " optimize-size"
BALENA_CONFIGS[optimize-size] = " \
CONFIG_CC_OPTIMIZE_FOR_SIZE=y \
"
BALENA_CONFIGS:append = " iio_pressure_drivers"
BALENA_CONFIGS[iio_pressure_drivers] = " \
CONFIG_BMP280=m \
"
# Fix dtbo loading on 64bits,
# see commit 949b88bb for details
get_cc_option () {
# Check if KERNEL_CC supports the option "file-prefix-map".
# This option allows us to build images with __FILE__ values that do not
# contain the host build path.
if ${KERNEL_CC} -Q --help=joined | grep -q "\-ffile-prefix-map=<old=new>"; then
echo "-ffile-prefix-map=${S}=/kernel-source/"
fi
}
do_compile:append() {
if [ "${SITEINFO_BITS}" = "64" ]; then
cc_extra=$(get_cc_option)
oe_runmake dtbs CC="${KERNEL_CC} $cc_extra " LD="${KERNEL_LD}" ${KERNEL_EXTRA_ARGS}
fi
}
# we need to clean up all the following RPI_KERNEL_DEVICETREE changes when we switch to a newer 6.x kernel
RPI_KERNEL_DEVICETREE = " \
bcm2708-rpi-zero.dtb \
bcm2708-rpi-zero-w.dtb \
bcm2708-rpi-b.dtb \
bcm2708-rpi-b-rev1.dtb \
bcm2708-rpi-b-plus.dtb \
bcm2709-rpi-2-b.dtb \
bcm2710-rpi-2-b.dtb \
bcm2710-rpi-3-b.dtb \
bcm2710-rpi-3-b-plus.dtb \
bcm2710-rpi-zero-2.dtb \
bcm2711-rpi-4-b.dtb \
bcm2711-rpi-400.dtb \
bcm2708-rpi-cm.dtb \
bcm2710-rpi-cm3.dtb \
bcm2711-rpi-cm4.dtb \
bcm2711-rpi-cm4s.dtb \
"
RPI_KERNEL_DEVICETREE:raspberrypi0-2w-64 = " \
broadcom/bcm2710-rpi-zero-2.dtb \
broadcom/bcm2710-rpi-cm3.dtb \
"
# Only include arm64 dtbs for rt-rpi-300
RPI_KERNEL_DEVICETREE:rt-rpi-300 = " \
broadcom/bcm2711-rpi-4-b.dtb \
broadcom/bcm2711-rpi-400.dtb \
broadcom/bcm2711-rpi-cm4.dtb \
broadcom/bcm2711-rpi-cm4s.dtb \
"