Skip to content

Conversation

@yamt
Copy link
Contributor

@yamt yamt commented Feb 21, 2020

No description provided.

@yamt
Copy link
Contributor Author

yamt commented Feb 21, 2020

i only tested on macOS

# macOS doesn't have flock. Use shlock instead.
AR := $(APPDIR)/tools/flock.sh $(APPDIR)/.arlock $(AR)
else
AR := flock $(APPDIR)/.arlock $(AR)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

But I think this change still hit "@ can't find", I mention here:
apache/nuttx#342
since the symbol @ in side the original AR still pass to bash, but I can't understand why macOS no problem.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

AR doesn't have @. ARCHIVE does.

Copy link
Contributor

@xiaoxiang781216 xiaoxiang781216 Feb 21, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

But we can't bypass ARCHIVE and invoke AR directly, you can see there are mutiple ARCHIVE defintion in nuttx to fight or workaround the toolchain difference.
Actually, nuttx give the user freedom to provide own ARCHIVE defintion, so the ARCHIVE overload may exist more than we imagine.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i checked some of ARCHIVE but they all seem calling AR one way or another.
you are right this doesn't work if ARCHIVE does something completely different.
i suspect it isn't the case though.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Here is the case:
https://github.com/xiaoxiang781216/nuttx/blob/song-u1/arch/ceva/src/song/Toolchain.defs
You can see to support CEVA toolchain we have to do thing hard.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok, i'm now convinced. thank you for the pointer.

@yamt yamt closed this Feb 21, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants