Skip to content

Error when handling extra config file #3

@celinakalus

Description

@celinakalus

First off: Don't worry about getting to this before the holidays, this of course can wait.

I am currently observing an error when trying to use my system.yaml in mmh v0.27.

[2024-12-18 13:33:25.906628] INFO: MakeMeHappy: Phase: zephyr/stm32h747i_disco_m7/hsem-blinky/gnuarmemb/debug: configure
Traceback (most recent call last):
  File "/home/ckalus/contrib/makemehappy/makemehappy/system.py", line 218, in configure
    cmd = c.configureZephyr(
          ^^^^^^^^^^^^^^^^^^
  File "/home/ckalus/contrib/makemehappy/makemehappy/cmake.py", line 122, in configureZephyr
    if (zephyrWithExtraConfFile(mmh.expandFile(kernel))):
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/ckalus/contrib/makemehappy/makemehappy/cmake.py", line 92, in zephyrWithExtraConfFile
    version = list(map(int, tag[1:].split('.')[0:3]))
                            ~~~^^^^
TypeError: 'NoneType' object is not subscriptable

My module.yaml:

name: zephyr-modules
type: zephyr
install: true

# So, zephyr expects boards/ to be in the top-level of all directories inside
# of BOARD_ROOT, so we're putting . here, because there is ./boards in here.
zephyr-board-root: .

dependencies:
  - name: ufw
    revision: v5.6.0
  - name: pandoc-doc-style
    revision: v0.3.0
  - name: zephyr-kernel
    revision: v3.7.1
  - name: zephyr-arm-cmsis
    revision: 4b96cbb174678dcd3ca86e11e1f24bc5f8726da0
  - name: zephyr-hal-stm32
    revision: f1317150eac951fdd8259337a47cbbc4c2e6d335

zephyr-aliases:
  stm32h747i_disco_m7: stm32h747i_disco/stm32h747xx/m7
  stm32h747i_disco_m4: stm32h747i_disco/stm32h747xx/m4

targets:
  - application: samples/sample-basic-blinky/
    boards:
      - stm32h747i_disco_m4
      - stm32h747i_disco_m7
      - nucleo_f767zi
      - nucleo_l476rg
      - nucleo_f302r8
    toolchains:
      - name: gnuarmemb
        path: /usr
    modules:
      - zephyr-arm-cmsis
      - zephyr-hal-stm32

buildconfigs:
  - release
  - debug

buildtools:
  - ninja

Maybe you can figure something out from this already. I am still in the process of debugging what is actually going on there, which is why I am kind of just infodumping here.

Happy holidays! 🎄

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions