Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
update readme about .NET, update openwrt instructions
  • Loading branch information
todbot committed Aug 27, 2022
1 parent b32c8b2 commit 8807901
Show file tree
Hide file tree
Showing 7 changed files with 40 additions and 14 deletions.
3 changes: 3 additions & 0 deletions .gitmodules
Expand Up @@ -4,3 +4,6 @@
[submodule "qt/third-party/fervor"]
path = qt/third-party/fervor
url = https://github.com/todbot/fervor.git
[submodule "openwrt/blink1-tool"]
path = openwrt/blink1-tool
url = https://github.com/todbot/blink1-tool
6 changes: 3 additions & 3 deletions README.md
Expand Up @@ -80,9 +80,9 @@ https://github.com/todbot/Blink1Control2
- __qt__ -- old Blink1Control1 Qt app
- __mac__ -- Mac OS X details and old Blink1Control0 app
- scripts -- command-line scripts to do cool things
- __windows__ -- Windows details and old Blink1Control0 app
- Blink1Lib -- .NET library wrapping blink1-lib
- ManagedBlink1 -- 100% .NET library
- __windows__ -- Windows and .NET details and old Blink1Control0 app
- Blink1Lib -- .NET library wrapping blink1-lib
- ManagedBlink1 -- 100% .NET library, supercedd by [Sleddog.Blink1](https://github.com/SleddogSoftwareDevelopment/blink1)
- scripts -- Windows command-line scripts to do cool things
- __linux__ -- Linux details and scripts
- contrib__ -- contributed Linux scripts
Expand Down
10 changes: 5 additions & 5 deletions openwrt/Makefile
Expand Up @@ -2,7 +2,7 @@
# Ipkg Makefile for building blink1-tool on OpenWrt / Arduino Yun
#
# Symlink this directory into your openwrt 'package' directory,
# with name 'blink1', then add it as a package, e.g.
# with name 'blink1', then add it as a package, e.g.
# % cd ~/projects/linino/trunk/package
# % ln -s ~/projects/blink1/openwrt blink1
# % cd ~/projects/linino/trunk
Expand All @@ -16,7 +16,7 @@
include $(TOPDIR)/rules.mk

PKG_NAME:=blink1
PKG_VERSION:=007
PKG_VERSION:=008
PKG_RELEASE:=1

PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)
Expand All @@ -34,14 +34,14 @@ include $(INCLUDE_DIR)/package.mk
define Package/blink1
SECTION:=utils
CATEGORY:=Utilities
DEPENDS:=+libusb-compat
DEPENDS:=+libusb-compat
TITLE:=blink(1) device utilities
URL:=http://blink1.thingm.com/
URL:=https://blink1.thingm.com/
endef

define Build/Prepare
mkdir -p $(PKG_BUILD_DIR)
$(CP) ./src/* $(PKG_BUILD_DIR)/
$(CP) ./blink1-tool/* $(PKG_BUILD_DIR)/
endef

define Build/Compile
Expand Down
30 changes: 26 additions & 4 deletions openwrt/README.md
@@ -1,17 +1,39 @@
Compiling blink1-tool for OpenWrt
=================================


This step-by-step was designed for Linino, the OpenWrt in Arduino Yun,
but the general process works for any OpenWrt.
Must do this on a Linux box. (I use an Ubuntu VM)
And for the below, assume that the checkouts are going into the "~/projects/" directory.


* Follow guide:
https://openwrt.org/docs/guide-developer/single.package

```
cd openwrt
./scripts/feeds install -a
./scripts/feeds install -a
make menuconfig
```
* In `menuconfig` select `Build the OpenWrt SDK (CONFIG_SDK)` and Save

```
make
```

* Run `make` to build the SDK (this takes a long time and several gigabytes)


----------------------
* Install needed tools
```
% apt-get install subversion build-essential git-core libncurses5-dev zlib1g-dev gawk asciidoc bash bc binutils bzip2 fastjar flex g++ gcc util-linux zlib1g-dev libncurses5-dev libssl-dev perl-modules python2.6-dev rsync ruby sdcc unzip wget gettext xsltproc zlib1g-dev libxml-parser-perl
% apt-get install build-essential git-core libncurses5-dev zlib1g-dev gawk asciidoc bash bc binutils bzip2 fastjar flex g++ gcc util-linux zlib1g-dev libncurses5-dev libssl-dev perl-modules rsync ruby sdcc unzip wget gettext xsltproc zlib1g-dev libxml-parser-perl
```

* Download version of OpenWrt used on the Yun:
* Download version of OpenWrt used on the Arduino Yun:
```
% mkdir ~/projects
% cd projects
% git clone https://github.com/arduino/linino.git linino
```

Expand Down
1 change: 1 addition & 0 deletions openwrt/blink1-tool
Submodule blink1-tool added at c0beb0
1 change: 0 additions & 1 deletion openwrt/src

This file was deleted.

3 changes: 2 additions & 1 deletion windows/README.md
@@ -1,6 +1,7 @@
Windows Software for blink(1)
Windows and .NET Software for blink(1)
=============================

The most recented supported [.NET library for blink(1)](https://github.com/SleddogSoftwareDevelopment/blink1) is [Sleddog.Blink1](https://github.com/SleddogSoftwareDevelopment/blink1) available on [NuGet](https://www.nuget.org/packages/Sleddog.Blink1) or [Github](https://github.com/SleddogSoftwareDevelopment/blink1)

In addition to the cross-platform "blink1-tool" available in the blink1/commandline directory,
this directory contains additional Windows-related blink(1) items.
Expand Down

0 comments on commit 8807901

Please sign in to comment.