Replies: 1 comment
-
This question is more about buildroot. If you add packages to buildroot, I think you should read the buildroot documentation (customize-packages) But I think there is a more convenient way to solve your problem. If you can read shell scripts and makefiles, you can refer to the Add custom program in |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi everyone,
I'm very new to embedded Linux and just started working with the Luckfox Pico board. I’ve been following the SDK and Buildroot setup, and it’s been great so far — thank you to the developers for this project!
Now, I’m trying to do something that I’m not sure how to approach:
I want to add my own simple C library (some .c and .h files) to the system so it gets compiled and included in the final firmware.
What I'm Trying to Do:
I wrote a small custom library called libmysensor, and the folder looks like this:
libmysensor/
├── libmysensor.c
├── libmysensor.h
└── Makefile
I want this library to be:
Compiled automatically when I build the project
Included in the root filesystem
Available for other programs on the board to use
What I Know So Far:
I saw that Buildroot can be used to add packages.
I read a bit about creating a folder in buildroot/package/ and adding Config.in and .mk files.
I also found the make menuconfig command to enable packages.
But honestly, I don’t fully understand how Buildroot works yet, or what’s the right way to "install" a custom library like mine.
Can Someone Please Guide Me?
I’d really appreciate help with:
What steps should I follow (in beginner language) to add my library?
Where should I put my library code?
How do I tell Buildroot to compile and install it?
How can I check if it's available on the final system after flashing?
I’m using this repo:
https://github.com/LuckfoxTECH/luckfox-pico
Thank you so much in advance!
I’m eager to learn and would love any beginner-friendly tips, examples, or documentation you could share.
Best,
Parth Dhoble
Beta Was this translation helpful? Give feedback.
All reactions