Skip to content

Moving/renaming code #289

Answered by krichardsson
Pandagineer asked this question in Q&A
Sep 27, 2022 · 3 comments · 4 replies
Discussion options

You must be logged in to vote

Hi!

There is nothing special with moving a project and it should be fine to move it outside the Crazyflie firmware file tree.

I did a test locally and this is what I did:

  1. Copy examples/app_hello_world to /home/kristoffer/code/temp/Measure_Voltage
  2. Clean up of the new folder
    2.1 Remove the build directory
    2.2 Remove all .o and .o.cmd files
  3. Rename/change stuff
    3.1 src/hello_world.c ==> src/measure_voltage.c
    3.2 Updated the DEBUG_PRINT() to print something else than "hello world"
  4. Update build
    4.1 Update src/Kbuild to obj-y += measure_voltage.o
    4.2 Update CRAZYFLIE_BASE in Makefile to point at your crazyflie firmware repo (CRAZYFLIE_BASE := /home/kristoffer/code/bitcraze/crazyflie-firmware in…

Replies: 3 comments 4 replies

Comment options

You must be logged in to vote
1 reply
@Pandagineer
Comment options

Answer selected by Pandagineer
Comment options

You must be logged in to vote
2 replies
@Pandagineer
Comment options

@krichardsson
Comment options

Comment options

You must be logged in to vote
1 reply
@krichardsson
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
2 participants