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

Allow out of tree build of the Crazyflie firmware #485

Closed
ataffanel opened this issue Oct 14, 2019 · 4 comments
Closed

Allow out of tree build of the Crazyflie firmware #485

ataffanel opened this issue Oct 14, 2019 · 4 comments
Milestone

Comments

@ataffanel
Copy link
Member

In order to simplify implementation of autonomous behavior for the Crazyflie is would be good to be able to 'include' the Crazyflie Makefile from another Makefile in order to build outside code together with the Crazyflie firmware. This would allow to create separate repos implementing autonomous behavior (for example the STEM bundle push demo) without having to put the code in the Crazyflie repos.

To allow this, there should be a variable added in the Cazyflie firmware makefile that contains the base path of the Crazyflie firmware, this variable can be used to locate the source code.

Since we use VPATH, all build artifact will be created in the folder where make is called, this will make out-of-tree builds completely independent and will allows to share one Crazyllie source folder for many builds.

@ataffanel
Copy link
Member Author

3b09e61

@ataffanel
Copy link
Member Author

Now fixed, an example of the push demo implemented using out of tree build can be found in this repos: https://github.com/ataffanel/crazyflie-push-demo

@pablogs9
Copy link
Contributor

Does it makes sense to add some external Makefile targets in order to allow external app to build dependencies?

For example, adding a variable to this line

all: bin/ bin/dep bin/vendor $(EXTERNAL_LIBS) check_submodules build

What do you think about this change?

@ataffanel
Copy link
Member Author

Sure, I do not see an actual use for (you could just add libs to $(PROJ_OBJ)?) but I do not see why not so if you have a use-case for it do not hesitate to make a PR.

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

No branches or pull requests

2 participants