Giter VIP home page Giter VIP logo

openwrt-libevent21's Introduction

openwrt-libevent21

libevent 2.1 package for openwrt

  1. 下载对应芯片平台的SDK,我的是联想newifi minimt7620a
  2. 下载PandoraBox Toolchain
  3. 配置交叉编译环境变量(假设我将以上SDK及Toolchain都解压到~/pbox目录)
PATH=$PATH:~/pbox/toolchain-mipsel_24kec+dsp_gcc-4.8-linaro_uClibc-0.9.33.2/bin
export PATH
STAGING_DIR=~/pbox
export STAGING_DIR
  1. 将本Repository中的Makefile放到SDK根目录package目录下,如package/libevent21
  2. 在SDK根目录运行make package/libevent21/install V=s
  3. 不出意外的话ipk会在bin/ramips/packages/base目录下
  4. 将所需的ipk上传到路由器安装即可

To quickly build package for target platform:

  • Get corresponding pre-built OpenWrt SDK from downloads.openwrt.org (e.g. this one for ar71xx platform)
  • Set up environment for cross compilation - need to add toolchain binaries to PATH environment variable and define STAGING_DIR.
  • In SDK root directory make a directory for package inside package (e.g. package/libevent21).
  • Checkout Makefile to package directory
  • Run make package/libevent21/install V=s from SDK root
  • When built succesfully packages are placed in bin/${PLATFORM}/packages directory:
    • bin/ar71xx/packages/base/libevent2-pthreads_2.1.5-1_ar71xx.ipk
    • bin/ar71xx/packages/base/libevent2-openssl_2.1.5-1_ar71xx.ipk
    • bin/ar71xx/packages/base/libevent2-core_2.1.5-1_ar71xx.ipk
    • bin/ar71xx/packages/base/libevent2-extra_2.1.5-1_ar71xx.ipk
    • bin/ar71xx/packages/base/libevent2_2.1.5-1_ar71xx.ipk
  • Generate package index:
    • staging_dir/host/bin/ipkg-make-index bin/ar71xx/packages/base > bin/ar71xx/packages/base/Packages
    • gzip -c bin/ar71xx/packages/base/Packages > bin/ar71xx/packages/base/Packages.gz
  • opkg feeds need to be confgiured either to use local http server or install packages from filesystem (via file:/// url schema)

openwrt-libevent21's People

Contributors

frymode avatar ferstar avatar

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.