summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGabriel Ionescu <gabriel.ionescu@enea.com>2018-03-22 10:42:42 +0100
committerAdrian Dudau <adrian.dudau@enea.com>2018-03-22 15:39:35 +0100
commitdfc8946f58bbf4aa3a345c4fb5d5895502936edd (patch)
tree01af087fc5d37dd3e2722332fdb11de7674a0680
parentcfa22fceb5f83653b9cdbccec077a03046877a74 (diff)
downloadenea-kernel-cache-dfc8946f58bbf4aa3a345c4fb5d5895502936edd.tar.gz
Kernel: Add fragments to support booting from an USB and CDROM
The patch adds support for booting the live image and installer off of various storage types, including USB sticks and CDROMs. Signed-off-by: Gabriel Ionescu <gabriel.ionescu@enea.com> Signed-off-by: Adrian Dudau <adrian.dudau@enea.com>
-rw-r--r--features/cdrom/isofs_m.cfg5
-rw-r--r--features/cdrom/isofs_m.scc5
-rw-r--r--features/ide/ide_m.cfg41
-rw-r--r--features/ide/ide_m.scc4
-rw-r--r--features/scsi/scsi_m.cfg5
-rw-r--r--features/scsi/scsi_m.scc5
-rw-r--r--features/usb/ohci_m.cfg4
-rw-r--r--features/usb/ohci_m.scc5
-rw-r--r--features/usb/usb_storage_m.cfg1
-rw-r--r--features/usb/usb_storage_m.scc5
10 files changed, 80 insertions, 0 deletions
diff --git a/features/cdrom/isofs_m.cfg b/features/cdrom/isofs_m.cfg
new file mode 100644
index 0000000..7ca997e
--- /dev/null
+++ b/features/cdrom/isofs_m.cfg
@@ -0,0 +1,5 @@
1CONFIG_ISO9660_FS=m
2# CONFIG_JOLIET is not set
3
4# Automatically selected by CONFIG_ISO9660_FS
5CONFIG_ZISOFS=y
diff --git a/features/cdrom/isofs_m.scc b/features/cdrom/isofs_m.scc
new file mode 100644
index 0000000..a091913
--- /dev/null
+++ b/features/cdrom/isofs_m.scc
@@ -0,0 +1,5 @@
1define KFEATURE_DESCRIPTION "Enable ISO fs as module"
2
3define KFEATURE_COMPATIBILITY all
4
5kconf hardware isofs_m.cfg
diff --git a/features/ide/ide_m.cfg b/features/ide/ide_m.cfg
new file mode 100644
index 0000000..b0236eb
--- /dev/null
+++ b/features/ide/ide_m.cfg
@@ -0,0 +1,41 @@
1#
2# Protocols
3#
4CONFIG_PARIDE=m
5
6#
7# Parallel IDE high-level drivers
8#
9CONFIG_PARIDE_PD=m
10CONFIG_PARIDE_PCD=m
11CONFIG_PARIDE_PF=m
12
13
14CONFIG_IDE=m
15
16#
17# Please see Documentation/ide/ide.txt for help/info on IDE drives
18#
19CONFIG_IDE_XFER_MODE=y
20CONFIG_IDE_ATAPI=y
21CONFIG_IDE_GD=m
22CONFIG_IDE_GD_ATA=y
23CONFIG_BLK_DEV_IDECD=m
24CONFIG_BLK_DEV_IDECD_VERBOSE_ERRORS=y
25CONFIG_IDE_PROC_FS=y
26
27#
28# IDE chipset support/bugfixes
29#
30CONFIG_IDE_GENERIC=m
31CONFIG_BLK_DEV_PLATFORM=m
32CONFIG_BLK_DEV_IDEDMA_SFF=y
33
34#
35# PCI IDE chipsets support
36#
37CONFIG_BLK_DEV_IDEPCI=y
38CONFIG_BLK_DEV_GENERIC=m
39CONFIG_BLK_DEV_IDEDMA_PCI=y
40CONFIG_BLK_DEV_PIIX=m
41CONFIG_BLK_DEV_IDEDMA=y
diff --git a/features/ide/ide_m.scc b/features/ide/ide_m.scc
new file mode 100644
index 0000000..614e94d
--- /dev/null
+++ b/features/ide/ide_m.scc
@@ -0,0 +1,4 @@
1define KFEATURE_DESCRIPTION "Enable IDE support as modules"
2define KFEATURE_COMPATIBILITY all
3
4kconf hardware ide_m.cfg
diff --git a/features/scsi/scsi_m.cfg b/features/scsi/scsi_m.cfg
new file mode 100644
index 0000000..bb7a9a2
--- /dev/null
+++ b/features/scsi/scsi_m.cfg
@@ -0,0 +1,5 @@
1CONFIG_BLK_DEV_SD=m
2CONFIG_BLK_DEV_SR=m
3
4# Automatically set to =y by CONFIG_BLK_DEV_SR
5CONFIG_BLK_DEV_SR_VENDOR=y
diff --git a/features/scsi/scsi_m.scc b/features/scsi/scsi_m.scc
new file mode 100644
index 0000000..5c64d79
--- /dev/null
+++ b/features/scsi/scsi_m.scc
@@ -0,0 +1,5 @@
1define KFEATURE_DESCRIPTION "Enable SCSI support as module"
2
3define KFEATURE_COMPATIBILITY all
4
5kconf hardware scsi_m.cfg
diff --git a/features/usb/ohci_m.cfg b/features/usb/ohci_m.cfg
new file mode 100644
index 0000000..4b21a91
--- /dev/null
+++ b/features/usb/ohci_m.cfg
@@ -0,0 +1,4 @@
1CONFIG_USB_OHCI_HCD=m
2CONFIG_USB_OHCI_HCD_PCI=m
3CONFIG_USB_OHCI_HCD_PLATFORM=m
4CONFIG_USB_UHCI_HCD=m
diff --git a/features/usb/ohci_m.scc b/features/usb/ohci_m.scc
new file mode 100644
index 0000000..43544cb
--- /dev/null
+++ b/features/usb/ohci_m.scc
@@ -0,0 +1,5 @@
1define KFEATURE_DESCRIPTION "Enable OHCI as module"
2
3define KFEATURE_COMPATIBILITY all
4
5kconf hardware ohci_m.cfg
diff --git a/features/usb/usb_storage_m.cfg b/features/usb/usb_storage_m.cfg
new file mode 100644
index 0000000..c99c095
--- /dev/null
+++ b/features/usb/usb_storage_m.cfg
@@ -0,0 +1 @@
CONFIG_USB_STORAGE=m
diff --git a/features/usb/usb_storage_m.scc b/features/usb/usb_storage_m.scc
new file mode 100644
index 0000000..c4c0ebf
--- /dev/null
+++ b/features/usb/usb_storage_m.scc
@@ -0,0 +1,5 @@
1define KFEATURE_DESCRIPTION "Enable USB storage as module"
2
3define KFEATURE_COMPATIBILITY all
4
5kconf hardware usb_storage_m.cfg