Commit Graph

83 Commits

Author SHA1 Message Date
Nathaniel Wesley Filardo f20591a82e Lost fix to nodemcu-partition.py (take 2) (#3139)
Replay a line from https://github.com/nodemcu/nodemcu-firmware/pull/2861
after accidental revert in
https://github.com/nodemcu/nodemcu-firmware/pull/3075 (specifically
9ef5c7dbea)
2020-06-09 22:26:52 +02:00
Terry Ellison bbeb09b695 Squashed updates do get Lua51 and Lua53 working (#3075)
-  Lots of minor but nasty bugfixes to get all tests to run clean
-  core lua and test suite fixes to allow luac -F to run cleanly against test suite
-  next tranch to get LFS working
-  luac.cross -a options plus fixes from feedback
-  UART fixes and lua.c merge
-  commit of wip prior to rebaselining against current dev
-  more tweaks
2020-06-09 22:26:52 +02:00
Nathaniel Wesley Filardo af426d0315 Networking rampage and accumulated fixes (#3060)
* espconn: remove unused espconn code, take 1

This is the easiest part of https://github.com/nodemcu/nodemcu-firmware/issues/3004 .
It removes a bunch of functions that were never called in our tree.

* espconn: De-orbit espconn_gethostbyname

Further work on https://github.com/nodemcu/nodemcu-firmware/issues/3004

While here, remove `mqtt`'s charming DNS-retry logic (which is neither
shared with nor duplicated in other modules) and update its :connect()
return value behavior and documentation.

* espconn: remove scary global pktinfo

A write-only global!  How about that.

* net: remove deprecated methods

All the TLS stuff moved over there a long time ago, and
net_createUDPSocket should just do what it says on the tin.

* espconn_secure: remove ESPCONN_SERVER support

We can barely function as a TLS client; being a TLS server seems like a
real stretch.  This code was never called from Lua anyway.

* espconn_secure: more code removal

* espconn_secure: simplify ssl options structure

There is nothing "ssl_packet" about this structure.  Get rid of the
terrifying "pbuffer" pointer.

Squash two structure types together and eliminate an unused field.

* espconn_secure: refactor mbedtls_msg_info_load

Split out espconn_mbedtls_parse, which we can use as part of our effort
towards addressing https://github.com/nodemcu/nodemcu-firmware/issues/3032

* espconn_secure: introduce TLS cert/key callbacks

The new feature part of https://github.com/nodemcu/nodemcu-firmware/issues/3032
Subsequent work will remove the old mechanism.

* tls: add deprecation warnings

* luacheck: net.ifinfo is a thing now

* tls: remove use of espconn->reverse

* mqtt: stop using espconn->reverse

Instead, just place the espconn structure itself at the top of the user
data.  This enlarges the structure somewhat but removes one more layer
of dynamic heap usage and NULL checks.

While here, simplify the code a bit.

* mqtt: remove redundant pointer to connect_info

Everywhere we have the mqtt_state_t we also have the lmqtt_userdata.

* mqtt: doc fixes

* mqtt: note bug

* tls: allow :on(...,nil) to unregister a callback
2020-06-09 22:26:52 +02:00
M.K 3aba085f82 Clarify LFS build info is its size (#3022) 2020-06-09 22:26:52 +02:00
galjonsfigur 6926c66b16 Polish Lua examples (#2846)
* Add missing globals from luacheck config

* Fix luacheck warnings in all lua files

* Re-enable luacheck in Travis

* Speed up Travis by using preinstalled LuaRocks

* Fix more luacheck warnings in httpserver lua module

* Fix DCC module and add appropriate definitions to luacheck config.

* Change inline comments from ignoring block to only ignore specific line

* Add Luacheck for Windows and enable it for both Windows and Linux

* Change luacheck exceptions and fix errors from 1st round of polishing

* Add retry and timeout params to wget
2020-06-09 22:26:52 +02:00
Gregor Hartmann 739b675b72 add build_date to build info (#2888) 2019-08-15 12:33:22 +02:00
Nathaniel Wesley Filardo 15afa7fd2e
Merge pull request #2830 from HHHartmann/Extend-node.info
Extend node.info
2019-08-04 20:52:41 +01:00
Nathaniel Wesley Filardo 49ac968bde Lost fixes to nodemcu-partition.py (#2861) 2019-07-27 14:21:52 +02:00
Gregor Hartmann d054d17694
adapt sed calls for macOS 2019-07-27 13:09:11 +02:00
Gregor Hartmann 825e35053f
have common capitalization in startup message 2019-07-27 12:55:34 +02:00
Gregor 0ff3084fe3 small fixes as outcome of review 2019-07-27 08:27:19 +02:00
Gregor 9eec82fead Get DTS in UTC as Marcel proposed. 2019-07-27 05:36:06 +00:00
Gregor 5fafa6378c change to better UI and get information directly from .h file 2019-07-27 05:36:06 +00:00
Gregor 1d976e54f2 inprove USER_PROLOG handling 2019-07-27 05:36:06 +00:00
Gregor 063988f12a Change DTS to string since it is too big as number 2019-07-27 05:36:05 +00:00
Gregor 6a78546707 update file permission 2019-07-27 05:36:05 +00:00
Gregor 6f1e366946 Revert "update file permission"
This reverts commit af9b123bc1c0603859caf9fcd6fcfdeeeb08dbce.
2019-07-27 05:36:05 +00:00
Gregor 299b248932 Cover for failed RELEASE_DTS calculation 2019-07-27 05:36:05 +00:00
Gregor 2d80042f91 update file permission 2019-07-27 05:36:05 +00:00
Gregor bc4b177086 Fix small issues and add execute bit for unix 2019-07-27 05:36:04 +00:00
Gregor ad90e8dd51 tweal the startup message a bit 2019-07-27 05:36:04 +00:00
Gregor e6c2f4cb55 Include environment variable USER_PROLOG in user config default 2019-07-27 05:36:04 +00:00
Gregor e0273185db include buildinfo generation in makefile 2019-07-27 05:36:04 +00:00
Gregor 4b279939b6 Add release info 2019-07-27 05:36:02 +00:00
Gregor 21c35a1a97 Create buildinfo.h and return new Values in node.info 2019-07-27 05:36:02 +00:00
Terry Ellison 98c2c0520d
Dev make cleanup (#2842) 2019-07-23 18:47:18 +03:00
galjonsfigur 7de8a01705 Add luacheck config and configuration for Travis CI (#2790)
* Move luacheck conf and fix Travis for all possible filenames
* Add lua script to help with luacheck config
* Add xargs approach for current luac.cross file checking
* Enable luacheck but do not break build
2019-06-28 06:53:19 +02:00
Terry Ellison f1b5dfc34e
SDK-3.0 tranche updates (#2757)
includes some dRAM -> iRAM optimisations
2019-05-17 13:04:19 +01:00
Terry Ellison bc61528db7
1st Tranch of SDK 3.0 follow up changes (#2732)
1st Tranche of SDK 3.0 follow up changes
2019-05-01 18:29:11 +01:00
ziggurat29 5a6992c26a added spiffsimg host tools project to msvc build configuration. (#2686) 2019-04-09 14:38:49 +01:00
Gregor Hartmann 9842a8ef83 Add building luac.cross to travis ci builds (#2682)
Add building luac.cross to travis ci builds
2019-04-09 14:37:47 +01:00
Terry Ellison 9a47107920
SDK 3.0 release (#2692)
* Rebaseline firmware to non-OS SDK version 3.0
* Note that SDK version 3.0 introduces the concept of a Flash Partition Table(PT).  This is located at Flash offset 0x10000 in our firmware build.
* The firmware is now PT aware with both LFS and SPIFFS taking their partition size and location from the PT
* A new tool `tools/nodemcu-partition.py` is now used to initialise these data and can also download LFS and SPIFFS images to these partitions.
2019-04-05 16:01:45 +01:00
sergio d77666c0e8 trailing spaces cleanup (#2659) 2019-02-17 18:26:29 +00:00
Arnim Läuger 09533fdf23 set default value for summary var to unbreak standalone builds (#2618) 2019-01-24 21:29:32 +01:00
Arnim Läuger 031fd0a913 Reduce default make verbosity (#2583) 2018-12-09 21:39:43 +01:00
Ryan Hartlage 8bb41fe93f Download pre-built toolchains (#2545)
* Download pre-built toolchains

* Updated to include the platform in the name of the pre-built toolchain

* Download archive into cache/

* Update Travis configuration to use pre-built toolchain via make
2018-12-03 13:24:19 +11:00
Gregor Hartmann 0a248cdfd7 Fix output filename of LFS image built in tools (#2459) 2018-08-15 10:48:23 +02:00
Gregor Hartmann 91656c3d76 create luac.cross.{integer|float} (#2450)
Use separate names for the integer and float  `luac.cross` binaries.  Also adds local/lua directory which is already supported by tools makefile to build LFS image.
2018-08-11 18:28:01 +01:00
Gregor Hartmann 2d2c189a66 Add checking of Lua sources to travis build (#2423) 2018-07-16 07:48:47 +02:00
TerryE 04981f7369 Add cygwin support for compiling spiffsimg 2018-07-10 12:46:05 +01:00
TerryE a3c2f48fc9 Fix makefile whitespace as per dnc40085 review 2018-06-26 15:54:56 +01:00
TerryE 17ae6e20c7 Fix Travis build failure 2018-06-23 00:37:31 +01:00
TerryE 4f21224d56 LFS patch updates following review II and testing 2018-06-22 22:29:16 +01:00
TerryE 88bd9e01d3 LFS patch updates following review 2018-04-19 16:27:47 +01:00
TerryE 4ae52c232c Alpha working wersion for third party evaluation 2018-03-17 00:43:52 +00:00
TerryE 4141e69003 Move luac.cross build into standard make hierarchy 2018-03-17 00:43:52 +00:00
Marcel Stör 58d4e0692d Increase iram1_0_seg for PR builds, supports #2008 2018-01-10 22:28:28 +01:00
Marcel Stör 9dc574d2b7 Increase irom0_0_seg for PR builds (again), supports #2008 2018-01-10 22:04:19 +01:00
Yury Popov a3145da52b Minify ESP8266 toolchain archive for CI (#1743)
* Minify ESP8266 toolchain archive for CI
* Disable iROM size fix for CI builds
Fixes #884
2017-01-21 21:53:08 +03:00
Yury Popov 3adba91b15 Net functionality rewrite on top of LWIP (#1379)
* Rewrite net.dns.resolve on LWIP

* Move IGMP (net multicast) to LWIP

* Cleanup net module

* Move secure connection operations to tls module

* Net module on LWIP

* Server timeout parameter

* TCP hold

* Fixes in documentation

* Documentation fixes

* Note TLS module depends on net

* Add TLS module to user_modules.h

* Callback on connect event

* Fix depends net module on tls module

* Fix unhold exponential time issue
2016-12-31 13:14:03 +01:00