mirror of
				https://git.proxmox.com/git/fwupd
				synced 2025-10-31 14:14:46 +00:00 
			
		
		
		
	 52441f28a4
			
		
	
	
		52441f28a4
		
	
	
	
	
		
			
			This makes a lot more sense; we can parse a firmware and export the same XML we would use in a .builder.xml file. This allows us to two two things: * Check we can round trip from XML -> binary -> XML * Using a .builder.xml file we can check ->write() is endian safe
		
			
				
	
	
		
			73 lines
		
	
	
		
			1.6 KiB
		
	
	
	
		
			Meson
		
	
	
	
	
	
			
		
		
	
	
			73 lines
		
	
	
		
			1.6 KiB
		
	
	
	
		
			Meson
		
	
	
	
	
	
| if get_option('plugin_spi')
 | |
| cargs = ['-DG_LOG_DOMAIN="FuPluginSpi"']
 | |
| 
 | |
| shared_module('fu_plugin_spi',
 | |
|   fu_hash,
 | |
|   sources : [
 | |
|     'fu-efi-common.c',              # fuzzing
 | |
|     'fu-efi-firmware-common.c',     # fuzzing
 | |
|     'fu-efi-firmware-file.c',       # fuzzing
 | |
|     'fu-efi-firmware-filesystem.c', # fuzzing
 | |
|     'fu-efi-firmware-section.c',    # fuzzing
 | |
|     'fu-efi-firmware-volume.c',     # fuzzing
 | |
|     'fu-ifd-bios.c',                # fuzzing
 | |
|     'fu-ifd-common.c',              # fuzzing
 | |
|     'fu-ifd-firmware.c',            # fuzzing
 | |
|     'fu-ifd-image.c',               # fuzzing
 | |
|     'fu-plugin-spi.c',
 | |
|   ],
 | |
|   include_directories : [
 | |
|     root_incdir,
 | |
|     fwupd_incdir,
 | |
|     fwupdplugin_incdir,
 | |
|   ],
 | |
|   install : true,
 | |
|   install_dir: plugin_dir,
 | |
|   link_with : [
 | |
|     fwupd,
 | |
|     fwupdplugin,
 | |
|   ],
 | |
|   c_args : cargs,
 | |
|   dependencies : [
 | |
|     plugin_deps,
 | |
|     lzma,
 | |
|   ],
 | |
| )
 | |
| endif
 | |
| 
 | |
| if get_option('tests') and get_option('lzma')
 | |
|   e = executable(
 | |
|     'spi-self-test',
 | |
|     fu_hash,
 | |
|     sources : [
 | |
|       'fu-self-test.c',
 | |
|       'fu-efi-common.c',
 | |
|       'fu-efi-firmware-common.c',
 | |
|       'fu-efi-firmware-file.c',
 | |
|       'fu-efi-firmware-filesystem.c',
 | |
|       'fu-efi-firmware-section.c',
 | |
|       'fu-efi-firmware-volume.c',
 | |
|       'fu-ifd-bios.c',
 | |
|       'fu-ifd-common.c',
 | |
|       'fu-ifd-firmware.c',
 | |
|       'fu-ifd-image.c',
 | |
|     ],
 | |
|     include_directories : [
 | |
|       root_incdir,
 | |
|       fwupd_incdir,
 | |
|       fwupdplugin_incdir,
 | |
|     ],
 | |
|     dependencies : [
 | |
|       plugin_deps,
 | |
|       lzma,
 | |
|     ],
 | |
|     link_with : [
 | |
|       fwupd,
 | |
|       fwupdplugin,
 | |
|     ],
 | |
|     install : true,
 | |
|     install_dir : installed_test_bindir,
 | |
|   )
 | |
|   test('spi-self-test', e)
 | |
| endif
 |