mirror of
https://gitlab.com/buildroot.org/buildroot.git
synced 2026-09-30 05:51:45 -09:00
rpi-firmware: allow disabling installation of binary DTBs
The binary .dtb files are not suitable for everyone as they are kernel-version specific. Reintroduce BR2_PACKAGE_RPI_FIRMWARE_INSTALL_DTBS option. Signed-off-by: Floris Bos <bos@je-eigen-domein.nl> [yann.morin.1998@free.fr: don't install DTBs if kernel builds its own; fix default; rephrase help text] Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr> Cc: Pascal de Bruijn <pmjdebruijn@pcode.nl> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
This commit is contained in:
committed by
Thomas Petazzoni
parent
ac0a31090a
commit
c1c78adf11
@@ -45,4 +45,16 @@ config BR2_PACKAGE_RPI_FIRMWARE_BOOT
|
|||||||
default "_x" if BR2_PACKAGE_RPI_FIRMWARE_X
|
default "_x" if BR2_PACKAGE_RPI_FIRMWARE_X
|
||||||
default "_cd" if BR2_PACKAGE_RPI_FIRMWARE_CD
|
default "_cd" if BR2_PACKAGE_RPI_FIRMWARE_CD
|
||||||
|
|
||||||
|
config BR2_PACKAGE_RPI_FIRMWARE_INSTALL_DTBS
|
||||||
|
bool "Install Device Tree Blobs (DTBs)"
|
||||||
|
depends on !BR2_LINUX_KERNEL_DTS_SUPPORT
|
||||||
|
default y
|
||||||
|
help
|
||||||
|
If you are using a Linux kernel <= 3.18, you should say 'y' here.
|
||||||
|
|
||||||
|
If you are using a Linux kernel >= 3.19, you should say 'n' here,
|
||||||
|
and enable BR2_LINUX_KERNEL_DTS_SUPPORT to let the kernel build
|
||||||
|
the DTB.
|
||||||
|
|
||||||
|
|
||||||
endif # BR2_PACKAGE_RPI_FIRMWARE
|
endif # BR2_PACKAGE_RPI_FIRMWARE
|
||||||
|
|||||||
@@ -13,6 +13,7 @@ RPI_FIRMWARE_INSTALL_IMAGES = YES
|
|||||||
|
|
||||||
RPI_FIRMWARE_DEPENDENCIES += host-rpi-firmware
|
RPI_FIRMWARE_DEPENDENCIES += host-rpi-firmware
|
||||||
|
|
||||||
|
ifeq ($(BR2_PACKAGE_RPI_FIRMWARE_INSTALL_DTBS),y)
|
||||||
define RPI_FIRMWARE_INSTALL_DTB
|
define RPI_FIRMWARE_INSTALL_DTB
|
||||||
$(INSTALL) -D -m 0644 $(@D)/boot/bcm2708-rpi-b.dtb $(BINARIES_DIR)/rpi-firmware/bcm2708-rpi-b.dtb
|
$(INSTALL) -D -m 0644 $(@D)/boot/bcm2708-rpi-b.dtb $(BINARIES_DIR)/rpi-firmware/bcm2708-rpi-b.dtb
|
||||||
$(INSTALL) -D -m 0644 $(@D)/boot/bcm2708-rpi-b-plus.dtb $(BINARIES_DIR)/rpi-firmware/bcm2708-rpi-b-plus.dtb
|
$(INSTALL) -D -m 0644 $(@D)/boot/bcm2708-rpi-b-plus.dtb $(BINARIES_DIR)/rpi-firmware/bcm2708-rpi-b-plus.dtb
|
||||||
@@ -21,6 +22,7 @@ define RPI_FIRMWARE_INSTALL_DTB
|
|||||||
$(INSTALL) -D -m 0644 $${ovldtb} $(BINARIES_DIR)/rpi-firmware/overlays/$${ovldtb##*/} || exit 1; \
|
$(INSTALL) -D -m 0644 $${ovldtb} $(BINARIES_DIR)/rpi-firmware/overlays/$${ovldtb##*/} || exit 1; \
|
||||||
done
|
done
|
||||||
endef
|
endef
|
||||||
|
endif
|
||||||
|
|
||||||
define RPI_FIRMWARE_INSTALL_IMAGES_CMDS
|
define RPI_FIRMWARE_INSTALL_IMAGES_CMDS
|
||||||
$(INSTALL) -D -m 0644 $(@D)/boot/bootcode.bin $(BINARIES_DIR)/rpi-firmware/bootcode.bin
|
$(INSTALL) -D -m 0644 $(@D)/boot/bootcode.bin $(BINARIES_DIR)/rpi-firmware/bootcode.bin
|
||||||
|
|||||||
Reference in New Issue
Block a user