Adding a module to an assembly

Thank you all so much for your help!
Now I have the following question: how do I build linux tools from the source?

1 Like

Do you mean the host tools, such as gcc?

2 Likes

I mean package “linux tools” which include tools for usbip and etc.

1 Like

You could create a customized buildroot in a similar manner to the Linux changes. Are the tools in the buildroot config?

2 Likes

Is buildroot config called by the menuconfig kernel function?

1 Like

Try menuconfig as see if that works.

1 Like

It works. But I didnt find some like linux-tools there.
To clarify the task, I need 2 tools: usbipd and usbip.
On another forum about another single-board computer I found instruction how to compile yourself:

$apt-get install linux-source-5.10.34-current-meson64
go into the /usr/src/tools/usb/usbip directory and follow instructions in README:
$ ./autogen.sh
$ ./configure --with-tcp-wrappers=no
$ make install

Maybe based on this information, you can tell me what to do in order for me to compile these tools?

I generally understand what they did. I think there should be a way to do similar things at the firmware compilation stage.

1 Like

I am not familiar with these particular tools, but there should be a way to tell configure that you are cross-compiling, and so build using the risc-v compiler, e.g. GNU automake cross-compiltion.

1 Like

Still, maybe someone knows how to perform an additional compilation of the tool during the OS build?

2 Likes