tessel / openwrt-tessel

OpenWrt build scripts and package feed for Tessel 2
Other
32 stars 14 forks source link

Adding the capacity to add a version file to OpenWRT #16

Closed johnnyman727 closed 9 years ago

johnnyman727 commented 9 years ago

@kevinmehall what do you think of this as a solution to https://github.com/tessel/openwrt-tessel/issues/15?

Any thoughts on how we could automate the versioning json file?

kevinmehall commented 9 years ago

I'm not sure this has to be a package.

Just add something like git rev-parse HEAD > openwrt/files/etc/tessel_version to the top of the world rule in the makefile.

johnnyman727 commented 9 years ago

@kevinmehall that's fair. My preference to have a file with a parsable version (like 0.0.1 or 1.0.1) was so that I didn't have to fetch the build list from server and cross check the sha before deciding if a Tessel needs to be updated or not. However, if we want the CLI to automatically check if the firmware is out of date on any command, we'll need to do that anyway.