Uh oh!
There was an error while loading. Please reload this page.
[RFC] scripts: docker build changes to support enum control - #3652
[RFC] scripts: docker build changes to support enum control#3652juimonen wants to merge 1 commit into
Conversation
Update docker build description to use alsa-lib and alsa-utils upstream rather than sofproject versions. Also update ulimit for docker build to support crosstools-ng. Signed-off-by: Jaska Uimonen <jaska.uimonen@intel.com>
marc-hb
left a comment
There was a problem hiding this comment.
Looks like these two changes are completely unrelated to each other, so they should be two different commits.
I find the ulimit change quite cryptic, can you say more about it? I think a comment mentioning crosstool-ng wouldn't hurt in the code because I doubt many people could relate this option to crosstool-ng in the future without git blame.
Maybe it's obvious for others but some information/references about why we don't need our own ALSA branches any more would be welcome too.
juimonen
commented
Dec 1, 2020
@marc-hb should have marked this as draft etc. Idea was that I got the docker build working with this ulimit settings, and the alsa-lib upstream made enum controls to compile in topology. So this is basis for discussion to see if this is the correct way to fix this. I also don't know why we are using our "own" versions of alsa-lib, I suspect that historically we've had some differentiation from upstream. crosstools-ng bailed out in compilation saying something like "compilation might need more open files than your current limit 1024, so changing it -> can't set ulimit, error". So don't know if that's something in my docker setup, or some change in crosstools-ng configure check? I think I've been able to build the docker image before... |
xiulipan
commented
Dec 1, 2020
| RUN mkdir -p /home/sof/work/alsa && cd /home/sof/work/alsa && \ | ||
| git clone $CLONE_DEFAULTS https://github.com/thesofproject/alsa-lib.git && \ | ||
| git clone $CLONE_DEFAULTS https://github.com/thesofproject/alsa-utils.git && \ | ||
| git clone $CLONE_DEFAULTS https://github.com/alsa-project/alsa-lib.git && \ |
There was a problem hiding this comment.
I would hold off here as there are some alsa-lib patches being worked on for topology 2.0. Best to just update our local copies of alsa-lib etc in the mean time.
marc-hb
commented
Dec 3, 2020
Looks like a good enough code comment to me. |
juimonen
commented
Dec 3, 2020
Yes, would be just good if someone else would try to build the image: still I'm not sure this issue is just with my environment or exists generally for everyone. Anyway seems we have a plan:
Let's keep this open, until we have the above checked... @xiulipan can you try the docker build? |
juimonen
commented
Dec 3, 2020
thesofproject/alsa-lib#1 @lgirdwood you remember about your commit on top of alsa-lib? Is it replaced with some other related code in upstream master as I didn't seem to need it for enum compilation i.e. is it still needed? |
lgirdwood
commented
Dec 3, 2020
oh, it can be reverted. |
juimonen
commented
Feb 8, 2021
@xiuli, did we update the sof docker? if so, we can close this... |
xiulipan
commented
Feb 8, 2021
@juimonen I think the docker image is already updated, you can try with some PR. |
lgirdwood
commented
Feb 8, 2021
@juimonen please update if ready to merge, still draft. |
juimonen
commented
Feb 9, 2021
@xiulipan@lgirdwood#3695 is compiling now in CI (has enum controls in topology) so I think we can close this. |
Update docker build description to use alsa-lib and alsa-utils upstream
rather than sofproject versions. Also update ulimit for docker build to
support crosstools-ng.
Signed-off-by: Jaska Uimonen jaska.uimonen@intel.com