mirror of
				https://github.com/torvalds/linux.git
				synced 2025-11-04 10:40:15 +02:00 
			
		
		
		
	initramfs: make compression options not depend on INITRAMFS_SOURCE
Even if INITRAMFS_SOURCE is empty, usr/gen_initramfs.sh generates a tiny default initramfs, which is embedded in vmlinux. So, defining INITRAMFS_COMPRESSION* options should be valid irrespective of INITRAMFS_SOURCE. Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
This commit is contained in:
		
							parent
							
								
									be1859bdc6
								
							
						
					
					
						commit
						ddd09bcc89
					
				
					 1 changed files with 0 additions and 2 deletions
				
			
		| 
						 | 
					@ -102,7 +102,6 @@ config RD_LZ4
 | 
				
			||||||
 | 
					
 | 
				
			||||||
choice
 | 
					choice
 | 
				
			||||||
	prompt "Built-in initramfs compression mode"
 | 
						prompt "Built-in initramfs compression mode"
 | 
				
			||||||
	depends on INITRAMFS_SOURCE!=""
 | 
					 | 
				
			||||||
	optional
 | 
						optional
 | 
				
			||||||
	help
 | 
						help
 | 
				
			||||||
	  This option allows you to decide by which algorithm the builtin
 | 
						  This option allows you to decide by which algorithm the builtin
 | 
				
			||||||
| 
						 | 
					@ -211,7 +210,6 @@ config INITRAMFS_COMPRESSION_LZ4
 | 
				
			||||||
endchoice
 | 
					endchoice
 | 
				
			||||||
 | 
					
 | 
				
			||||||
config INITRAMFS_COMPRESSION
 | 
					config INITRAMFS_COMPRESSION
 | 
				
			||||||
	depends on INITRAMFS_SOURCE!=""
 | 
					 | 
				
			||||||
	string
 | 
						string
 | 
				
			||||||
	default ""      if INITRAMFS_COMPRESSION_NONE
 | 
						default ""      if INITRAMFS_COMPRESSION_NONE
 | 
				
			||||||
	default ".gz"   if INITRAMFS_COMPRESSION_GZIP
 | 
						default ".gz"   if INITRAMFS_COMPRESSION_GZIP
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in a new issue