Update OpenWrt packaging
This commit is contained in:
parent
36660db546
commit
677a6692c7
3 changed files with 17 additions and 8 deletions
|
|
@ -1,6 +1,15 @@
|
|||
Packaging Geiger Counter Logger
|
||||
===============================
|
||||
|
||||
Arch Linux
|
||||
----------
|
||||
Recipe from: https://wiki.archlinux.org/index.php/creating_packages
|
||||
|
||||
1. pacman -S base-devel
|
||||
2. Copy PKGBUILD to working directory
|
||||
3. makepkg
|
||||
4. PKG package is created in working directory
|
||||
|
||||
OpenWrt
|
||||
-------
|
||||
Recipe from: https://openwrt.org/docs/guide-developer/using_the_sdk
|
||||
|
|
|
|||
|
|
@ -8,7 +8,7 @@
|
|||
include $(TOPDIR)/rules.mk
|
||||
|
||||
PKG_NAME:=gclog
|
||||
PKG_VERSION:=0.2.4
|
||||
PKG_VERSION:=0.2.5
|
||||
PKG_RELEASE:=1
|
||||
|
||||
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
||||
|
|
|
|||
|
|
@ -2,13 +2,13 @@
|
|||
|
||||
# Setup buildroot
|
||||
# ---------------
|
||||
# 1. Download OpenWrt SDK, ex. Barrier Breaker 14.07 for ar71xx architecture:
|
||||
# http://downloads.openwrt.org/barrier_breaker/14.07/ar71xx/generic/OpenWrt-SDK-ar71xx-for-linux-x86_64-gcc-4.8-linaro_uClibc-0.9.33.2.tar.bz2
|
||||
# 2. Extract archive to ~/OpenWrt
|
||||
# 3. Modify toolchain path if needed
|
||||
# 4. Execute "source buildenv.sh"
|
||||
# 1. Download OpenWrt SDK, ex. version 18.06.2 for ar71xx architecture:
|
||||
# https://downloads.openwrt.org/releases/18.06.2/targets/ar71xx/generic/openwrt-sdk-18.06.2-ar71xx-generic_gcc-7.3.0_musl.Linux-x86_64.tar.xz
|
||||
# 2. Execute "source buildenv.sh"
|
||||
|
||||
export STAGING_DIR="~/OpenWrt/staging_dir"
|
||||
export CC="${STAGING_DIR}/toolchain-mips_34kc_gcc-4.8-linaro_uClibc-0.9.33.2/bin/mips-openwrt-linux-gcc"
|
||||
mkdir openwrt && tar -xaf openwrt-sdk*.tar.xz --strip-components 1 -C openwrt/
|
||||
|
||||
export STAGING_DIR=$(realpath ./openwrt/staging_dir)
|
||||
export CC=`find "$STAGING_DIR"/toolchain*/bin/*openwrt-linux-gcc -print`
|
||||
|
||||
echo 'Build environment set, now run "make".'
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue