Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BREAKING - Upgrade to upstream newlib 4.0.0 release #7708

Merged
merged 20 commits into from
Dec 23, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
20 commits
Select commit Hold shift + click to select a range
1395ef9
Upgrade to upstream newlib 3.3.0 release
earlephilhower Nov 14, 2020
43a8df3
Upgrade to Newlib 4.0.0 - needs toochain rebuild
earlephilhower Nov 18, 2020
cb3aa7a
Merge branch 'master' into newlib330
earlephilhower Nov 18, 2020
b574826
Add new include files part of newlib update
earlephilhower Nov 18, 2020
418f267
Clean rebuild to newlib 4.0.0
earlephilhower Dec 1, 2020
a50843a
Merge branch 'master' of https://github.com/esp8266/Arduino into newl…
earlephilhower Dec 1, 2020
7faf5d8
Remove unneeded include file
earlephilhower Dec 1, 2020
e989171
Modified local isXXX functions in newlib
earlephilhower Dec 1, 2020
5ba4d33
Merge branch 'master' into newlib330
earlephilhower Dec 1, 2020
8298952
Adjust macro defined isXXX_l character classifiers
earlephilhower Dec 1, 2020
9540bbe
Dieable CI caching and fix time header include
earlephilhower Dec 1, 2020
38f12f0
The tools/sdk/libc directory isn't used, remove it
earlephilhower Dec 1, 2020
7d36d28
Fix 64-bit time for LittleFS
earlephilhower Dec 4, 2020
e9f7823
Update to jjsuwa-sys3175 additions to GCC and newlib
earlephilhower Dec 11, 2020
f15f254
Merge branch 'master' of https://github.com/esp8266/Arduino into newl…
earlephilhower Dec 11, 2020
58476d0
Rebuild w/addl GCC patches, new BearSSL flags
earlephilhower Dec 23, 2020
f66e46a
Remove one more redundant lib.a file
earlephilhower Dec 23, 2020
25b4bc4
Merge branch 'master' of https://github.com/esp8266/Arduino into newl…
earlephilhower Dec 23, 2020
01e7c85
Rebuild eboot with new G++
earlephilhower Dec 23, 2020
da5621d
Reapply GH CI caching to pull-requests
earlephilhower Dec 23, 2020
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion bootloaders/eboot/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ INC += -I../../tools/sdk/include -I../../tools/sdk/uzlib/src

CFLAGS += -std=gnu99

CFLAGS += -Os -fcommon -g -Wall -Wpointer-arith -Wno-implicit-function-declaration -Wl,-EL -fno-inline-functions -nostdlib -mlongcalls -mno-text-section-literals -ffunction-sections -fdata-sections
CFLAGS += -Os -fcommon -g -Wall -Wpointer-arith -Wno-implicit-function-declaration -Wl,-EL -fno-inline-functions -nostdlib -mlongcalls -mno-text-section-literals -ffunction-sections -fdata-sections -free -fipa-pta

CFLAGS += $(INC)

Expand Down
Binary file modified bootloaders/eboot/eboot.elf
Binary file not shown.
3 changes: 3 additions & 0 deletions cores/esp8266/time.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@
#include <stdlib.h>
#include <../include/time.h> // See issue #6714
#include <sys/time.h>
extern "C" {
#include <sys/_tz_structs.h>
};
#include <sys/reent.h>
#include <errno.h>

Expand Down
41 changes: 31 additions & 10 deletions libraries/LittleFS/src/LittleFS.h
Original file line number Diff line number Diff line change
Expand Up @@ -556,11 +556,35 @@ class LittleFSDirImpl : public DirImpl
}

time_t fileTime() override {
return (time_t)_getAttr4('t');
time_t t;
int32_t t32b;

// If the attribute is 8-bytes, we're all set
if (_getAttr('t', 8, &t)) {
return t;
} else if (_getAttr('t', 4, &t32b)) {
// If it's 4 bytes silently promote to 64b
return (time_t)t32b;
} else {
// OTW, none present
return 0;
}
}

time_t fileCreationTime() override {
return (time_t)_getAttr4('c');
time_t t;
int32_t t32b;

// If the attribute is 8-bytes, we're all set
if (_getAttr('c', 8, &t)) {
return t;
} else if (_getAttr('c', 4, &t32b)) {
// If it's 4 bytes silently promote to 64b
return (time_t)t32b;
} else {
// OTW, none present
return 0;
}
}


Expand Down Expand Up @@ -599,20 +623,17 @@ class LittleFSDirImpl : public DirImpl
return _dir.get();
}

uint32_t _getAttr4(char attr) {
if (!_valid) {
return 0;
bool _getAttr(char attr, int len, void *dest) {
if (!_valid || !len || !dest) {
return false;
}
int nameLen = 3; // Slashes, terminator
nameLen += _dirPath.get() ? strlen(_dirPath.get()) : 0;
nameLen += strlen(_dirent.name);
char tmpName[nameLen];
snprintf(tmpName, nameLen, "%s%s%s", _dirPath.get() ? _dirPath.get() : "", _dirPath.get()&&_dirPath.get()[0]?"/":"", _dirent.name);
time_t ftime = 0;
int rc = lfs_getattr(_fs->getFS(), tmpName, attr, (void *)&ftime, sizeof(ftime));
if (rc != sizeof(ftime))
ftime = 0; // Error, so clear read value
return ftime;
int rc = lfs_getattr(_fs->getFS(), tmpName, attr, dest, len);
return (rc == len);
}

String _pattern;
Expand Down
170 changes: 85 additions & 85 deletions package/package_esp8266com_index.template.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion tools/sdk/include/bearssl/bearssl_git.h
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
// Do not edit -- Automatically generated by tools/sdk/ssl/bearssl/Makefile
#define BEARSSL_GIT dca786f
#define BEARSSL_GIT 28bebad
Binary file modified tools/sdk/lib/libbearssl.a
Binary file not shown.
Binary file removed tools/sdk/lib/libgcc.a
Binary file not shown.
Binary file modified tools/sdk/lib/libhal.a
Binary file not shown.
Binary file modified tools/sdk/lib/liblwip2-1460-feat.a
Binary file not shown.
Binary file modified tools/sdk/lib/liblwip2-1460.a
Binary file not shown.
Binary file modified tools/sdk/lib/liblwip2-536-feat.a
Binary file not shown.
Binary file modified tools/sdk/lib/liblwip2-536.a
Binary file not shown.
Binary file modified tools/sdk/lib/liblwip6-1460-feat.a
Binary file not shown.
Binary file modified tools/sdk/lib/liblwip6-536-feat.a
Binary file not shown.
Binary file modified tools/sdk/lib/libstdc++-exc.a
Binary file not shown.
Binary file modified tools/sdk/lib/libstdc++.a
Binary file not shown.
140 changes: 0 additions & 140 deletions tools/sdk/libc/xtensa-lx106-elf/include/_ansi.h

This file was deleted.

40 changes: 0 additions & 40 deletions tools/sdk/libc/xtensa-lx106-elf/include/_syslist.h

This file was deleted.

21 changes: 0 additions & 21 deletions tools/sdk/libc/xtensa-lx106-elf/include/alloca.h

This file was deleted.

69 changes: 0 additions & 69 deletions tools/sdk/libc/xtensa-lx106-elf/include/ar.h

This file was deleted.

33 changes: 0 additions & 33 deletions tools/sdk/libc/xtensa-lx106-elf/include/argz.h

This file was deleted.

Loading