Coder Social home page Coder Social logo

openwrt-upx's Introduction

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

openwrt-upx's People

Contributors

kuoruan avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

openwrt-upx's Issues

UPX 4.0 => arm64会出现 “Illegal instruction”

前辈您好,感谢您为此包制作而付出的努力。😀

最近在使用本包压缩自写的Golang程序时,发现成功压缩之后,在arm64(软路由 r2s)平台,会出现报错Illegal instruction
经过大量时间排查,发现这可能是upx自身问题,见 upx/upx#534 ;当前为了依旧能够使用压缩,我用的是老版本
https://github.com/kuoruan/openwrt-upx/blob/3f51247c84b654ead7baae9be35aeec55376d7e9/upx/Makefile

提issue 只是作提醒记录,希望upx如果修复此问题后,前辈也跟进更新,谢谢🙏。

4.0.2 编译失败

环境为 debian11.6,openwrt 22.03.5。上一个版本 2c2ee0d 编译成功。
提示找不到文件路径。

makefile 加入
HOST_BUILD_DIR:=$(BUILD_DIR_HOST)/$(PKG_NAME)-$(PKG_VERSION)-src
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)-src
两行后重新编译,提示找不到 $(PKG_BUILD_DIR)/src/upx.out

看了一下upx源码的makefile,可能是openwrt包含的gcc版本不支持 .DEFAULT_GOAL = build/release。

Pull request: openwrt/packages

Hi,

thanks for your great work!

I want to use upx/host for my own package openwrt/packages#16238 , but if I got it right, your packages ucl and upx need to be merge via a pull request into that repository.

Could you imagine to create a pull request ? Here is their documentation
Or wold it be okay for you, if I fork your repository and create a pull request for your packages?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.