diff --git a/README.Packaging b/README.Packaging index 1ea8ea4..e582d9f 100644 --- a/README.Packaging +++ b/README.Packaging @@ -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 diff --git a/openwrt/Makefile b/openwrt/Makefile index 175eec6..7c34ea0 100644 --- a/openwrt/Makefile +++ b/openwrt/Makefile @@ -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 diff --git a/openwrt/buildenv.sh b/openwrt/buildenv.sh index 926f4da..295d12b 100755 --- a/openwrt/buildenv.sh +++ b/openwrt/buildenv.sh @@ -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".'