[OpenWrt Wiki] OpenWrt packages
https://openwrt.org/docs/guide-developer/package-policiesOpenWrt binary packages are almost exclusively produced from source packages by invoking either the OpenWrt buildroot or the OpenWrt SDK in order to translate the source package Makefile descriptions into executable binary artifacts tailored for a given target system.. Although it is possible to manually assemble binary packages by invoking tools such as tar and placing …
[OpenWrt Wiki] Creating packages
https://openwrt.org/docs/guide-developer/packages24.07.2009 · OpenWrt works under the assumption of one source per package Makefile, but you can split that source into as many packages as desired. Since you only need to compile the sources once, there's one global set of “Build” defines, but you can add as many “Package/” defines as you want by adding extra calls to BuildPackage – see the dropbear package for an …