/openwrt-upx

UPX package for OpenWrt

Primary LanguageMakefile

openwrt-upx

UPX pacakage for OpenWrt

Build Guide

  • 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

For Packages that Need UPX Compress

  • Add upx/host to PKG_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