OpenWrt Forum Archive

Topic: mak package for all arches

The content of this topic has been archived on 16 Apr 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

Dear Community,

is there a way to build a single package for all arches?

something like:
make world -a
make package/MYPACKAGE/compile -a

Any Sugestion would be nice.

Thanks
derdigge

Depends on the nature of your package:
* If the package contains only scripts and has no arch-dependent binaries, your can define "PKGARCH:=all" in the package Makefile. Then the compiled *.ipk will happily install to all archs.  Package "adblock" as an example: https://github.com/openwrt/packages/blo … k/Makefile
* If your package contains binaries and needs to be cross-compiled for each arch, you are out of luck. You need the cross-compiling toolchain and libraries for each arch, so you need to build the package separately for each platform (like the buildbot does). You will also have ~50 different *.ipk files, one for each arch.

ok, thank You!
So i will script me somethig, thats looping.

The discussion might have continued from here.