meta-openembedded/meta-oe/recipes-bsp
Martin Jansa 536572f862
fwupd: set vendor_ids_dir
* it's in RSS as fwupd/2.0.12/recipe-sysroot/usr/share/hwdata/usb.ids but
  meson is searching the paths on host with:

  # look for usb.ids in both of the Debian and Fedora locations,
  # and fall back to the system datadir in case we're building in a venv or prefix
  vendor_ids_dir = get_option('vendor_ids_dir')
  if vendor_ids_dir == ''
    vendor_ids_dir = join_paths(datadir, 'misc')
    if not fs.is_file(join_paths(vendor_ids_dir, 'usb.ids'))
      vendor_ids_dir = join_paths(datadir, 'hwdata')
    endif
    if not fs.is_file(join_paths(vendor_ids_dir, 'usb.ids'))
      vendor_ids_dir = '/usr/share/hwdata'
    endif
    if not fs.is_file(join_paths(vendor_ids_dir, 'usb.ids'))
      vendor_ids_dir = '/usr/share/misc'
    endif
    if not fs.is_file(join_paths(vendor_ids_dir, 'usb.ids'))
      vendor_ids_dir = '/usr/local/var/homebrew/linked/usb.ids/share/misc'
    endif
    if not fs.is_file(join_paths(vendor_ids_dir, 'usb.ids'))
      error('could not auto-detect -Dvendor_ids_dir=')
    endif
  endif
  conf.set_quoted ('FWUPD_DATADIR_VENDOR_IDS', vendor_ids_dir)

  it shouldn't be looking at host's paths and and on hosts without
  usb.ids in one of these locations it fails with:

  ../sources/fwupd-2.0.12/meson.build:323:4: ERROR: Problem encountered: could not auto-detect -Dvendor_ids_dir=

Signed-off-by: Martin Jansa <martin.jansa@gmail.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2025-07-15 07:49:27 -07:00
..
acpitool Drop unnecessary SRC_URI md5sum from the recipes in meta-oe. 2024-11-05 19:19:22 -08:00
bolt meta-openembedded/all: adapt to UNPACKDIR changes 2025-06-25 06:44:52 -07:00
con2fbmap meta-openembedded/all: adapt to UNPACKDIR changes 2025-06-25 06:44:52 -07:00
cpufrequtils meta-openembedded/all: adapt to UNPACKDIR changes 2025-06-25 06:44:52 -07:00
dediprog-flasher meta-openembedded/all: adapt to UNPACKDIR changes 2025-06-25 06:44:52 -07:00
edac-utils meta-openembedded/all: adapt to UNPACKDIR changes 2025-06-25 06:44:52 -07:00
firmwared meta-openembedded/all: adapt to UNPACKDIR changes 2025-06-25 06:44:52 -07:00
flashrom meta-openembedded/all: adapt to UNPACKDIR changes 2025-06-25 06:44:52 -07:00
fwupd fwupd: set vendor_ids_dir 2025-07-15 07:49:27 -07:00
i2cdev meta-openembedded/all: adapt to UNPACKDIR changes 2025-06-25 06:44:52 -07:00
irda-utils Drop unnecessary SRC_URI md5sum from the recipes in meta-oe. 2024-11-05 19:19:22 -08:00
ledmon meta-openembedded/all: adapt to UNPACKDIR changes 2025-06-25 06:44:52 -07:00
lm_sensors meta-openembedded/all: adapt to UNPACKDIR changes 2025-06-25 06:44:52 -07:00
lsscsi meta-openembedded/all: adapt to UNPACKDIR changes 2025-06-25 06:44:52 -07:00
nvme-cli meta-openembedded/all: adapt to UNPACKDIR changes 2025-06-25 06:44:52 -07:00
pcmciautils Drop unnecessary SRC_URI md5sum from the recipes in meta-oe. 2024-11-05 19:19:22 -08:00
pointercal meta-openembedded/all: adapt to UNPACKDIR changes 2025-06-25 06:44:52 -07:00