 b42b0e4daa
			
		
	
	
		b42b0e4daa
		
	
	
	
	
		
			
			basically moving code around without functional change. And exposing some symbols so that they could be shared between smbbios.c and new smbios_legacy.c plus some meson magic to build smbios_legacy.c only for 'pc' machine and otherwise replace it with stub if not selected. Signed-off-by: Igor Mammedov <imammedo@redhat.com> Reviewed-by: Ani Sinha <anisinha@redhat.com> Message-Id: <20240314152302.2324164-12-imammedo@redhat.com> Reviewed-by: Michael S. Tsirkin <mst@redhat.com> Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
		
			
				
	
	
		
			13 lines
		
	
	
		
			484 B
		
	
	
	
		
			Meson
		
	
	
	
	
	
			
		
		
	
	
			13 lines
		
	
	
		
			484 B
		
	
	
	
		
			Meson
		
	
	
	
	
	
| smbios_ss = ss.source_set()
 | |
| smbios_ss.add(files('smbios.c'))
 | |
| smbios_ss.add(when: 'CONFIG_IPMI',
 | |
|               if_true: files('smbios_type_38.c'),
 | |
|               if_false: files('smbios_type_38-stub.c'))
 | |
| 
 | |
| smbios_ss.add(when: 'CONFIG_SMBIOS_LEGACY',
 | |
|               if_true: files('smbios_legacy.c'),
 | |
|               if_false: files('smbios_legacy_stub.c'))
 | |
| 
 | |
| system_ss.add_all(when: 'CONFIG_SMBIOS', if_true: smbios_ss)
 | |
| system_ss.add(when: 'CONFIG_SMBIOS', if_false: files('smbios-stub.c'))
 |