Build a binary package without SDK?

Hi, I'm trying to package a binary program. It does not need to be compiled. Is there a simpler way to create ipk without setting up the SDK environment? I tried to use opkg-build script from opkg-utils. However, when I install the ipk, it shows

Collected errors:
 * pkg_init_from_file: Malformed package file p.ipk.

I find out that the file type is different, openwrt ipk:

[uuu@hhh ddd]% file adb-enablemodem_2017-03-05-1_aarch64_cortex-a53.ipk
adb-enablemodem_2017-03-05-1_aarch64_cortex-a53.ipk: gzip compressed data, from Unix, original size modulo 2^32 10240

ipk created by opkg-build:

[uuu@hhh ddd]% file p.ipk 
p.ipk: Debian binary package (format 2.0), with control.tar.gz, data compression gz

Hi, I'm trying to package a binary program, the developers provides the programs for multiple targets.. Is it possible to write a Makefile to create multiple ipks for different targets? Are there any examples for this? Thanks.

MODERATOR NOTE: These two posts appear to be very closely related. To ensure that the answers don't become bifrucated between two or more threads, I have merged them into this one.

1 Like