Skip to contentSkip to conversation

meson: Do not define CONFIG_DEVICES on user emulation

PATCH In review Philippe Mathieu-Daudé 2 participants 3 messages Dec 18, 2024 – Dec 19, 2024 Arm/Amlogic Meson SoC support

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 meson: Do not define CONFIG_DEVICES on user emulation

CONFIG_DEVICES is not generated on user emulation, so do not define it.

---
 meson.build | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
meson.build +2 -1
index 85f74854735..d203e85d769 100644
@@ -4110,7 +4110,7 @@ foreach target : target_dirs
   arch_deps = []
   c_args = ['-DCOMPILING_PER_TARGET',
             '-DCONFIG_TARGET="@[email protected]"'.format(target),
-            '-DCONFIG_DEVICES="@[email protected]"'.format(target)]
+  ]
   link_args = emulator_link_args
 
   target_inc = [include_directories('target' / config_target['TARGET_BASE_ARCH'])]
@@ -4130,6 +4130,7 @@ foreach target : target_dirs
       arch_deps += hw.dependencies()
     endif
 
+    c_args += ['-DCONFIG_DEVICES="@[email protected]"'.format(target)]
     arch_srcs += config_devices_h[target]
     link_args += ['@block.syms', '@qemu.syms']
   else
Signature · 1 line
2.45.2
Reviewed-by on v1 1/1
#1 lore raw
Quoted 22 lines · Philippe Mathieu-Daudé

CONFIG_DEVICES is not generated on user emulation, so do not define it.

---
  meson.build | 3 ++-
  1 file changed, 2 insertions(+), 1 deletion(-)
meson.build +1 -1
index 85f74854735..d203e85d769 100644
@@ -4110,7 +4110,7 @@ foreach target : target_dirs
    arch_deps = []
    c_args = ['-DCOMPILING_PER_TARGET',
              '-DCONFIG_TARGET="@[email protected]"'.format(target),
-            '-DCONFIG_DEVICES="@[email protected]"'.format(target)]
+  ]
    link_args = emulator_link_args
 
    target_inc = [include_directories('target' / config_target['TARGET_BASE_ARCH'])]

meson.build foreach target : target_dirs · line 4136

Quoted 7 lines
meson.build +1 -0
@@ -4130,6 +4130,7 @@ foreach target : target_dirs
        arch_deps += hw.dependencies()
      endif
 
+    c_args += ['-DCONFIG_DEVICES="@[email protected]"'.format(target)]
      arch_srcs += config_devices_h[target]
      link_args += ['@block.syms', '@qemu.syms']
    else

r~