Skip to contentSkip to conversation

efi: add missing Kconfig selects

PATCH Applied Enrico Jorns 2 participants 2 messages Oct 11, 2017 – Oct 16, 2017

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 efi: add missing Kconfig selects

Building EFI code without block device and partition support enabled will fail with:

| drivers/built-in.o: In function `efi_bio_probe':
| (.text+0x125d): undefined reference to `blockdevice_register'
| drivers/built-in.o: In function `efi_bio_probe':
| (.text+0x126c): undefined reference to `parse_partition_table'
| Makefile:766: recipe for target 'barebox' failed

Thus always select BLOCK and PARTITION_DISK when enabling EFI_BOOTUP.

---
 drivers/efi/Kconfig | 2 ++
 1 file changed, 2 insertions(+)
drivers/efi/Kconfig +2 -0
index 2cd9dd504f..cca1a2e1d6 100644
@@ -1,2 +1,4 @@
 config EFI_BOOTUP
 	bool
+	select BLOCK
+	select PARTITION_DISK
Signature · 7 lines
2.11.0


_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox
Applied
#1 lore raw
Quoted 9 lines · Enrico Jorns

Building EFI code without block device and partition support enabled will fail with:

| drivers/built-in.o: In function `efi_bio_probe':
| (.text+0x125d): undefined reference to `blockdevice_register'
| drivers/built-in.o: In function `efi_bio_probe':
| (.text+0x126c): undefined reference to `parse_partition_table'
| Makefile:766: recipe for target 'barebox' failed
Quoted 6 lines

Thus always select BLOCK and PARTITION_DISK when enabling EFI_BOOTUP.

---
 drivers/efi/Kconfig | 2 ++
 1 file changed, 2 insertions(+)

Applied, thanks

Sascha

Quoted 19 lines
drivers/efi/Kconfig +2 -0
index 2cd9dd504f..cca1a2e1d6 100644
@@ -1,2 +1,4 @@
 config EFI_BOOTUP
 	bool
+	select BLOCK
+	select PARTITION_DISK
Signature · 7 lines
2.11.0


_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox
Signature · 9 lines
Pengutronix e.K.                           |                             |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |

_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox