I am trying to set up Imagebuilder to build multiple images with customized uci-defaults for every one of them. I have functional build on x86_64 but when I transfer it to Raspi with aarch64 architecture, it doesn't work with following results.
/opt/cudyflasher/imagebuilder/staging_dir/host/bin/find: line 5: /opt/cudyflasher/imagebuilder/staging_dir/host/bin/../lib/ld-linux-x86-64.so.2: cannot execute binary file: Exec format error
/opt/cudyflasher/imagebuilder/staging_dir/host/bin/find: line 5: /opt/cudyflasher/imagebuilder/staging_dir/host/bin/../lib/ld-linux-x86-64.so.2: Success
/opt/cudyflasher/imagebuilder/staging_dir/host/bin/opkg: line 5: /opt/cudyflasher/imagebuilder/staging_dir/host/bin/../lib/ld-linux-x86-64.so.2: cannot execute binary file: Exec format error
/opt/cudyflasher/imagebuilder/staging_dir/host/bin/opkg: line 5: /opt/cudyflasher/imagebuilder/staging_dir/host/bin/../lib/ld-linux-x86-64.so.2: Success
Is there any way to tell make to cross-compile these binaries to aarch64 architecture during compilation process or any other approach to get functional imagebuilder on another architecture?