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

merge_config.sh can behave differently from merge_config.py #5374

Closed
SebastianBoe opened this issue Dec 13, 2017 · 4 comments · Fixed by #5569
Closed

merge_config.sh can behave differently from merge_config.py #5374

SebastianBoe opened this issue Dec 13, 2017 · 4 comments · Fixed by #5569
Assignees
Labels
area: Build System bug The issue is a bug, or the PR is fixing a bug priority: medium Medium impact/importance bug
Milestone

Comments

@SebastianBoe
Copy link
Collaborator

Steps to reproduce:

  1. Change the buildscripts to use merge_config.py.
  2. ./scripts/sanitycheck -Tsamples/drivers/led_ws2812/

The sample fails to build with merge_config.py.

@SebastianBoe SebastianBoe added area: Build System area: Debugging bug The issue is a bug, or the PR is fixing a bug and removed area: Debugging labels Dec 13, 2017
@SebastianBoe SebastianBoe self-assigned this Dec 13, 2017
@nashif nashif added this to the v1.11.0 milestone Dec 13, 2017
@nashif
Copy link
Member

nashif commented Dec 13, 2017

yep, the difference in generated .config:

--- /tmp/config_sh	2017-12-13 13:38:35.169084378 -0500
+++ /tmp/config_py	2017-12-13 13:38:15.579243008 -0500
@@ -330,7 +330,7 @@
 # CONFIG_GPIO_STM32_PORTJ is not set
 # CONFIG_GPIO_STM32_PORTK is not set
 # CONFIG_SHARED_IRQ is not set
-# CONFIG_SPI_LEGACY_API is not set
+CONFIG_SPI_LEGACY_API=y
 CONFIG_SPI=y
 CONFIG_SPI_STM32=y
 CONFIG_SPI_STM32_INTERRUPT=y
@@ -401,22 +401,6 @@
 CONFIG_SYS_LOG_LED_STRIP_LEVEL=0
 CONFIG_LED_STRIP_INIT_PRIORITY=90
 # CONFIG_LED_STRIP_RGB_SCRATCH is not set
-# CONFIG_LPD880X_STRIP is not set
-CONFIG_WS2812_STRIP=y
-CONFIG_WS2812_STRIP_NAME="ws2812_strip"
-CONFIG_WS2812_STRIP_SPI_DEV_NAME="ws2812_spi"
-CONFIG_WS2812_STRIP_SPI_BAUD_RATE=5250000
-CONFIG_WS2812_STRIP_ONE_FRAME=0x7c
-CONFIG_WS2812_STRIP_ZERO_FRAME=0x60
-
-#
-# The following options determine channel data order on the wire.
-#
-CONFIG_WS2812_RED_ORDER=1
-CONFIG_WS2812_GRN_ORDER=0
-CONFIG_WS2812_BLU_ORDER=2
-CONFIG_WS2812_HAS_WHITE_CHANNEL=y
-CONFIG_WS2812_WHT_ORDER=3

 #
 # Build and Link Features

@nashif nashif added the priority: medium Medium impact/importance bug label Dec 13, 2017
@nashif
Copy link
Member

nashif commented Dec 17, 2017

The culprit is

-# CONFIG_SPI_LEGACY_API is not set
+CONFIG_SPI_LEGACY_API=y

prj.conf has

# CONFIG_SPI_LEGACY_API is not set

@carlescufi
Copy link
Member

@nashif @SebastianBoe can we close this as per #5569 ?

@SebastianBoe
Copy link
Collaborator Author

@carlescufi : What you can do is put "fixes #5374" in the PR description or a commit message and this will be automatically closed when the RFC is merged.

https://help.github.com/articles/closing-issues-using-keywords/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: Build System bug The issue is a bug, or the PR is fixing a bug priority: medium Medium impact/importance bug
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants