Code Monkey home page Code Monkey logo

opkg-static's Introduction

Static self-contained opkg binary for adhoc vendor devices
==========================================================

Opkg is a package manager for embedded systems,
http://code.google.com/p/opkg/ , http://en.wikipedia.org/wiki/Opkg
There are quite a few devices on the market which use Embedded Linux,
but don't follow POSIX/Linux best practices and instead use adhoc
vendor system structure. Oftentimes, file system layout doesn't match
(or conflicts with) FHS (http://en.wikipedia.org/wiki/Filesystem_Hierarchy_Standard)
and user may not have write access to the entire file system, or
important. Examples of such systems are Android, Kindle, etc.
Users may still want to use package management for "sideloaded"
Linux software, and this project is intended to make this possible.

These are build scripts to build a fully static, dependency-less
opkg binary for Android. 

The idea of this project is to provide an opkg build independent
of the vendor system. Full independence of underlying system means
it can be used without root permissions, or could be used even to
manage vendor installation itself (for example, "Packaged Android").
To these ends, opkg is built statically, against libcurl (to not
depend on a standalone wget), which in turn is built against c-ares,
to not rely on /etc/resolv.conf being available (you can't
create/edit that on a non-rooted device). Filesystem paths for
configuration files (including network resolver ones) and package
data storage is fully configurable.

Usage:

To build opkg, ARM cross-toolchain is needed. CodeSourcery
arm-2011.09-70-arm-none-linux-gnueabi is used as the reference. If you
want to download (~80MB) and setup it automatically, run:

source ./setup-toolchain.sh

Otherwise, you should have arm-none-linux-gnueabi-gcc and other toolchain
executables in your PATH.

./download.sh

    To download required source packages. You need to run this once.

./build-*.sh

    Run build file for a particular device and configuration. Binary
    will be available as opkg/install/bin/opkg-static .

./install-android.sh

    This script will install opkg-static and require files to a
    connected Android device via ADB. (Works only for
    build-android-data-local.sh)

opkg-static's People

Contributors

pfalcon avatar

Watchers

James Cloos avatar  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.