How do I create a new device, target profile, in ImageBulider?
I have added information in:
target/linux/ramips/base-files/etc/board.d/02_network
target/linux/ramips/base-files/etc/board.d/01_leds
target/linux/ramips/base-files/lib/ramips.sh
target/linux/ramips/image/mt76x8.mk
target/linux/ramips/dts/NewDevice.dts
Yes, I have tried to follow that guide, but my new device will not show up in make info after the touch target/linux/*/Makefile.
I think this guide is not really for the ImageBuilder, or?
I had forgot to edit .targetinfo. I added my new device in .config and profiles.mk as well.
Now my new device is visible in make info. But when I run make image PROFILE=new_device it fails with JSON info file script could not find any JSON files for target and only the manifest file is created.
by trying to add stuff to imagebuilder retrospectively, you circumvent the compile stage(s)...
as such, in addition to the files you found and the regular recipes under target/linux/X, you also need to place build artifacts under build_dir such as dtb etc. etc.
you may wish to checkout the zsun thread by brunompena who is the reference for such a task...