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

[BUG]/scripts/build-tools.sh -T doesn't build development topologies #4141

Closed
dbaluta opened this issue May 5, 2021 · 7 comments
Closed
Labels
bug Something isn't working as expected

Comments

@dbaluta
Copy link
Collaborator

dbaluta commented May 5, 2021

Describe the bug

Running /scripts/build-tools.sh -T doesn't build tplg files in tools/topology/development

Is this expected behavior? How one would build topologies in tools/topology/development using build-tools.sh script

@dbaluta dbaluta added the bug Something isn't working as expected label May 5, 2021
@lgirdwood
Copy link
Member

@singalsu fyi - I assume this is a regression ? @marc-hb fyi.

@marc-hb
Copy link
Collaborator

marc-hb commented May 5, 2021

They're built only when building everything. Demo:

rm tools/topology/development/sof-apl-dmic-asymmetric.m4 
./scripts/build-tools -T # does not care about /development/
./scripts/build-tools    # tries to build /development.

This single line is enough to change that:

--- a/tools/topology/development/CMakeLists.txt
+++ b/tools/topology/development/CMakeLists.txt
@@ -34,6 +34,7 @@ set(TPLGS_UP
 )
 
 add_custom_target(dev_topologies ALL)
+add_dependencies(topologies dev_topologies)
 
 foreach(tplg ${TPLGS})
 	list(GET tplg 0 input)

However I have no idea whether that's desirable or not. I think @plbossart, @ranj063 have some informed opinions on what topologies should be built and when? A new tools/topology/README.md would not hurt.

I assume this is a regression

No idea but there hasn't been any recent change AFAICT

@fredoh9
Copy link
Contributor

fredoh9 commented May 5, 2021

From SOF-CI, we use "scripts/build-tools.sh" without any option. We should build all.
But I checked on the storage server, I couldn't find development tplg files. Maybe we have some bugs when copying output.

@fredoh9
Copy link
Contributor

fredoh9 commented May 5, 2021

Sorry for a bit off the topic. This issue started with -T option...

For the storage server, there was my misunderstanding. There is no development directory, but all files are under tplg directories. I don't think we have any platform to use development's topology, I think, we are keeping flat directory structure for sake of simplifying deploy script. We have more option to do so also. I created an internal issue to discuss that.

@dbaluta
Copy link
Collaborator Author

dbaluta commented May 6, 2021

@fredoh9 thanks for your explanations.
To sum up:

  • ./scripts/build-tools.sh -T only builds topologies in the main directory
  • if one wants to build topologies in development directory there is the option to run ./scripts/build-tools.sh with no params.

@marc-hb
Copy link
Collaborator

marc-hb commented May 18, 2021

I got tired of this confusion too and I submitted #4210

marc-hb added a commit to marc-hb/sof that referenced this issue May 22, 2021
We used to do this in Travis, see commit 7072eb4 ("travis: run
build-tools.sh with CMAKE_BUILD_TYPE=Release") and older.

Related to issue thesofproject#4141 build-tools.sh -T does not build development
topologies.

Signed-off-by: Marc Herbert <marc.herbert@intel.com>
marc-hb added a commit to marc-hb/sof that referenced this issue May 22, 2021
Fixes thesofproject#4141. I got tired of repeatedly having to read CMakeLists.txt
files.

Signed-off-by: Marc Herbert <marc.herbert@intel.com>
cujomalainey pushed a commit that referenced this issue May 24, 2021
We used to do this in Travis, see commit 7072eb4 ("travis: run
build-tools.sh with CMAKE_BUILD_TYPE=Release") and older.

Related to issue #4141 build-tools.sh -T does not build development
topologies.

Signed-off-by: Marc Herbert <marc.herbert@intel.com>
cujomalainey pushed a commit that referenced this issue May 24, 2021
Fixes #4141. I got tired of repeatedly having to read CMakeLists.txt
files.

Signed-off-by: Marc Herbert <marc.herbert@intel.com>
@marc-hb
Copy link
Collaborator

marc-hb commented Dec 10, 2021

if one wants to build topologies in development directory there is the option to run ./scripts/build-tools.sh with no params.

Except for this "install" race condition I just discovered: #5067

But I checked on the storage server, I couldn't find development tplg files. Maybe we have some bugs when copying output.

Maybe that's why.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working as expected
Projects
None yet
Development

No branches or pull requests

4 participants