xref: /OK3568_Linux_fs/buildroot/package/rpi-firmware/Config.in (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1config BR2_PACKAGE_RPI_FIRMWARE
2	bool "rpi-firmware"
3	depends on BR2_arm || BR2_aarch64
4	help
5	  RaspberryPi Firmware
6
7	  Pre-compiled binaries of the current bootloader and GPU
8	  firmware
9
10	  https://github.com/raspberrypi/firmware
11
12if BR2_PACKAGE_RPI_FIRMWARE
13
14config BR2_PACKAGE_RPI_FIRMWARE_BOOTCODE_BIN
15	bool "rpi 0/1/2/3 bootcode.bin"
16	help
17	  The bootcode.bin for versions Zero/1/2/3 (not needed on rpi4,
18	  because it has been replaced by boot code in the onboard
19	  EEPROM).
20
21config BR2_PACKAGE_RPI_FIRMWARE_VARIANT_PI
22	bool "rpi 0/1/2/3 (default)"
23	help
24	  The default set of files for versions Zero/1/2/3.
25
26config BR2_PACKAGE_RPI_FIRMWARE_VARIANT_PI_X
27	bool "rpi 0/1/2/3 (extended)"
28	help
29	  The extended set of files for versions Zero/1/2/3 (additional
30	  GPU features, eg. more audio/video codecs).
31
32config BR2_PACKAGE_RPI_FIRMWARE_VARIANT_PI_CD
33	bool "rpi 0/1/2/3 (cut-down)"
34	help
35	  The cut-down set of files for versions Zero/1/2/3 (only
36	  features required to boot a Linux kernel).
37
38config BR2_PACKAGE_RPI_FIRMWARE_VARIANT_PI_DB
39	bool "rpi 0/1/2/3 (debug)"
40	help
41	  The debug set of files for versions Zero/1/2/3.
42
43config BR2_PACKAGE_RPI_FIRMWARE_VARIANT_PI4
44	bool "rpi 4 (default)"
45	help
46	  The default set of files for versions 4 (standard GPU
47	  features).
48
49config BR2_PACKAGE_RPI_FIRMWARE_VARIANT_PI4_X
50	bool "rpi 4 (extended)"
51	help
52	  The extended set of files for versions 4 (additional GPU
53	  features, eg. more audio/video codecs).
54
55config BR2_PACKAGE_RPI_FIRMWARE_VARIANT_PI4_CD
56	bool "rpi 4 (cut-down)"
57	help
58	  The cut-down set of files for versions 4 (only features
59	  required to boot a Linux kernel).
60
61config BR2_PACKAGE_RPI_FIRMWARE_VARIANT_PI4_DB
62	bool "rpi 4 (debug)"
63	help
64	  The debug set of files for versions 4.
65
66config BR2_PACKAGE_RPI_FIRMWARE_CONFIG_FILE
67	string "Path to a file stored as boot/config.txt"
68	help
69	  Path to a file stored as config.txt in the boot partiton
70	  of the generated SD card image.
71
72config BR2_PACKAGE_RPI_FIRMWARE_INSTALL_DTBS
73	bool "Install Device Tree Blobs (DTBs)"
74	default y
75	depends on !BR2_LINUX_KERNEL_DTS_SUPPORT
76	help
77	  If you are using a Linux kernel <= 3.18, you should say 'y'
78	  here.
79
80	  If you are using a Linux kernel >= 3.19, you should say 'n'
81	  here, and enable BR2_LINUX_KERNEL_DTS_SUPPORT to let the
82	  kernel build the DTB.
83
84config BR2_PACKAGE_RPI_FIRMWARE_INSTALL_DTB_OVERLAYS
85	bool "Install DTB overlays"
86	default y
87	depends on BR2_PACKAGE_RPI_FIRMWARE_INSTALL_DTBS \
88		|| BR2_LINUX_KERNEL_DTS_SUPPORT
89	select BR2_LINUX_KERNEL_DTB_OVERLAY_SUPPORT \
90		if BR2_LINUX_KERNEL_DTS_SUPPORT
91	help
92	  Say 'y' here if you need to load one or more of the DTB
93	  overlays, to support HATs (Hardware Attached on Top, add-on
94	  modules).
95
96config BR2_PACKAGE_RPI_FIRMWARE_INSTALL_VCDBG
97	bool "vcdbg"
98	depends on BR2_arm # prebuilt arm binary, rpi-userland
99	depends on BR2_TOOLCHAIN_USES_GLIBC
100	depends on BR2_INSTALL_LIBSTDCPP # rpi-userland
101	select BR2_PACKAGE_RPI_USERLAND
102	help
103	  Install vcdbg, to help debug communication with the GPU.
104
105comment "vcdbg needs a glibc toolchain w/ C++"
106	depends on BR2_arm
107	depends on !BR2_TOOLCHAIN_USES_GLIBC || !BR2_INSTALL_LIBSTDCPP
108
109endif # BR2_PACKAGE_RPI_FIRMWARE
110