UPX pacakage for OpenWrt
-
Download and unzip OpenWrt SDK
-
In SDK directory, download Makefiles with git:
git clone https://github.com/kuoruan/openwrt-upx.git package/openwrt-upx
- Build pakcage
./scripts/feeds update -a
./scripts/feeds install -a
make defconfig # or make menuconfig
make package/upx/{clean,compile} V=s
- Add
upx/host
toPKG_BUILD_DEPENDS
:
PKG_BUILD_DEPENDS:=... upx/host
- In
Build/Compile
stage:
define Build/Compile
...
$(STAGING_DIR_HOST)/bin/upx --lzma --best ... # bin files to be compressed
...
endef