Hi all!
I have a tool written in C that needs to be compiled for the host buildsystem. It aggregates DTBs for Amlogic devices which is used as one of the build step when generating the device image.
How do I go about integrating this into the build system? For starters, I've tried creating a folder dtbTool under the tools folder, then adding tools/dtbTool/dtbTool.c and tools/dtbTool/Makefile, and finally inserting the make and $ROOT/tools/dtbTool/dtbTool commands in scripts/image. However, when the make executes, it generates the binary for the target platform. I know that this is the wrong way to do it, but I had to start from somewhere.