This repository has been obsoleted in favor of git://github.com/openwrt/packages.git which now includes both Cligen and Clixon.
This repo contains an OpenWrt package feed containing clixon related libraries and applications.
Note: clixon restconf is configured as native http/2-only
You need a target system. One way is to use virtualbox
Then you need to setup an openwrt cross-compile environment:
- Checkout openwrt:
git clone git://github.com/openwrt/openwrt.git
- Setup an openwrt buildroot for cross-compiling
To use the clixon packages, add the following line to feeds.conf in the OpenWrt buildroot. If feeds.conf
does not exist, create it:
src-git packages https://git.openwrt.org/feed/packages.git
src-git clixon https://github.com/clicon/clixon-openwrt.git
The clixon-openwrt feed should be included and enabled by default in the OpenWrt buildroot. To install all its package definitions, run:
./scripts/feeds update packages
./scripts/feeds install -a -p packages
./scripts/feeds update clixon
./scripts/feeds install -a -p clixon
Run make menuconfig
select target, and check the clixon packages (cligen
, clixon
, clixon-hello
, clixon-wifi
) in the section 'Utilities', and save.
To build a complete image:
make -j world
To build just the clixon and cligen packages on a given openwrt root build:
make -j1 V=s package/cligen/compile
make -j1 V=s package/clixon/compile
Thereafter the packages are copied to the target machine and installed
scp bin/packages/x86_64/clixon/cligen_6.3.0-1_x86_64.ipk root@192.168.56.2:/tmp/
scp bin/packages/x86_64/clixon/clixon_6.3.0-1_x86_64.ipk root@192.168.56.2:/tmp/
Login to the target and install the packages:
ssh root@192.168.56.2
opkg update
opkg install /tmp/cligen_6.3.0-1_x86_64.ipk
opkg install /tmp/clixon_6.3.0-1_x86_64.ipk
At this point, a base clixon
libs and data files are installed and you can proceed to install a clixon
example or application, such as hello world:
make -j1 V=s package/clixon-hello/compile
scp bin/packages/x86_64/clixon/clixon-hello*_x86_64.ipk root@192.168.56.2:/tmp/
ssh root@192.168.56.2 "opkg install /tmp/clixon-helloxxx_x86_64.ipk"
Thereafter the clixon
example can be run, eg:
clixon_backend -f /etc/hello.xml