Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Share code and data with lbuild queries, fix config aliases #171

Merged
merged 3 commits into from
Feb 20, 2019

Conversation

salkinium
Copy link
Member

@salkinium salkinium commented Feb 20, 2019

This uses lbuild queries to share code and data within the build script generators using lbuild queries.
You can discover them with lbuild discover -n modm:build --developer.

In addition, repository configuration aliases are now also lbuild discover-able, however, due to my own stupidity, I prefixed each name with board:, thus putting the board separator : in the name, which breaks path resolution in lbuild. This is now being checked in v1.7.1, however, it is now necessary to remove the : from the alias' names, thus this is a breaking change. Sorry.

 $ lbuild discover
Parser(lbuild)
╰── Repository(modm @ .)   modm: a barebone embedded library generator
    ├── EnumerationOption(target) = REQUIRED in [...]
    ├── Configuration(modm:al-avreb-can)   AL-AVREB_CAN Board
    ├── Configuration(modm:arduino-uno)   Arduino UNO
    ├── Configuration(modm:black-pill)   Black Pill
    ├── Configuration(modm:blue-pill)   Blue Pill
    ├── Configuration(modm:disco-f051r8)   STM32F0DISCOVERY
    ├── Configuration(modm:disco-f072rb)   STM32F072DISCOVERY
    ├── Configuration(modm:disco-f100rb)   STM32VLDISCOVERY
    ├── Configuration(modm:disco-f303vc)   STM32F3DISCOVERY
    ├── Configuration(modm:disco-f407vg)   STM32F4DISCOVERY
    ├── Configuration(modm:disco-f429zi)   STM32F429IDISCOVERY
    ├── Configuration(modm:disco-f469ni)   STM32F469IDISCOVERY
    ├── Configuration(modm:disco-f746ng)   STM32F7DISCOVERY
    ├── Configuration(modm:disco-f769ni)   STM32F769IDISCOVERY
    ├── Configuration(modm:disco-l476vg)   STM32L476DISCOVERY
    ├── Configuration(modm:nucleo-f031k6)   NUCLEO-F031K6
    ├── Configuration(modm:nucleo-f042k6)   NUCLEO-F042K6
    ├── Configuration(modm:nucleo-f103rb)   NUCLEO-F103RB
    ├── Configuration(modm:nucleo-f303k8)   NUCLEO-F303K8
    ├── Configuration(modm:nucleo-f401re)   NUCLEO-F401RE
    ├── Configuration(modm:nucleo-f411re)   NUCLEO-F411RE
    ├── Configuration(modm:nucleo-f429zi)   NUCLEO-F429ZI
    ├── Configuration(modm:nucleo-g071rb)   NUCLEO-F042K6
    ├── Configuration(modm:nucleo-l432kc)   NUCLEO-L432KC
    ├── Configuration(modm:nucleo-l476rg)   NUCLEO-L476RG
    ├── Configuration(modm:olimexino-stm32)   Olimexino STM32
    ╰── Configuration(modm:stm32f030_demo)   STM32F030 Demo Board

cc @strongly-typed @rleh @chris-durand

lbuild path resolution fails if `:` is in a node name, so the alias
description cannot be read with lbuild discover -n modm:board:alias.
@salkinium salkinium marked this pull request as ready for review February 20, 2019 21:30
@salkinium salkinium merged commit 564effa into modm-io:develop Feb 20, 2019
@salkinium salkinium deleted the feature/lbuild_queries branch February 20, 2019 21:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

1 participant